diff --git a/libmpeg2-0.5.1.tar.gz b/libmpeg2-0.5.1.tar.gz new file mode 100644 index 0000000..898587a Binary files /dev/null and b/libmpeg2-0.5.1.tar.gz differ 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..fe1c7b8 --- /dev/null +++ b/libmpeg2.spec @@ -0,0 +1,74 @@ +Name: libmpeg2 +Version: 0.5.1 +Release: 19 +Summary: The decoder libraries for MPEG-2 +License: GPLv2+ +URL: http://libmpeg2.sourceforge.net +Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz +Patch0000: libmpeg2-inline.patch + +BuildRequires: SDL-devel libXt-devel libXv-devel automake 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: The decoder program for MPEG-2 +Requires: %{name} = %{version}-%{release} + +%description -n mpeg2dec +The libmpeg2-devel package contains libraries and header files for developing applications. + +%package devel +Summary: Development files for libmpeg2 +Requires: %{name} = %{version}-%{release} + +%description devel +The libmpeg2-devel package contains libraries and header files for developing applications. + +%prep +%autosetup -n libmpeg2-%{version} -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 +sed -i -e 's/ppc-/noppc64-/' configure.ac configure +sed -i -e 's/powerpc-/nopowerpc64-/' configure.ac configure + +%build +%configure +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} OPT_CFLAGS="" + +%install +%{make_install} +install -pm 0644 libmpeg2/mpeg2_internal.h %{buildroot}%{_includedir}/mpeg2dec/ +%delete_la + +%post +/sbin/ldconfig +%postun +/sbin/ldconfig + +%files +%doc AUTHORS ChangeLog NEWS README TODO COPYING +%{_libdir}/*.so.* + +%files -n mpeg2dec +%{_bindir}/{corrupt_mpeg2,extract_mpeg2,mpeg2dec} +%{_mandir}/man1/*.1* + +%files devel +%doc CodingStyle doc/libmpeg2.txt doc/sample*.c +%{_includedir}/mpeg2dec/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/{libmpeg2.pc,libmpeg2convert.pc} +%exclude %{_libdir}/{libmpeg2.a,libmpeg2convert.a} + +%changelog +* Tue Jun 9 2020 leiju - 0.5.1-19 +- Package init