From 0caa6404f4bf0819bbc9651508d39054163fb9d8 Mon Sep 17 00:00:00 2001 From: guibuilder_pel7ppc64lebuilder0 Date: Mon, 13 Jul 2020 23:36:24 +0200 Subject: [PATCH] lame package update Signed-off-by: guibuilder_pel7ppc64lebuilder0 --- SOURCES/lame-noexecstack.patch | 77 +++++++++ SOURCES/libmp3lame-symbols.patch | 16 ++ SPECS/lame.spec | 276 +++++++++++++++++++++++++++++++ 3 files changed, 369 insertions(+) create mode 100644 SOURCES/lame-noexecstack.patch create mode 100644 SOURCES/libmp3lame-symbols.patch create mode 100644 SPECS/lame.spec diff --git a/SOURCES/lame-noexecstack.patch b/SOURCES/lame-noexecstack.patch new file mode 100644 index 0000000..34fcde8 --- /dev/null +++ b/SOURCES/lame-noexecstack.patch @@ -0,0 +1,77 @@ +diff -up lame-398-2/libmp3lame/i386/choose_table.nas.noexec lame-398-2/libmp3lame/i386/choose_table.nas +--- lame-398-2/libmp3lame/i386/choose_table.nas.noexec 2008-08-31 14:28:37.000000000 +0200 ++++ lame-398-2/libmp3lame/i386/choose_table.nas 2008-10-20 22:34:23.000000000 +0200 +@@ -445,3 +445,7 @@ from2: + ret + + end ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +diff -up lame-398-2/libmp3lame/i386/cpu_feat.nas.noexec lame-398-2/libmp3lame/i386/cpu_feat.nas +--- lame-398-2/libmp3lame/i386/cpu_feat.nas.noexec 2003-11-10 16:41:00.000000000 +0100 ++++ lame-398-2/libmp3lame/i386/cpu_feat.nas 2008-10-20 22:34:23.000000000 +0200 +@@ -105,3 +105,7 @@ return0: + ret + + end ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +diff -up lame-398-2/libmp3lame/i386/fft3dn.nas.noexec lame-398-2/libmp3lame/i386/fft3dn.nas +--- lame-398-2/libmp3lame/i386/fft3dn.nas.noexec 2008-08-31 14:28:37.000000000 +0200 ++++ lame-398-2/libmp3lame/i386/fft3dn.nas 2008-10-20 22:34:23.000000000 +0200 +@@ -486,3 +486,7 @@ proc fht_E3DN + add esp,20 + popd ebp, ebx, esi, edi + endproc ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +diff -up lame-398-2/libmp3lame/i386/fftfpu.nas.noexec lame-398-2/libmp3lame/i386/fftfpu.nas +--- lame-398-2/libmp3lame/i386/fftfpu.nas.noexec 2000-10-04 14:13:26.000000000 +0200 ++++ lame-398-2/libmp3lame/i386/fftfpu.nas 2008-10-20 22:34:23.000000000 +0200 +@@ -617,3 +617,7 @@ fht_FPU_FXCH_3rd_part: + endproc + + end ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +diff -up lame-398-2/libmp3lame/i386/fft.nas.noexec lame-398-2/libmp3lame/i386/fft.nas +--- lame-398-2/libmp3lame/i386/fft.nas.noexec 2000-10-04 14:13:26.000000000 +0200 ++++ lame-398-2/libmp3lame/i386/fft.nas 2008-10-20 22:34:23.000000000 +0200 +@@ -265,3 +265,7 @@ fht_3DN: + pop esi + pop ebx + ret ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +diff -up lame-398-2/libmp3lame/i386/fftsse.nas.noexec lame-398-2/libmp3lame/i386/fftsse.nas +--- lame-398-2/libmp3lame/i386/fftsse.nas.noexec 2008-08-31 14:28:37.000000000 +0200 ++++ lame-398-2/libmp3lame/i386/fftsse.nas 2008-10-20 22:34:23.000000000 +0200 +@@ -420,3 +420,7 @@ fht_SSE: + ret + + end ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +diff -up lame-398-2/libmp3lame/i386/ffttbl.nas.noexec lame-398-2/libmp3lame/i386/ffttbl.nas +--- lame-398-2/libmp3lame/i386/ffttbl.nas.noexec 2000-10-04 14:13:26.000000000 +0200 ++++ lame-398-2/libmp3lame/i386/ffttbl.nas 2008-10-20 22:34:23.000000000 +0200 +@@ -76,3 +76,7 @@ gray_index: + segment_code + + end ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif diff --git a/SOURCES/libmp3lame-symbols.patch b/SOURCES/libmp3lame-symbols.patch new file mode 100644 index 0000000..eb3a3b5 --- /dev/null +++ b/SOURCES/libmp3lame-symbols.patch @@ -0,0 +1,16 @@ +--- lame-3.100/include/libmp3lame.sym 2017-09-06 14:33:35.000000000 -0500 ++++ lame-3.100/include/libmp3lame.sym 2017-10-22 16:18:44.708436200 -0500 +@@ -1,5 +1,4 @@ + lame_init +-lame_init_old + lame_set_num_samples + lame_get_num_samples + lame_set_in_samplerate +@@ -188,6 +187,7 @@ hip_decode_exit + hip_set_errorf + hip_set_debugf + hip_set_msgf ++hip_set_pinfo + hip_decode + hip_decode_headers + hip_decode1 diff --git a/SPECS/lame.spec b/SPECS/lame.spec new file mode 100644 index 0000000..cb82e92 --- /dev/null +++ b/SPECS/lame.spec @@ -0,0 +1,276 @@ +Name: lame +Version: 3.100 +Release: 1%{?dist} +Summary: Free MP3 audio compressor + +Group: Applications/Multimedia +License: GPLv2+ +URL: http://lame.sourceforge.net/ +Source0: http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{version}.tar.gz +Patch1: %{name}-noexecstack.patch +Patch2: libmp3lame-symbols.patch + +BuildRequires: ncurses-devel +BuildRequires: gtk+-devel +%ifarch %{ix86} +BuildRequires: nasm +%endif +Requires: %{name}-libs = %{version}-%{release} + +%description +LAME is an open source MP3 encoder whose quality and speed matches +commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding +with both constant and variable bitrates. + +%package libs +Summary: LAME MP3 encoding library +Group: System Environment/Libraries + +%description libs +LAME MP3 encoding library. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} + +%description devel +This package development files for %{name}. + +%package mp3x +Summary: MP3 frame analyzer +Group: Applications/Multimedia +Requires: %{name} = %{version}-%{release} + +%description mp3x +This package contains the mp3x frame analyzer. + + +%prep +%autosetup -p1 + + +%build +sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure +%ifarch %{ix86} +export CFLAGS="$RPM_OPT_FLAGS -ffast-math" +#From LFS:http://www.linuxfromscratch.org/blfs/view/svn/multimedia/lame.html +export ac_cv_header_xmmintrin_h=no +%endif +%configure \ + --disable-dependency-tracking \ + --disable-static \ + --enable-nasm \ + --enable-mp3x \ + --enable-mp3rtp + +%make_build + + +%install +%make_install INSTALL="install -p" +rm -f %{buildroot}%{_libdir}/*.la +# Some apps still expect to find +ln -sf lame/lame.h %{buildroot}%{_includedir}/lame.h +rm -rf %{buildroot}%{_docdir}/%{name} + + +%check +make test + + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + + +%files +%doc README TODO USAGE doc/html/*.html +%{_bindir}/lame +%{_bindir}/mp3rtp +%{_mandir}/man1/lame.1* + +%files libs +%doc ChangeLog +%license COPYING LICENSE +%{_libdir}/libmp3lame.so.0* + +%files devel +%doc API HACKING STYLEGUIDE +%{_libdir}/libmp3lame.so +%{_includedir}/lame +%{_includedir}/lame.h + +%files mp3x +#%{_bindir}/mp3x + +%changelog +* Sun Oct 22 2017 Yaakov Selkowitz - 3.100-1 +- Update to 3.100 (#1470202, #1505172) + +* Thu Aug 03 2017 Fedora Release Engineering - 3.99.5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 3.99.5-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed May 10 2017 Yaakov Selkowitz - 3.99.5-8 +- Rebuilt for inclusion into Fedora + +* Sun Mar 19 2017 RPM Fusion Release Engineering - 3.99.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Aug 18 2016 Sérgio Basto - 3.99.5-6 +- Clean spec, Vascom patches series, rfbz #4201, add license tag + +* Sun Dec 07 2014 Nicolas Chauvet - 3.99.5-5 +- Fix FTBFS on i686 + +* Sat Dec 06 2014 Nicolas Chauvet - 3.99.5-4 +- Rebuilt for F-21 + +* Sun Aug 31 2014 Sérgio Basto - 3.99.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Mar 03 2013 Nicolas Chauvet - 3.99.5-2 +- Mass rebuilt for Fedora 19 Features + +* Tue Apr 17 2012 Matthias Saou 3.99.5-1 +- Update to 3.99.5. + +* Sun Feb 19 2012 Nicolas Chauvet - 3.99.4-1 +- Update to 3.99.4 + +* Tue Jul 06 2010 Dominik Mierzejewski - 3.98.4-1 +- update to 3.98.4 +- drop obsolete (build)requirements + +* Sat Feb 27 2010 Dominik Mierzejewski - 3.98.3-1 +- update to 3.98.3 + +* Sun Mar 29 2009 Thorsten Leemhuis - 3.98.2-3 +- rebuild for new F11 features + +* Mon Oct 20 2008 Dominik Mierzejewski - 3.98.2-2 +- update to 3.98.2 +- preserve file timestamps +- drop obsolete patch +- no need to call autoreconf anymore +- fix parallel make builds + +* Sun Aug 03 2008 Thorsten Leemhuis - 3.97-6 +- Merge freshrpms spec into livna spec for rpmfusion: +- Set release to 6 to be higher as both livna and freshrpms latest release +- Update license tag for new license tag guidelines +- Add --enable-decode-layer1 to configure flags +- Make Source0 the advised sf.net download url +- Make ChangeLog UTF-8 +- Don't duplicate the COPYING ChangeLog and LICENSE docs betweent the main + and the -libs package + +* Fri Sep 21 2007 Ville Skyttä - 3.97-5 +- BuildRequire pkgconfig for gtk+-devel in EL-5. + +* Sun Mar 11 2007 Dominik Mierzejewski - 3.97-4 +- fix rpaths and SELinux noexec stack issue (patch by Hans de Goede) + +* Wed Nov 01 2006 Dominik Mierzejewski - 3.97-3 +- fix FC6+ binutils issues (patch by Rex Dieter) + +* Thu Sep 28 2006 Dominik Mierzejewski - 3.97-2 +- Split off -libs subpackage +- Reenable parallel make + +* Sun Sep 24 2006 Ville Skyttä - 3.97-1 +- 3.97, 3DNow! asm patch applied upstream. + +* Wed Sep 20 2006 Ville Skyttä - 3.96.1-7 +- Avoid rpaths (from Ubuntu). +- Don't ship static libraries. +- Drop unneeded zero epochs. +- Build with dependency tracking disabled. +- Prune pre-2003 changelog entries. +- Other specfile cleanups. + +* Sun May 14 2006 Noa Resare 3.96.1-6 +- Adding a patch to fix the 3DNow! asm and re-enable it + +* Fri Apr 7 2006 Dams - 3.96.1-5 +- Disabling nasm for now. (bug #892) + +* Thu Mar 09 2006 Andreas Bierfert +- switch to new release field + +* Tue Feb 28 2006 Andreas Bierfert +- add dist + +* Tue Dec 27 2005 Thorsten Leemhuis 3.96.1-0.lvn.4 +- add defattr to files of mp3x subpackage + +* Tue Dec 27 2005 Thorsten Leemhuis 3.96.1-0.lvn.3 +- Drop Epoch + +* Sat Sep 17 2005 W. Michael Petullo - 0:3.96.1-0.lvn.2 +- Split mp3x into its own package to remove general gtk+ requirement. + +* Sun Jul 25 2004 Marius L. Jøhndal - 0:3.96.1-0.lvn.1 +- Updated to 3.96.1. + +* Thu Apr 15 2004 Marius L. Jøhndal - 0:3.96-0.lvn.1 +- Updated to 3.96. + +* Tue Jan 27 2004 Ville Skyttä - 0:3.95.1-0.lvn.3 +- Enable mp3x and mp3rtp. +- Run tests in the %%check section. +- Use "make install DESTDIR=..." instead of %%makeinstall. +- s/fdr/lvn/ in release tag. + +* Tue Jan 27 2004 Marius L. Jøhndal 0:3.95.1-0.fdr.2 +- Disabled parallel make (#61). + +* Sat Jan 17 2004 Marius L. Jøhndal 0:3.95.1-0.fdr.1 +- Updated to 3.95.1. +- Spec file edited to match current Fedora template. +- Re-wrote descriptions. +- Converted spec file to UTF-8. + +* Sat Aug 16 2003 Marius L. Jøhndal 0:3.93.1-0.fdr.8 +- Patch configure instead of configure.in to avoid regenerating build files (bug 223). + +* Mon Jul 21 2003 Marius L. Jøhndal 0:3.93.1-0.fdr.7 +- Rebuild to get source permissions right (bug 223). +- Removed Requires: /usr/bin/find (bug 223). + +* Sat May 10 2003 Marius Jøhndal 0:3.93.1-0.fdr.6 +- Use RPM_BUILD_ROOT and RPM_OPT_FLAGS instead of macros. + +* Sat May 10 2003 Marius Jøhndal 0:3.93.1-0.fdr.5 +- Backed out Vorbis changes (bug 198, 223). + +* Fri May 2 2003 Marius Jøhndal 0:3.93.1-0.fdr.4 +- Fixed problems with Makefiles being removed from documentation upon + installation. + +* Fri Apr 25 2003 Marius Jøhndal 0:3.93.1-0.fdr.3 +- Honour %%optflags. +- Vorbis support (bug #198). +- Added LICENSE to documentation. + +* Fri Apr 4 2003 Marius Jøhndal 0:3.93.1-0.fdr.2 +- Minor adjustments of optimisation flags and configure settings. +- Killed some noise caused by a bad gtk macro. +- Added epoch numbers to requires. + +* Wed Apr 2 2003 Marius Jøhndal 0:3.93.1-0.fdr.1 +- Initial Fedora RPM release. + +* Mon Mar 31 2003 Matthias Saou +- Rebuilt for Red Hat Linux 9. +- Exclude .la file. + +* Mon Jan 13 2003 Matthias Saou +- Update to 3.93.1. +- Removed Epoch: tag, upgrade by hand! :-/