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