From 0c1225e8c51e217459086c0c3a93743e5109a8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Wed, 14 Oct 2020 21:28:40 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/a52dec#83338740f08820af42a495332b59624cba069f79 --- .gitignore | 1 + a52dec-0.7.4-rpath64.patch | 22 +++ a52dec-configure-optflags.patch | 23 ++++ a52dec.spec | 229 ++++++++++++++++++++++++++++++++ liba52-silence.patch | 17 +++ sources | 1 + 6 files changed, 293 insertions(+) create mode 100644 a52dec-0.7.4-rpath64.patch create mode 100644 a52dec-configure-optflags.patch create mode 100644 a52dec.spec create mode 100644 liba52-silence.patch create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..8cc6fa0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/a52dec-*.tar.gz diff --git a/a52dec-0.7.4-rpath64.patch b/a52dec-0.7.4-rpath64.patch new file mode 100644 index 0000000..e8466ee --- /dev/null +++ b/a52dec-0.7.4-rpath64.patch @@ -0,0 +1,22 @@ +--- a52dec-0.7.4/configure~ 2002-07-28 06:50:42.000000000 +0300 ++++ a52dec-0.7.4/configure 2006-02-16 23:03:07.000000000 +0200 +@@ -5839,7 +5839,7 @@ + shlibpath_overrides_runpath=unknown + version_type=none + dynamic_linker="$host_os ld.so" +-sys_lib_dlsearch_path_spec="/lib /usr/lib" ++sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + + case $host_os in +--- a52dec-0.7.4/aclocal.m4~ 2002-07-28 06:50:38.000000000 +0300 ++++ a52dec-0.7.4/aclocal.m4 2006-02-16 23:02:38.000000000 +0200 +@@ -2141,7 +2141,7 @@ + shlibpath_overrides_runpath=unknown + version_type=none + dynamic_linker="$host_os ld.so" +-sys_lib_dlsearch_path_spec="/lib /usr/lib" ++sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + + case $host_os in diff --git a/a52dec-configure-optflags.patch b/a52dec-configure-optflags.patch new file mode 100644 index 0000000..a0b8463 --- /dev/null +++ b/a52dec-configure-optflags.patch @@ -0,0 +1,23 @@ +--- ./configure~ 2002-07-28 06:50:42.000000000 +0300 ++++ ./configure 2003-04-13 17:20:53.000000000 +0300 +@@ -2857,13 +2857,13 @@ + + case "$host" in + i?86-* | k?-*) +- case "$host" in +- i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";; +- i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";; +- i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";; +- i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";; +- k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";; +- esac ++# case "$host" in ++# i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";; ++# i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";; ++# i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";; ++# i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";; ++# k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";; ++# esac + echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 + echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 + SAVE_CFLAGS="$CFLAGS" diff --git a/a52dec.spec b/a52dec.spec new file mode 100644 index 0000000..3f71bb0 --- /dev/null +++ b/a52dec.spec @@ -0,0 +1,229 @@ +Summary: Small test program for liba52 +Name: a52dec +Version: 0.7.4 +Release: 39%{?dist} +License: GPLv2 +URL: http://liba52.sourceforge.net +Source0: %{url}/files/%{name}-%{version}.tar.gz +Patch0: a52dec-configure-optflags.patch +Patch1: a52dec-0.7.4-rpath64.patch +Patch2: liba52-silence.patch + +BuildRequires: gcc + +Requires: liba52%{?_isa} = %{version}-%{release} +#Multilib transition +#Introduced in Fedora 26, can be dropped in Fedora 28 +Obsoletes: %{name} < 0.7.4-25 + + +%package -n liba52 +Summary: A free ATSC A/52 stream decoder, also known as AC-3 or AC3 +#Fix multilibs transition - introduced in f26 +Obsoletes: a52dec < 0.7.4-25 +#Fix others 3rd part repos transition +Obsoletes: a52dec-libs < 0.7.4-25 +Provides: a52dec-libs = %{version}-%{release} + +%package -n liba52-devel +Summary: Development files for liba52 +Requires: liba52%{?_isa} = %{version}-%{release} +Provides: %{name}-devel = %{version}-%{release} +Obsoletes: %{name}-devel < 0.7.4-25 + +%description +Small test program for liba52. + +%description -n liba52 +liba52 is a free library for decoding ATSC A/52 streams. The A/52 +standard is used in a variety of applications, including digital +television and DVD. It is also known as AC-3 or AC3 + +%description -n liba52-devel +The liba52-devel package contains libraries and header files for +developing applications that use liba52-devel. + + +%prep +%autosetup -p1 + +sed -i -e 's/-prefer-non-pic/-prefer-pic/' \ + configure liba52/configure.incl + +# Convert to utf-8 +for file in AUTHORS; do + iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \ + touch -r $file $file.new && \ + mv $file.new $file +done + + +%build +%configure --enable-shared --disable-static +%make_build + + +%install +%make_install + + +%ldconfig_scriptlets -n liba52 + + +%files +%exclude %{_libdir}/liba52.la +%doc AUTHORS ChangeLog HISTORY NEWS TODO +%{_bindir}/%{name} +%{_bindir}/extract_a52 +%{_mandir}/man1/a52dec.1* +%{_mandir}/man1/extract_a52.1* + +%files -n liba52 +%license COPYING +%{_libdir}/liba52.so.* + +%files -n liba52-devel +%doc doc/liba52.txt +%{_includedir}/%{name} +%{_libdir}/liba52.so + + +%changelog +* Fri Jul 31 2020 Fedora Release Engineering - 0.7.4-39 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 0.7.4-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 0.7.4-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 0.7.4-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 0.7.4-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jul 17 2018 Nicolas Chauvet - 0.7.4-34 +- Add missng cc + +* Thu Jul 12 2018 Fedora Release Engineering - 0.7.4-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 0.7.4-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 0.7.4-31 +- Switch to %%ldconfig_scriptlets + +* Wed Aug 02 2017 Fedora Release Engineering - 0.7.4-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.7.4-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Apr 07 2017 Nicolas Chauvet - 0.7.4-28 +- Obsoletes at the same version see rhbz#1439690#c16 + +* Tue Apr 04 2017 Nicolas Chauvet - 0.7.4-27 +- Fix others 3rd part repos + +* Thu Mar 30 2017 Nicolas Chauvet - 0.7.4-26 +- Fix multilibs transition + +* Tue Mar 21 2017 Nicolas Chauvet - 0.7.4-25 +- Fixup Obsoletes/Provides for the devel +- Use sed instead of perl to avoid a build dependency + +* Mon Mar 20 2017 Nicolas Chauvet - 0.7.4-24 +- Multilibs support - rhbz#1433758 +- Simplify description +- Convert AUTHORS to UTF-8 +- Drop Groups +- Add Obsoletes/Provides for a52dec-devel + +* Sat Mar 18 2017 RPM Fusion Release Engineering - 0.7.4-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Aug 23 2016 Nicolas Chauvet - 0.7.4-21 +- Fix macro in comment + +* Tue Aug 16 2016 Sérgio Basto - 0.7.4-20 +- Clean spec, with Vascom, rfbz #4193, add license tag + +* Sat Aug 30 2014 Sérgio Basto - 0.7.4-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Mar 10 2013 Nicolas Chauvet - 0.7.4-18 +- Add silence patch as we don't built with DJBFFT enabled + +* Sun Mar 03 2013 Nicolas Chauvet - 0.7.4-17 +- Mass rebuilt for Fedora 19 Features + +* Wed Jan 25 2012 Nicolas Chauvet - 0.7.4-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Apr 28 2009 Thorsten Leemhuis - 0.7.4-15 +- rebuild + +* Sun Mar 29 2009 Thorsten Leemhuis - 0.7.4-14 +- rebuild for new F11 features + +* Sun Aug 03 2008 Thorsten Leemhuis - 0.7.4-12 +- integrate a fix from livna that got lost + +* Thu Jul 24 2008 David Juran - 0.7.4-12 +- Bump Release for RpmFusion + +* Sun Nov 11 2007 Dominik Mierzejewski 0.7.4-11.1 +- Really drop djbfft + +* Mon Oct 1 2007 David Juran - 0.7.4-11 +- Fix Licence tag to be GPLv2 +- Drop %%makeinstall macro +- Drop static archive +- Drop djbfft + +* Fri Oct 06 2006 Thorsten Leemhuis 0.7.4-10 +- rebuilt for unwind info generation, broken in gcc-4.1.1-21 + +* Mon Mar 13 2006 Thorsten Leemhuis - 0.7.4-9 +- Drop epoch in devel dep, too + +* Thu Mar 09 2006 Andreas Bierfert +- switch to new release field +- drop epoch + +* Tue Feb 28 2006 Andreas Bierfert +- add dist + +* Thu Feb 16 2006 Ville Skyttä - 0:0.7.4-0.lvn.8 +- Avoid standard rpaths on lib64 archs. + +* Tue Jul 27 2004 Ville Skyttä - 0:0.7.4-0.lvn.7 +- Prefer PIC. +- (Build)Require djbfft-devel. +- Include more docs. + +* Sun Sep 28 2003 Dams 0:0.7.4-0.fdr.6 +- Removed comment after scriptlets +- buildroot -> RPM_BUILD_ROOT + +* Mon Apr 14 2003 Dams 0:0.7.4-0.fdr.5 +- devel package require djbfft (not djbfft-devel) + +* Sun Apr 13 2003 Dams 0:0.7.4-0.fdr.4 +- Enabled support for djbfft + +* Sun Apr 13 2003 Dams 0:0.7.4-0.fdr.3 +- Added post and postun scriplet +- moved man pages from devel to main package + +* Sun Apr 13 2003 Dams 0:0.7.4-0.fdr.2 +- make configure honor optflags +- devel package +- shared library added + +* Thu Apr 10 2003 Dams +- Initial build. diff --git a/liba52-silence.patch b/liba52-silence.patch new file mode 100644 index 0000000..a739966 --- /dev/null +++ b/liba52-silence.patch @@ -0,0 +1,17 @@ +diff -ru a52dec.orig/liba52/imdct.c a52dec/liba52/imdct.c +--- a52dec.orig/liba52/imdct.c 2012-02-06 19:40:21.000000000 +0200 ++++ a52dec/liba52/imdct.c 2012-02-06 19:40:53.000000000 +0200 +@@ -419,13 +419,11 @@ + + #ifdef LIBA52_DJBFFT + if (mm_accel & MM_ACCEL_DJBFFT) { +- fprintf (stderr, "Using djbfft for IMDCT transform\n"); + ifft128 = (void (*) (complex_t *)) fftc4_un128; + ifft64 = (void (*) (complex_t *)) fftc4_un64; + } else + #endif + { +- fprintf (stderr, "No accelerated IMDCT transform found\n"); + ifft128 = ifft128_c; + ifft64 = ifft64_c; + } diff --git a/sources b/sources new file mode 100644 index 0000000..f55daf9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (a52dec-0.7.4.tar.gz) = 4b26fe9492f218b775fb190b76ecf06edaeb656adfe6dcbd24d0a0f86871c3ba917edb88a398eb12dccedaa1605b6f0a0be06b09f9fddd9a46e457b7dd244848