libmad/libmad.spec

Fri, 11 Mar 2011 21:36:51 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:36:51 +0100
changeset 1
4667f24fe848
parent 0
4f133201e207
permissions
-rw-r--r--

Adjust specification build configurations to port packages to MeeGo.

michael@1 1 Name: libmad
michael@1 2 Summary: MPEG audio decoder library
michael@1 3 Vendor: Europalab Software
michael@1 4 Packager: Michael Schloh von Bennewitz
michael@1 5 Distribution: MeeGo Thirdparty
michael@1 6 Version: 0.15.1b
michael@1 7 Release: 20101201
michael@1 8 Group: System Environment/Libraries
michael@1 9 License: GPLv2
michael@1 10 URL: http://www.underbit.com/products/mad/
michael@1 11 Source0: http://download.sourceforge.net/mad/%{name}-%{version}.tar.gz
michael@1 12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
michael@0 13
michael@0 14 %description
michael@1 15 MAD is a high quality MPEG audio decoder. It currently supports MPEG-1
michael@0 16 and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
michael@0 17 so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
michael@0 18 and Layer III a.k.a. MP3) are fully implemented.
michael@0 19
michael@1 20 %package devel
michael@1 21 Summary: MPEG audio decoder library development files
michael@1 22 Vendor: Europalab Software
michael@1 23 Packager: Michael Schloh von Bennewitz
michael@1 24 Distribution: MeeGo Thirdparty
michael@1 25 Group: Development/Libraries
michael@1 26 Requires: %{name} = %{version}-%{release}
michael@1 27 Requires: pkgconfig
michael@0 28
michael@1 29 %description devel
michael@1 30 MAD is a high quality MPEG audio decoder. It currently supports MPEG-1
michael@1 31 and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
michael@1 32 so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
michael@1 33 and Layer III a.k.a. MP3) are fully implemented. This package contains
michael@1 34 the header and library files needed to develop with %{name}.
michael@0 35
michael@0 36 %prep
michael@0 37 %setup -q
michael@1 38 sed -i -e /-fforce-mem/d configure*
michael@0 39 touch -r aclocal.m4 configure.ac NEWS AUTHORS ChangeLog
michael@0 40
michael@0 41 # Create an additional pkgconfig file
michael@0 42 %{__cat} << EOF > mad.pc
michael@0 43 prefix=%{_prefix}
michael@0 44 exec_prefix=%{_prefix}
michael@0 45 libdir=%{_libdir}
michael@0 46 includedir=%{_includedir}
michael@0 47
michael@0 48 Name: mad
michael@0 49 Description: MPEG Audio Decoder
michael@0 50 Requires:
michael@0 51 Version: %{version}
michael@0 52 Libs: -L%{_libdir} -lmad -lm
michael@0 53 Cflags: -I%{_includedir}
michael@0 54 EOF
michael@0 55
michael@0 56 %build
michael@0 57 %configure \
michael@0 58 %ifarch x86_64 ia64 ppc64
michael@1 59 --enable-fpm=64bit \
michael@0 60 %endif
michael@1 61 --enable-accuracy \
michael@1 62 --disable-debugging
michael@1 63 make %{?_smp_mflags}
michael@0 64
michael@0 65 %install
michael@0 66 rm -rf $RPM_BUILD_ROOT
michael@0 67 make install DESTDIR=$RPM_BUILD_ROOT
michael@0 68 %{__install} -D -p -m 0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc
michael@0 69
michael@0 70 %clean
michael@0 71 rm -rf $RPM_BUILD_ROOT
michael@0 72
michael@0 73 %post -p /sbin/ldconfig
michael@0 74
michael@0 75 %postun -p /sbin/ldconfig
michael@0 76
michael@0 77 %files
michael@0 78 %defattr(-,root,root,-)
michael@0 79 %doc CHANGES COPYING COPYRIGHT CREDITS README TODO
michael@0 80 %{_libdir}/libmad.so.*
michael@0 81
michael@0 82 %files devel
michael@0 83 %defattr(-,root,root,-)
michael@1 84 %{_libdir}/libmad.a
michael@1 85 %{_libdir}/libmad.la
michael@0 86 %{_libdir}/libmad.so
michael@0 87 %{_libdir}/pkgconfig/mad.pc
michael@0 88 %{_includedir}/mad.h
michael@0 89
michael@1 90 %changelog
michael@1 91 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.15.1b-20101201
michael@1 92 - Adjust packaging and patch logic
michael@0 93
michael@0 94 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.15.1b-14
michael@0 95 - Build for MeeGo 1.1
michael@0 96
michael@0 97 * Sun Jul 19 2009 David Juran <david@juran.se> - 0.15.1b-13
michael@0 98 - ppc asm patch from David Woodhouse (Bz 730)
michael@0 99 - rpmlint warnings
michael@0 100
michael@0 101 * Wed Jul 1 2009 David Juran <david@juran.se> - 0.15.1b-12
michael@0 102 - fix typo in multiarch patch
michael@0 103 - fix ppc64 version (Bz 691)
michael@0 104
michael@0 105 * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.15.1b-11
michael@0 106 - rebuild for new F11 features
michael@0 107
michael@0 108 * Wed Jan 28 2009 David Juran <david@juran.se> - 0.15.1b-10
michael@0 109 - fix timestamps (Bz 264)
michael@0 110
michael@0 111 * Sun Jan 25 2009 David Juran <david@juran.se> - 0.15.1b-9
michael@0 112 - fix multiarch (Bz 264)
michael@0 113
michael@0 114 * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.15.1b-8
michael@0 115 - rebuild for buildsys cflags issue
michael@0 116
michael@0 117 * Thu Jul 24 2008 David Juran <david@juran.se> - 0.15.1b-7
michael@0 118 - Bump release for RpmFusion
michael@0 119
michael@0 120 * Tue Feb 19 2008 David Juran <david@juran.se> - 0.15.1b-6
michael@0 121 - use $RPM_OPT_FLAGS - Bz 1873
michael@0 122
michael@0 123 * Sun Sep 30 2007 David Juran <david@juran.se> - 0.15.1b-5
michael@0 124 - Grab mad.pc from freshrpms.
michael@0 125 - merge configure-optioins with freshrpms
michael@0 126 - Adjusted Licence tag (GPLv2)
michael@0 127 - Drop static archive
michael@0 128
michael@0 129 * Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.15.1b-4
michael@0 130 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
michael@0 131
michael@0 132 * Tue Sep 19 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.15.1b-3
michael@0 133 - Use 64bit fixed point math on x86_64.
michael@0 134 - Filter deprecated gcc flags, build with dependency tracking disabled.
michael@0 135 - Move "b" to version field.
michael@0 136
michael@0 137 * Mon Mar 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> 0.15.1-2.b
michael@0 138 - Drop Epoch in devel dep, too
michael@0 139
michael@0 140 * Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
michael@0 141 - switch to new release field
michael@0 142 - drop Epoch
michael@0 143
michael@0 144 * Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
michael@0 145 - add dist
michael@0 146
michael@0 147 * Wed Feb 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.15.1-0.lvn.1.b
michael@0 148 - Update to 0.15.1b.
michael@0 149
michael@0 150 * Sun Sep 28 2003 Dams <anvil[AT]livna.org> 0:0.15.0-0.fdr.1.b.0.94
michael@0 151 - Remove comment after scriptlets
michael@0 152
michael@0 153 * Mon Jun 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.15.0-0.fdr.1.b
michael@0 154 - Update to 0.15.0b.
michael@0 155 - Split separate from the old mad package to follow upstream.
michael@0 156 - -devel requires pkgconfig.
michael@0 157
michael@0 158 * Thu Apr 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.3.b
michael@0 159 - Fix missing "main" package dependencies in *-devel.
michael@0 160 - Include patch from Debian, possibly fixes #187 comment 7, and adds
michael@0 161 pkgconfig files for libraries.
michael@0 162
michael@0 163 * Sun Apr 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.2.b
michael@0 164 - Split into mad, libmad, -devel, libid3tag and -devel packages (#187).
michael@0 165 - Provide mp3-cmdline virtual package and alternative.
michael@0 166 - Build shared library.
michael@0 167
michael@0 168 * Fri Apr 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.1.b
michael@0 169 - Update to current Fedora guidelines.
michael@0 170 - Exclude %%{_libdir}/*.la.
michael@0 171
michael@0 172 * Thu Feb 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.14.2b-1.fedora.1
michael@0 173 - First Fedora release, based on Matthias Saou's work.
michael@0 174
michael@0 175 * Fri Sep 27 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
michael@0 176 - Rebuild for Red Hat Linux 8.0 (missing because of license issues).
michael@0 177 - Spec file cleanup.
michael@0 178
michael@0 179 * Tue Mar 12 2002 Bill Nottingham <notting@redhat.com> 0.14.2b-3
michael@0 180 - ship libid3tag too
michael@0 181
michael@0 182 * Thu Feb 21 2002 Bill Nottingham <notting@redhat.com>
michael@0 183 - rebuild
michael@0 184
michael@0 185 * Mon Jan 28 2002 Bill Nottingham <notting@redhat.com>
michael@0 186 - split libmad off into a separate package

mercurial