Blame SPECS/libmad.spec

6d692a
Name:		libmad
6d692a
Version:	0.15.1b
6d692a
Release:	24%{?dist}
6d692a
Summary:	MPEG audio decoder library
6d692a
6d692a
License:	GPLv2+
6d692a
URL:		http://www.underbit.com/products/mad/
6d692a
Source0:	http://download.sourceforge.net/mad/%{name}-%{version}.tar.gz
6d692a
#Create the same header on multilibs arches
6d692a
Patch0:		libmad-0.15.1b-multiarch.patch
6d692a
Patch1:		libmad-0.15.1b-ppc.patch
6d692a
#https://bugs.launchpad.net/ubuntu/+source/libmad/+bug/534287
6d692a
Patch2:		Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff
6d692a
#https://bugs.launchpad.net/ubuntu/+source/libmad/+bug/513734
6d692a
Patch3:		libmad.thumb.diff
6d692a
Patch4:		https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libmad/files/libmad-0.15.1b-cflags.patch
6d692a
Patch5:		https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libmad/files/libmad-0.15.1b-cflags-O2.patch
6d692a
6d692a
BuildRequires:	automake
6d692a
BuildRequires:	autoconf
6d692a
BuildRequires:	libtool
6d692a
6d692a
6d692a
%description
6d692a
MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
6d692a
and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
6d692a
so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
6d692a
and Layer III a.k.a. MP3) are fully implemented.
6d692a
6d692a
%package        devel
6d692a
Summary:	MPEG audio decoder library development files
6d692a
Group:		Development/Libraries
6d692a
Requires:	%{name}%{?_isa} = %{version}-%{release}
6d692a
%if 0%{?el5}
6d692a
Requires:	pkgconfig
6d692a
%endif
6d692a
6d692a
%description	devel
6d692a
%{summary}.
6d692a
6d692a
6d692a
%prep
6d692a
%setup -q
6d692a
#Only relevant on multilibs arches
6d692a
%ifarch %{ix86} x86_64 ppc ppc64
6d692a
%patch0 -p1 -b .multiarch
6d692a
%endif
6d692a
%patch1 -p1 -b .ppc
6d692a
%patch2 -p1 -b .alt_t2
6d692a
%patch3 -p1 -b .thumb
6d692a
%patch4 -p1 -b .cflags
6d692a
%patch5 -p1 -b .02
6d692a
6d692a
touch -r aclocal.m4 configure.ac NEWS AUTHORS ChangeLog
6d692a
6d692a
# Create an additional pkgconfig file
6d692a
%{__cat} << EOF > mad.pc
6d692a
prefix=%{_prefix}
6d692a
exec_prefix=%{_prefix}
6d692a
libdir=%{_libdir}
6d692a
includedir=%{_includedir}
6d692a
6d692a
Name: mad
6d692a
Description: MPEG Audio Decoder
6d692a
Requires:
6d692a
Version: %{version}
6d692a
Libs: -L%{_libdir} -lmad -lm
6d692a
Cflags: -I%{_includedir}
6d692a
EOF
6d692a
6d692a
6d692a
6d692a
%build
6d692a
autoreconf -sfiv
6d692a
%configure \
6d692a
%if 0%{?__isa_bits} == 64
6d692a
	--enable-fpm=64bit \
6d692a
%endif
6d692a
%ifarch %{arm}
6d692a
	--enable-fpm=arm \
6d692a
%endif
6d692a
	--disable-dependency-tracking \
6d692a
	--enable-accuracy \
6d692a
	--disable-static    
6d692a
6d692a
%make_build
6d692a
6d692a
%install
6d692a
%make_install
6d692a
rm -f %{buildroot}%{_libdir}/*.la
6d692a
install -D -p -m 0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc
6d692a
touch -r mad.h.sed %{buildroot}/%{_includedir}/mad.h
6d692a
6d692a
6d692a
%post -p /sbin/ldconfig
6d692a
6d692a
%postun -p /sbin/ldconfig
6d692a
6d692a
6d692a
%files
6d692a
%doc CHANGES CREDITS README TODO
6d692a
%license COPYING COPYRIGHT
6d692a
%{_libdir}/libmad.so.*
6d692a
6d692a
%files devel
6d692a
%{_libdir}/libmad.so
6d692a
%{_libdir}/pkgconfig/mad.pc
6d692a
%{_includedir}/mad.h
6d692a
6d692a
6d692a
%changelog
6d692a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1b-24
6d692a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6d692a
6d692a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1b-23
6d692a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6d692a
6d692a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1b-22
6d692a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6d692a
6d692a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1b-21
6d692a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6d692a
6d692a
* Thu Jan 19 2017 Nicolas Chauvet <kwizart@gmail.com> - 0.15.1b-20
6d692a
- Update Thumb-2 patch - rhbz#1414486
6d692a
6d692a
* Wed Nov 23 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.15.1b-19
6d692a
- Add patches from gentoo
6d692a
- Allow debuginfo generation
6d692a
6d692a
* Fri Nov 18 2016 Nicolas Chauvet <kwizart@gmail.com> -0.15.1b-18
6d692a
- Spec file clean-up and review
6d692a
6d692a
* Sun Aug 31 2014 Sérgio Basto <sergio@serjux.com> - 0.15.1b-17
6d692a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6d692a
6d692a
* Sun Mar 03 2013 Nicolas Chauvet <kwizart@gmail.com> - 0.15.1b-16
6d692a
- Mass rebuilt for Fedora 19 Features
6d692a
6d692a
* Sat Apr 28 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.15.1b-15
6d692a
- Don't use multiarch patch when the result is not hardcoded
6d692a
- Update FPM
6d692a
- Add patches from lp#534287 and lp#534287
6d692a
6d692a
* Wed Jan 25 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.15.1b-14
6d692a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6d692a
6d692a
* Sun Jul 19 2009 David Juran <david@juran.se> - 0.15.1b-13
6d692a
- ppc asm patch from David Woodhouse (Bz 730)
6d692a
- rpmlint warnings
6d692a
6d692a
* Wed Jul  1 2009 David Juran <david@juran.se> - 0.15.1b-12
6d692a
- fix typo in multiarch patch
6d692a
- fix ppc64 version (Bz 691)
6d692a
6d692a
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.15.1b-11
6d692a
- rebuild for new F11 features
6d692a
6d692a
* Wed Jan 28 2009 David Juran <david@juran.se> - 0.15.1b-10
6d692a
- fix timestamps (Bz 264)
6d692a
6d692a
* Sun Jan 25 2009 David Juran <david@juran.se> - 0.15.1b-9
6d692a
- fix multiarch (Bz 264)
6d692a
6d692a
* Wed Jul 30 2008 Thorsten Leemhuis 
6d692a
- rebuild for buildsys cflags issue
6d692a
6d692a
* Thu Jul 24 2008 David Juran <david@juran.se> - 0.15.1b-7
6d692a
- Bump release for RpmFusion
6d692a
6d692a
* Tue Feb 19 2008 David Juran <david@juran.se> - 0.15.1b-6
6d692a
- use $RPM_OPT_FLAGS - Bz 1873
6d692a
6d692a
* Sun Sep 30 2007 David Juran <david@juran.se> - 0.15.1b-5
6d692a
- Grab mad.pc from freshrpms.
6d692a
- merge configure-optioins with freshrpms
6d692a
- Adjusted Licence tag (GPLv2)
6d692a
- Drop static archive
6d692a
6d692a
* Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.15.1b-4
6d692a
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
6d692a
6d692a
* Tue Sep 19 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.15.1b-3
6d692a
- Use 64bit fixed point math on x86_64.
6d692a
- Filter deprecated gcc flags, build with dependency tracking disabled.
6d692a
- Move "b" to version field.
6d692a
6d692a
* Mon Mar 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> 0.15.1-2.b
6d692a
- Drop Epoch in devel dep, too
6d692a
6d692a
* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
6d692a
- switch to new release field
6d692a
- drop Epoch
6d692a
6d692a
* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
6d692a
- add dist
6d692a
6d692a
* Wed Feb 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.15.1-0.lvn.1.b
6d692a
- Update to 0.15.1b.
6d692a
6d692a
* Sun Sep 28 2003 Dams <anvil[AT]livna.org> 0:0.15.0-0.fdr.1.b.0.94
6d692a
- Remove comment after scriptlets
6d692a
6d692a
* Mon Jun 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.15.0-0.fdr.1.b
6d692a
- Update to 0.15.0b.
6d692a
- Split separate from the old mad package to follow upstream.
6d692a
- -devel requires pkgconfig.
6d692a
6d692a
* Thu Apr 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.3.b
6d692a
- Fix missing "main" package dependencies in *-devel.
6d692a
- Include patch from Debian, possibly fixes #187 comment 7, and adds
6d692a
  pkgconfig files for libraries.
6d692a
6d692a
* Sun Apr 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.2.b
6d692a
- Split into mad, libmad, -devel, libid3tag and -devel packages (#187).
6d692a
- Provide mp3-cmdline virtual package and alternative.
6d692a
- Build shared library.
6d692a
6d692a
* Fri Apr  4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.1.b
6d692a
- Update to current Fedora guidelines.
6d692a
- Exclude %%{_libdir}/*.la.
6d692a
6d692a
* Thu Feb 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.14.2b-1.fedora.1
6d692a
- First Fedora release, based on Matthias Saou's work.
6d692a
6d692a
* Fri Sep 27 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
6d692a
- Rebuild for Red Hat Linux 8.0 (missing because of license issues).
6d692a
- Spec file cleanup.
6d692a
6d692a
* Tue Mar 12 2002 Bill Nottingham <notting@redhat.com> 0.14.2b-3
6d692a
- ship libid3tag too
6d692a
6d692a
* Thu Feb 21 2002 Bill Nottingham <notting@redhat.com>
6d692a
- rebuild
6d692a
6d692a
* Mon Jan 28 2002 Bill Nottingham <notting@redhat.com>
6d692a
- split libmad off into a separate package