michael@0: Name: xvidcore michael@0: Summary: MPEG-4 Simple and Advanced Simple Profile codec michael@1: Vendor: Europalab Software michael@1: Packager: Michael Schloh von Bennewitz michael@1: Distribution: MeeGo Thirdparty michael@1: Version: 1.2.2 michael@1: Release: 20101201 michael@0: Group: System Environment/Libraries michael@0: License: GPLv2+ michael@0: URL: http://www.xvid.org/ michael@0: Source0: http://downloads.xvid.org/downloads/xvidcore-%{version}.tar.bz2 michael@1: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root michael@0: %ifarch %{ix86} x86_64 michael@0: BuildRequires: nasm >= 2.0 michael@0: %endif michael@0: michael@0: %description michael@0: The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple michael@0: Profile standards. It permits compressing and decompressing digital video michael@0: in order to reduce the required bandwidth of video data for transmission michael@0: over computer networks or efficient storage on CDs or DVDs. Due to its michael@0: unrivalled quality Xvid has gained great popularity and is used in many michael@1: other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine michael@1: and many more. michael@0: michael@0: %package devel michael@0: Summary: Development files for the Xvid video codec michael@1: Vendor: Europalab Software michael@1: Packager: Michael Schloh von Bennewitz michael@1: Distribution: MeeGo Thirdparty michael@0: Group: Development/Libraries michael@0: Requires: %{name} = %{version}-%{release} michael@0: michael@0: %description devel michael@1: The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple michael@1: Profile standards. It permits compressing and decompressing digital video michael@1: in order to reduce the required bandwidth of video data for transmission michael@1: over computer networks or efficient storage on CDs or DVDs. Due to its michael@1: unrivalled quality Xvid has gained great popularity and is used in many michael@1: other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine michael@1: and many more. michael@0: michael@1: This package contains header files, static library and API documentation michael@1: for the Xvid video codec. michael@0: michael@0: %prep michael@1: %setup -q -c -n %{name}-%{version} michael@1: chmod -x %{name}/examples/*.pl michael@1: %{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' %{name}/build/generic/Makefile michael@0: michael@0: %build michael@1: cd %{name}/build/generic michael@0: export CFLAGS="$RPM_OPT_FLAGS -ffast-math" michael@0: %configure michael@1: make %{?_smp_mflags} michael@0: michael@0: %install michael@0: rm -rf $RPM_BUILD_ROOT michael@1: ( cd %{name} michael@1: make -C build/generic install DESTDIR=$RPM_BUILD_ROOT michael@1: cd $RPM_BUILD_ROOT%{_libdir} michael@1: chmod 755 libxvidcore.so* michael@1: /sbin/ldconfig -n . michael@1: ln -s libxvidcore.so.? libxvidcore.so michael@1: ) || exit $? 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@1: %doc %{name}/LICENSE %{name}/README %{name}/AUTHORS %{name}/ChangeLog michael@0: %{_libdir}/libxvidcore.so.* michael@0: michael@0: %files devel michael@0: %defattr(-,root,root,-) michael@1: %doc %{name}/CodingStyle %{name}/TODO %{name}/examples michael@0: %{_includedir}/xvid.h michael@1: %{_libdir}/libxvidcore.a michael@0: %{_libdir}/libxvidcore.so michael@0: michael@1: %changelog michael@1: * Wed Dec 1 2010 Michael Schloh von Bennewitz - 1.2.2-20101201 michael@1: - Synchronize with upstream vendor version 1.2.2 michael@1: - Adjust packaging and patch logic michael@0: michael@0: * Mon Nov 1 2010 Kozinov Ivan - 1.2.1-1 michael@1: - Package for MeeGo 1.1