michael@0: Name: libmpeg2 michael@1: Summary: MPEG-2 decoder libraries michael@1: Vendor: Europalab Software michael@1: Packager: Michael Schloh von Bennewitz michael@1: Distribution: MeeGo Thirdparty michael@0: Version: 0.5.1 michael@1: Release: 20101201 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@1: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root michael@0: BuildRequires: SDL-devel michael@0: BuildRequires: libXt-devel michael@0: BuildRequires: libXv-devel michael@1: BuildRequires: chrpath michael@0: michael@0: %description michael@1: The libmpeg2 library is a free decoder of mpeg-2 and mpeg-1 video streams. michael@0: michael@1: %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@1: The libmpeg2 library is a free decoder of mpeg-2 and mpeg-1 video michael@1: streams. This package contains the small mpeg2dec(1) test program michael@1: used together with %{name}. michael@1: michael@1: %package devel michael@1: Summary: Development files for %{name} michael@1: Vendor: Europalab Software michael@1: Packager: Michael Schloh von Bennewitz michael@1: Distribution: MeeGo Thirdparty michael@1: Group: Development/Libraries michael@1: Requires: pkgconfig michael@1: Requires: %{name} = %{version}-%{release} michael@1: Provides: %{name}-devel = %{version}-%{release} michael@1: michael@1: %description devel michael@1: The libmpeg2 library is a free decoder of mpeg-2 and mpeg-1 video michael@1: streams. This package contains libraries and header files for michael@0: developing applications that use %{name}. michael@0: michael@0: %prep michael@0: %setup -q michael@0: michael@1: # disable ppc altivec case michael@1: sed -i -e 's;ppc-;noppc64-;' configure.ac configure michael@1: sed -i -e 's;powerpc-;nopowerpc64-;' configure.ac configure michael@0: michael@0: %build michael@1: %configure \ michael@1: --enable-shared \ michael@0: %ifarch %{ix86} ppc michael@1: --disable-accel-detect \ michael@0: %endif michael@1: --disable-rpath michael@0: michael@0: make %{?_smp_mflags} \ michael@0: %ifarch %{ix86} michael@1: OPT_CFLAGS="-fPIC -DPIC" \ michael@0: %else michael@1: OPT_CFLAGS="" michael@0: %endif michael@0: michael@0: %install michael@0: rm -rf $RPM_BUILD_ROOT michael@1: make install DESTDIR=$RPM_BUILD_ROOT michael@0: find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' michael@0: michael@1: # fix datatype internal definitions michael@1: install -pm 0644 libmpeg2/mpeg2_internal.h \ michael@1: $RPM_BUILD_ROOT%{_includedir}/mpeg2dec/ michael@0: michael@1: # remove rpath michael@1: chrpath --delete $RPM_BUILD_ROOT%{_bindir}/* michael@1: chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.* michael@0: michael@0: %clean michael@0: rm -rf $RPM_BUILD_ROOT michael@0: michael@0: %post -p /sbin/ldconfig michael@0: michael@0: %postun -p /sbin/ldconfig 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@1: %{_mandir}/man1/extract_mpeg2.1.gz michael@1: %{_mandir}/man1/mpeg2dec.1.gz michael@0: michael@0: %files devel michael@0: %defattr(-,root,root,-) michael@0: %doc CodingStyle doc/libmpeg2.txt doc/sample*.c michael@1: %{_includedir}/mpeg2dec michael@1: %{_libdir}/*.a michael@0: %{_libdir}/*.so michael@1: %{_libdir}/pkgconfig/*.pc michael@0: michael@0: %changelog michael@1: * Wed Dec 1 2010 Michael Schloh von Bennewitz - 0.5.1-20101201 michael@1: - Adjust packaging and patch logic michael@1: 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: