libmad/libmad.spec

changeset 0
4f133201e207
child 1
4667f24fe848
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libmad/libmad.spec	Fri Mar 11 21:30:26 2011 +0100
     1.3 @@ -0,0 +1,194 @@
     1.4 +Name:		libmad
     1.5 +Version:	0.15.1b
     1.6 +Release:	14%{?dist}
     1.7 +Summary:	MPEG audio decoder library
     1.8 +
     1.9 +Group:		System Environment/Libraries
    1.10 +License:	GPLv2
    1.11 +URL:		http://www.underbit.com/products/mad/
    1.12 +Source0:	http://download.sourceforge.net/mad/%{name}-%{version}.tar.gz
    1.13 +Patch0:		libmad-0.15.1b-multiarch.patch
    1.14 +Patch1:		libmad-0.15.1b-ppc.patch
    1.15 +BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
    1.16 +
    1.17 +BuildRequires:	automake
    1.18 +BuildRequires:	autoconf
    1.19 +BuildRequires:	libtool
    1.20 +
    1.21 +
    1.22 +%description
    1.23 +MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
    1.24 +and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
    1.25 +so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
    1.26 +and Layer III a.k.a. MP3) are fully implemented.
    1.27 +
    1.28 +%package        devel
    1.29 +Summary:	MPEG audio decoder library development files
    1.30 +Group:		Development/Libraries
    1.31 +Requires:	%{name} = %{version}-%{release}
    1.32 +Requires:	pkgconfig
    1.33 +
    1.34 +%description	devel
    1.35 +%{summary}.
    1.36 +
    1.37 +
    1.38 +%prep
    1.39 +%setup -q
    1.40 +%patch0 -p1 -b .multiarch
    1.41 +%patch1 -p1 -b .ppc
    1.42 +
    1.43 +sed -i -e /-fforce-mem/d configure* # -fforce-mem gone in gcc 4.2, noop earlier
    1.44 +touch -r aclocal.m4 configure.ac NEWS AUTHORS ChangeLog
    1.45 +
    1.46 +# Create an additional pkgconfig file
    1.47 +%{__cat} << EOF > mad.pc
    1.48 +prefix=%{_prefix}
    1.49 +exec_prefix=%{_prefix}
    1.50 +libdir=%{_libdir}
    1.51 +includedir=%{_includedir}
    1.52 +
    1.53 +Name: mad
    1.54 +Description: MPEG Audio Decoder
    1.55 +Requires:
    1.56 +Version: %{version}
    1.57 +Libs: -L%{_libdir} -lmad -lm
    1.58 +Cflags: -I%{_includedir}
    1.59 +EOF
    1.60 +
    1.61 +
    1.62 +
    1.63 +%build
    1.64 +autoreconf -sfi
    1.65 +%configure \
    1.66 +%ifarch x86_64 ia64 ppc64
    1.67 +	--enable-fpm=64bit \
    1.68 +%endif
    1.69 +	--disable-dependency-tracking \
    1.70 +	--enable-accuracy \
    1.71 +	--disable-debugging \
    1.72 +	--disable-static    
    1.73 +
    1.74 +make %{?_smp_mflags} CPPFLAGS="$RPM_OPT_FLAGS"
    1.75 +
    1.76 +%install
    1.77 +rm -rf $RPM_BUILD_ROOT
    1.78 +make install DESTDIR=$RPM_BUILD_ROOT
    1.79 +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
    1.80 +%{__install} -D -p -m 0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc
    1.81 +touch -r mad.h.sed %{buildroot}/%{_includedir}/mad.h
    1.82 +
    1.83 +%clean
    1.84 +rm -rf $RPM_BUILD_ROOT
    1.85 +
    1.86 +
    1.87 +%post -p /sbin/ldconfig
    1.88 +
    1.89 +%postun -p /sbin/ldconfig
    1.90 +
    1.91 +
    1.92 +%files
    1.93 +%defattr(-,root,root,-)
    1.94 +%doc CHANGES COPYING COPYRIGHT CREDITS README TODO
    1.95 +%{_libdir}/libmad.so.*
    1.96 +
    1.97 +%files devel
    1.98 +%defattr(-,root,root,-)
    1.99 +%{_libdir}/libmad.so
   1.100 +%{_libdir}/pkgconfig/mad.pc
   1.101 +%{_includedir}/mad.h
   1.102 +
   1.103 +
   1.104 +%changelog
   1.105 +* Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.15.1b-14
   1.106 +- Build for MeeGo 1.1
   1.107 +
   1.108 +* Sun Jul 19 2009 David Juran <david@juran.se> - 0.15.1b-13
   1.109 +- ppc asm patch from David Woodhouse (Bz 730)
   1.110 +- rpmlint warnings
   1.111 +
   1.112 +* Wed Jul  1 2009 David Juran <david@juran.se> - 0.15.1b-12
   1.113 +- fix typo in multiarch patch
   1.114 +- fix ppc64 version (Bz 691)
   1.115 +
   1.116 +* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.15.1b-11
   1.117 +- rebuild for new F11 features
   1.118 +
   1.119 +* Wed Jan 28 2009 David Juran <david@juran.se> - 0.15.1b-10
   1.120 +- fix timestamps (Bz 264)
   1.121 +
   1.122 +* Sun Jan 25 2009 David Juran <david@juran.se> - 0.15.1b-9
   1.123 +- fix multiarch (Bz 264)
   1.124 +
   1.125 +* Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.15.1b-8
   1.126 +- rebuild for buildsys cflags issue
   1.127 +
   1.128 +* Thu Jul 24 2008 David Juran <david@juran.se> - 0.15.1b-7
   1.129 +- Bump release for RpmFusion
   1.130 +
   1.131 +* Tue Feb 19 2008 David Juran <david@juran.se> - 0.15.1b-6
   1.132 +- use $RPM_OPT_FLAGS - Bz 1873
   1.133 +
   1.134 +* Sun Sep 30 2007 David Juran <david@juran.se> - 0.15.1b-5
   1.135 +- Grab mad.pc from freshrpms.
   1.136 +- merge configure-optioins with freshrpms
   1.137 +- Adjusted Licence tag (GPLv2)
   1.138 +- Drop static archive
   1.139 +
   1.140 +* Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.15.1b-4
   1.141 + - rebuilt for unwind info generation, broken in gcc-4.1.1-21
   1.142 +
   1.143 +* Tue Sep 19 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.15.1b-3
   1.144 +- Use 64bit fixed point math on x86_64.
   1.145 +- Filter deprecated gcc flags, build with dependency tracking disabled.
   1.146 +- Move "b" to version field.
   1.147 +
   1.148 +* Mon Mar 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> 0.15.1-2.b
   1.149 +- Drop Epoch in devel dep, too
   1.150 +
   1.151 +* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
   1.152 +- switch to new release field
   1.153 +- drop Epoch
   1.154 +
   1.155 +* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
   1.156 +- add dist
   1.157 +
   1.158 +* Wed Feb 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.15.1-0.lvn.1.b
   1.159 +- Update to 0.15.1b.
   1.160 +
   1.161 +* Sun Sep 28 2003 Dams <anvil[AT]livna.org> 0:0.15.0-0.fdr.1.b.0.94
   1.162 +- Remove comment after scriptlets
   1.163 +
   1.164 +* Mon Jun 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.15.0-0.fdr.1.b
   1.165 +- Update to 0.15.0b.
   1.166 +- Split separate from the old mad package to follow upstream.
   1.167 +- -devel requires pkgconfig.
   1.168 +
   1.169 +* Thu Apr 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.3.b
   1.170 +- Fix missing "main" package dependencies in *-devel.
   1.171 +- Include patch from Debian, possibly fixes #187 comment 7, and adds
   1.172 +  pkgconfig files for libraries.
   1.173 +
   1.174 +* Sun Apr 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.2.b
   1.175 +- Split into mad, libmad, -devel, libid3tag and -devel packages (#187).
   1.176 +- Provide mp3-cmdline virtual package and alternative.
   1.177 +- Build shared library.
   1.178 +
   1.179 +* Fri Apr  4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.1.b
   1.180 +- Update to current Fedora guidelines.
   1.181 +- Exclude %%{_libdir}/*.la.
   1.182 +
   1.183 +* Thu Feb 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.14.2b-1.fedora.1
   1.184 +- First Fedora release, based on Matthias Saou's work.
   1.185 +
   1.186 +* Fri Sep 27 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
   1.187 +- Rebuild for Red Hat Linux 8.0 (missing because of license issues).
   1.188 +- Spec file cleanup.
   1.189 +
   1.190 +* Tue Mar 12 2002 Bill Nottingham <notting@redhat.com> 0.14.2b-3
   1.191 +- ship libid3tag too
   1.192 +
   1.193 +* Thu Feb 21 2002 Bill Nottingham <notting@redhat.com>
   1.194 +- rebuild
   1.195 +
   1.196 +* Mon Jan 28 2002 Bill Nottingham <notting@redhat.com>
   1.197 +- split libmad off into a separate package

mercurial