From adce957860fdc4dd7f56d21be2116ec02d4cb43e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 16:38:35 +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/libmpeg2#5a6547f820662abb942252c4639f3686c59cbd7c --- .gitignore | 1 + README.md | 3 + libmpeg2-inline.patch | 10 +++ libmpeg2.spec | 173 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 188 insertions(+) create mode 100644 README.md create mode 100644 libmpeg2-inline.patch create mode 100644 libmpeg2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..152f738 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libmpeg2-0.5.1.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..6121cc5 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# libmpeg2 + +The libmpeg2 package \ No newline at end of file diff --git a/libmpeg2-inline.patch b/libmpeg2-inline.patch new file mode 100644 index 0000000..c80ced7 --- /dev/null +++ b/libmpeg2-inline.patch @@ -0,0 +1,10 @@ +--- libmpeg2/configure.ac 2016-01-20 15:31:37.933547037 +0100 ++++ libmpeg2.new/configure.ac 2016-01-20 15:05:40.931231465 +0100 +@@ -149,7 +149,6 @@ + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST +-AC_C_ALWAYS_INLINE + AC_C_RESTRICT + AC_C_BUILTIN_EXPECT + AC_C_BIGENDIAN diff --git a/libmpeg2.spec b/libmpeg2.spec new file mode 100644 index 0000000..5fc036a --- /dev/null +++ b/libmpeg2.spec @@ -0,0 +1,173 @@ +Name: libmpeg2 +Version: 0.5.1 +Release: 21%{?dist} +Summary: MPEG-2 decoder libraries + +License: GPLv2+ +URL: http://libmpeg2.sourceforge.net +Source0: %{url}/files/libmpeg2-%{version}.tar.gz +# https://github.com/videolan/vlc/blob/master/contrib/src/libmpeg2/libmpeg2-inline.patch +Patch0: libmpeg2-inline.patch + +BuildRequires: gcc +BuildRequires: SDL-devel +BuildRequires: libXt-devel +BuildRequires: libXv-devel +# bootstrap deps +BuildRequires: automake +BuildRequires: libtool + + +%description +libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video +streams. It is released under the terms of the GPL license. + +%package -n mpeg2dec +Summary: MPEG-2 decoder program +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description -n mpeg2dec +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q +%patch0 -p1 +autoreconf -fiv + +iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp +touch -r AUTHORS AUTHORS.tmp +cp -p -f AUTHORS.tmp AUTHORS +rm AUTHORS.tmp + +#Disable ppc altivec case +sed -i -e 's/ppc-/noppc64-/' configure.ac configure +sed -i -e 's/powerpc-/nopowerpc64-/' configure.ac configure + +%build +%configure --disable-static \ +%ifarch %{ix86} ppc + --disable-accel-detect \ +%endif + +# mpeg2dec have rpath +# remove rpath from libtool +sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +%{make_build} \ +%ifarch %{ix86} + OPT_CFLAGS="-fPIC -DPIC" \ +%else + OPT_CFLAGS="" \ +%endif + + +%install +%{make_install} +find %{buildroot} -name '*.la' -exec rm -f {} ';' + + +#Fix datatype internal definitions +install -pm 0644 libmpeg2/mpeg2_internal.h \ + %{buildroot}%{_includedir}/mpeg2dec/ + +%ldconfig_scriptlets + +%files +%doc AUTHORS ChangeLog NEWS README TODO +%license COPYING +%{_libdir}/*.so.* + +%files -n mpeg2dec +%{_bindir}/corrupt_mpeg2 +%{_bindir}/extract_mpeg2 +%{_bindir}/mpeg2dec +%{_mandir}/man1/*.1* + +%files devel +%doc CodingStyle doc/libmpeg2.txt doc/sample*.c +%{_includedir}/mpeg2dec/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/libmpeg2.pc +%{_libdir}/pkgconfig/libmpeg2convert.pc + + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 0.5.1-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 0.5.1-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 0.5.1-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed May 08 2019 Yaakov Selkowitz - 0.5.1-18 +- Rebuilt for inclusion in Fedora + +* Mon Mar 04 2019 RPM Fusion Release Engineering - 0.5.1-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 26 2018 RPM Fusion Release Engineering - 0.5.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Apr 29 2018 Leigh Scott - 0.5.1-15 +- Add patch to fix inline warnings +- Spec file clean up + +* Thu Mar 01 2018 RPM Fusion Release Engineering - 0.5.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 31 2017 RPM Fusion Release Engineering - 0.5.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Mar 19 2017 RPM Fusion Release Engineering - 0.5.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun Aug 31 2014 Sérgio Basto - 0.5.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Mar 03 2013 Nicolas Chauvet - 0.5.1-10 +- Mass rebuilt for Fedora 19 Features + +* Wed Jan 25 2012 Nicolas Chauvet - 0.5.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.5.1-8 +- Rebuild for F-12 + +* Wed Apr 8 2009 kwizart < kwizart at gmail.com > - 0.5.1-7 +- New attempt + +* Sun Mar 29 2009 Thorsten Leemhuis - 0.5.1-6 +- rebuild for new F11 features + +* Fri Mar 27 2009 kwizart < kwizart at gmail.com > - 0.5.1-5 +- Rebuild +- Fix target_arch conditionals +- Provides internal definitions mpeg2_internal.h +- Disable ppc altivec optim (TODO improve asm optim later) + +* Sat Oct 4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3 +- Fix CFLAGS on x86 producing selinux denials. + +* Wed Jul 30 2008 Thorsten Leemhuis - 0.5.1-1 +- Update to 0.5.1 + +* Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1 +- Initial package (based on mpeg2dec) + diff --git a/sources b/sources new file mode 100644 index 0000000..59190f6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libmpeg2-0.5.1.tar.gz) = 3648a2b3d7e2056d5adb328acd2fb983a1fa9a05ccb6f9388cc686c819445421811f42e8439418a0491a13080977f074a0d8bf8fa6bc101ff245ddea65a46fbc