commit 280e2a25284cf08938de091bb6c32b8e10f730f7
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Fri Jun 7 11:25:21 2019 +0200
Revert "libmpeg2 moved to Fedora - rhbz#5253"
This reverts commit 6d1234c05d22be4595c3c5d96c72280146bd7438.
.gitignore | 1 +
dead.package | 1 -
libmpeg2-inline.patch | 10 ++++
libmpeg2.spec | 160 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 172 insertions(+), 1 deletion(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..74d4efb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+libmpeg2-0.5.1.tar.gz
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..993adce
--- /dev/null
+++ b/libmpeg2.spec
@@ -0,0 +1,160 @@
+Name: libmpeg2
+Version: 0.5.1
+Release: 17%{?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...
+Patch0: libmpeg2-inline.patch
+
+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
+* Mon Mar 04 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
0.5.1-17
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Thu Jul 26 2018 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
0.5.1-16
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Sun Apr 29 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 0.5.1-15
+- Add patch to fix inline warnings
+- Spec file clean up
+
+* Thu Mar 01 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> -
0.5.1-14
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
0.5.1-13
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Sun Mar 19 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
0.5.1-12
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Sun Aug 31 2014 Sérgio Basto <sergio(a)serjux.com> - 0.5.1-11
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sun Mar 03 2013 Nicolas Chauvet <kwizart(a)gmail.com> - 0.5.1-10
+- Mass rebuilt for Fedora 19 Features
+
+* Wed Jan 25 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 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 <fedora [AT] leemhuis [DOT] info> - 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 <fedora [AT] leemhuis [DOT] info - 0.5.1-2
+- rebuild for buildsys cflags issue
+
+* Fri Jul 18 2008 kwizart < kwizart at
gmail.com > - 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..2a1f40e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0f92c7454e58379b4a5a378485bbd8ef libmpeg2-0.5.1.tar.gz