Blame SPECS/libmad.spec

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