michael@1: Name: x264 michael@1: Summary: H264/AVC video streams encoder michael@1: Vendor: Europalab Software michael@1: Packager: Michael Schloh von Bennewitz michael@1: Distribution: MeeGo Thirdparty michael@1: Version: 20101210 michael@1: Release: 20101210 michael@1: License: GPLv2+ michael@1: Group: System Environment/Libraries michael@1: URL: http://developers.videolan.org/x264.html michael@1: Source0: %{name}-%{version}.tar.bz2 michael@1: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root michael@1: Requires: %{name}-libs = %{version}-%{release} michael@0: BuildRequires: yasm michael@0: michael@0: %description michael@1: x264 is a free library for encoding H264/AVC video streams. michael@1: This package contains the frontend application. michael@0: michael@0: %package libs michael@0: Summary: Library for encoding H264/AVC video streams michael@0: Group: Development/Libraries michael@0: michael@0: %description libs michael@1: x264 is a free library for encoding H264/AVC video streams. michael@1: This package contains runtime libraries. michael@0: michael@0: %package devel michael@0: Summary: Development files for the x264 library michael@0: Group: Development/Libraries michael@0: Requires: %{name}-libs = %{version}-%{release} michael@0: Requires: pkgconfig michael@0: michael@0: %description devel michael@1: x264 is a free library for encoding H264/AVC video streams. michael@0: This package contains the development files. michael@0: michael@0: %prep michael@1: %setup -q -n %{name}-%{version} michael@0: %ifarch i686 michael@0: mkdir simd michael@0: cp -a `ls -1|grep -v simd` simd/ michael@0: %endif michael@1: %{__sed} -i \ michael@1: -e 's;\(\./version.sh\);# Dont run this: \1;g' \ michael@1: configure michael@0: michael@0: %build michael@1: %configure \ michael@1: --enable-shared \ michael@1: --host=%{_target_platform} \ michael@0: %ifarch i686 michael@1: --disable-asm \ michael@0: %endif michael@1: --enable-visualize michael@1: echo '#define X264_VERSION "r1820 fdcf2ae"' >>config.h michael@1: echo '#define X264_POINTVER "0.110.1820 fdcf2ae"' >>config.h michael@0: %{__make} %{?_smp_mflags} michael@0: %ifarch i686 michael@0: pushd simd michael@1: %configure \ michael@1: --host=%{_target_platform} michael@0: %{__make} %{?_smp_mflags} michael@0: popd michael@0: %endif michael@0: michael@0: %install michael@0: %{__rm} -rf %{buildroot} michael@0: %{__make} DESTDIR=%{buildroot} install michael@0: michael@0: %clean michael@0: %{__rm} -rf %{buildroot} michael@0: michael@0: %post libs -p /sbin/ldconfig michael@0: michael@0: %postun libs -p /sbin/ldconfig michael@0: michael@0: %files michael@0: %defattr(644, root, root, 0755) michael@0: %doc AUTHORS COPYING michael@0: %attr(755,root,root) %{_bindir}/x264 michael@0: michael@0: %files libs michael@0: %defattr(644, root, root, 0755) michael@0: %{_libdir}/libx264.so.* michael@0: %ifarch i686 michael@0: %{_libdir}/sse2/libx264.so.* michael@0: %exclude %{_libdir}/sse2/libx264.a michael@0: %endif michael@0: %exclude %{_libdir}/libx264.a michael@0: michael@0: %files devel michael@0: %defattr(644, root, root, 0755) michael@0: %doc doc/* michael@0: %{_includedir}/x264.h michael@1: %{_includedir}/x264_config.h michael@1: %{_libdir}/libx264.a michael@0: %{_libdir}/libx264.so michael@0: %{_libdir}/pkgconfig/%{name}.pc michael@0: %ifarch i686 michael@0: %{_libdir}/sse2/libx264.so michael@0: %endif michael@0: michael@0: %changelog michael@1: * Wed Dec 1 2010 Michael Schloh von Bennewitz - 4.1.3-20101201 michael@1: - Adjust packaging and patch logic michael@1: michael@0: * Mon Nov 1 2010 Kozinov Ivan 0.0.0-0.28.20100706gitd058f37 michael@1: - Build for MeeGo 1.1