michael@0: Name: libmpeg2 michael@0: Version: 0.5.1 michael@0: Release: 9%{?dist} michael@0: Summary: MPEG-2 decoder libraries michael@0: michael@0: Group: System Environment/Libraries michael@0: License: GPLv2+ michael@0: URL: http://libmpeg2.sourceforge.net/ michael@0: Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz michael@0: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) michael@0: michael@0: BuildRequires: SDL-devel michael@0: BuildRequires: libXt-devel michael@0: BuildRequires: libXv-devel michael@0: michael@0: michael@0: %description michael@0: libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video michael@0: streams. It is released under the terms of the GPL license. michael@0: michael@0: %package -n mpeg2dec michael@0: Summary: MPEG-2 decoder program michael@0: Group: Applications/Multimedia michael@0: Requires: %{name} = %{version}-%{release} michael@0: michael@0: %description -n mpeg2dec michael@0: The %{name}-devel package contains libraries and header files for michael@0: developing applications that use %{name}. michael@0: michael@0: %package devel michael@0: Summary: Development files for %{name} michael@0: Group: Development/Libraries michael@0: Requires: %{name} = %{version}-%{release} michael@0: Requires: pkgconfig michael@0: # Introducted in F-10 Can be dropped in F-12 michael@0: Provides: mpeg2dec-devel = %{version}-%{release} michael@0: Obsoletes: mpeg2dec-devel < %{version} michael@0: michael@0: %description devel michael@0: The %{name}-devel package contains libraries and header files for michael@0: developing applications that use %{name}. michael@0: michael@0: michael@0: %prep michael@0: %setup -q michael@0: iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp michael@0: touch -r AUTHORS AUTHORS.tmp michael@0: cp -p -f AUTHORS.tmp AUTHORS michael@0: rm AUTHORS.tmp michael@0: michael@0: #Disable ppc altivec case michael@0: sed -i -e 's/ppc-/noppc64-/' configure.ac configure michael@0: sed -i -e 's/powerpc-/nopowerpc64-/' configure.ac configure michael@0: michael@0: %build michael@0: %configure --disable-static \ michael@0: %ifarch %{ix86} ppc michael@0: --disable-accel-detect \ michael@0: %endif michael@0: michael@0: # mpeg2dec have rpath michael@0: # remove rpath from libtool michael@0: sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool michael@0: sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool michael@0: michael@0: make %{?_smp_mflags} \ michael@0: %ifarch %{ix86} michael@0: OPT_CFLAGS="-fPIC -DPIC" \ michael@0: %else michael@0: OPT_CFLAGS="" \ michael@0: %endif michael@0: michael@0: michael@0: %install michael@0: rm -rf $RPM_BUILD_ROOT michael@0: make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" michael@0: find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' michael@0: michael@0: michael@0: #Fix datatype internal definitions michael@0: install -pm 0644 libmpeg2/mpeg2_internal.h \ michael@0: $RPM_BUILD_ROOT%{_includedir}/mpeg2dec/ michael@0: michael@0: michael@0: michael@0: %clean michael@0: rm -rf $RPM_BUILD_ROOT michael@0: michael@0: michael@0: %post -p /sbin/ldconfig michael@0: michael@0: %postun -p /sbin/ldconfig michael@0: michael@0: michael@0: %files michael@0: %defattr(-,root,root,-) michael@0: %doc AUTHORS ChangeLog COPYING NEWS README TODO michael@0: %{_libdir}/*.so.* michael@0: michael@0: %files -n mpeg2dec michael@0: %defattr(-,root,root,-) michael@0: %{_bindir}/corrupt_mpeg2 michael@0: %{_bindir}/extract_mpeg2 michael@0: %{_bindir}/mpeg2dec michael@0: %{_mandir}/man1/*.1* michael@0: michael@0: %files devel michael@0: %defattr(-,root,root,-) michael@0: %doc CodingStyle doc/libmpeg2.txt doc/sample*.c michael@0: %{_includedir}/mpeg2dec/ michael@0: %{_libdir}/*.so michael@0: %{_libdir}/pkgconfig/libmpeg2.pc michael@0: %{_libdir}/pkgconfig/libmpeg2convert.pc michael@0: michael@0: michael@0: %changelog michael@0: * Mon Nov 1 2010 Kozinov Ivan - 0.5.1-9 michael@0: - Build for MeeGo 1.1 michael@0: michael@0: * Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.5.1-8 michael@0: - Rebuild for F-12 michael@0: michael@0: * Wed Apr 8 2009 kwizart < kwizart at gmail.com > - 0.5.1-7 michael@0: - New attempt michael@0: michael@0: * Sun Mar 29 2009 Thorsten Leemhuis - 0.5.1-6 michael@0: - rebuild for new F11 features michael@0: michael@0: * Fri Mar 27 2009 kwizart < kwizart at gmail.com > - 0.5.1-5 michael@0: - Rebuild michael@0: - Fix target_arch conditionals michael@0: - Provides internal definitions mpeg2_internal.h michael@0: - Disable ppc altivec optim (TODO improve asm optim later) michael@0: michael@0: * Fri Oct 4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3 michael@0: - Fix CFLAGS on x86 producing selinux denials. michael@0: michael@0: * Wed Jul 30 2008 Thorsten Leemhuis - 0.5.1-1 michael@0: - Update to 0.5.1 michael@0: michael@0: * Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1 michael@0: - Initial package (based on mpeg2dec) michael@0: