Fri, 11 Mar 2011 21:36:51 +0100
Adjust specification build configurations to port packages to MeeGo.
michael@1 | 1 | Name: x264 |
michael@1 | 2 | Summary: H264/AVC video streams encoder |
michael@1 | 3 | Vendor: Europalab Software |
michael@1 | 4 | Packager: Michael Schloh von Bennewitz |
michael@1 | 5 | Distribution: MeeGo Thirdparty |
michael@1 | 6 | Version: 20101210 |
michael@1 | 7 | Release: 20101210 |
michael@1 | 8 | License: GPLv2+ |
michael@1 | 9 | Group: System Environment/Libraries |
michael@1 | 10 | URL: http://developers.videolan.org/x264.html |
michael@1 | 11 | Source0: %{name}-%{version}.tar.bz2 |
michael@1 | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
michael@1 | 13 | Requires: %{name}-libs = %{version}-%{release} |
michael@0 | 14 | BuildRequires: yasm |
michael@0 | 15 | |
michael@0 | 16 | %description |
michael@1 | 17 | x264 is a free library for encoding H264/AVC video streams. |
michael@1 | 18 | This package contains the frontend application. |
michael@0 | 19 | |
michael@0 | 20 | %package libs |
michael@0 | 21 | Summary: Library for encoding H264/AVC video streams |
michael@0 | 22 | Group: Development/Libraries |
michael@0 | 23 | |
michael@0 | 24 | %description libs |
michael@1 | 25 | x264 is a free library for encoding H264/AVC video streams. |
michael@1 | 26 | This package contains runtime libraries. |
michael@0 | 27 | |
michael@0 | 28 | %package devel |
michael@0 | 29 | Summary: Development files for the x264 library |
michael@0 | 30 | Group: Development/Libraries |
michael@0 | 31 | Requires: %{name}-libs = %{version}-%{release} |
michael@0 | 32 | Requires: pkgconfig |
michael@0 | 33 | |
michael@0 | 34 | %description devel |
michael@1 | 35 | x264 is a free library for encoding H264/AVC video streams. |
michael@0 | 36 | This package contains the development files. |
michael@0 | 37 | |
michael@0 | 38 | %prep |
michael@1 | 39 | %setup -q -n %{name}-%{version} |
michael@0 | 40 | %ifarch i686 |
michael@0 | 41 | mkdir simd |
michael@0 | 42 | cp -a `ls -1|grep -v simd` simd/ |
michael@0 | 43 | %endif |
michael@1 | 44 | %{__sed} -i \ |
michael@1 | 45 | -e 's;\(\./version.sh\);# Dont run this: \1;g' \ |
michael@1 | 46 | configure |
michael@0 | 47 | |
michael@0 | 48 | %build |
michael@1 | 49 | %configure \ |
michael@1 | 50 | --enable-shared \ |
michael@1 | 51 | --host=%{_target_platform} \ |
michael@0 | 52 | %ifarch i686 |
michael@1 | 53 | --disable-asm \ |
michael@0 | 54 | %endif |
michael@1 | 55 | --enable-visualize |
michael@1 | 56 | echo '#define X264_VERSION "r1820 fdcf2ae"' >>config.h |
michael@1 | 57 | echo '#define X264_POINTVER "0.110.1820 fdcf2ae"' >>config.h |
michael@0 | 58 | %{__make} %{?_smp_mflags} |
michael@0 | 59 | %ifarch i686 |
michael@0 | 60 | pushd simd |
michael@1 | 61 | %configure \ |
michael@1 | 62 | --host=%{_target_platform} |
michael@0 | 63 | %{__make} %{?_smp_mflags} |
michael@0 | 64 | popd |
michael@0 | 65 | %endif |
michael@0 | 66 | |
michael@0 | 67 | %install |
michael@0 | 68 | %{__rm} -rf %{buildroot} |
michael@0 | 69 | %{__make} DESTDIR=%{buildroot} install |
michael@0 | 70 | |
michael@0 | 71 | %clean |
michael@0 | 72 | %{__rm} -rf %{buildroot} |
michael@0 | 73 | |
michael@0 | 74 | %post libs -p /sbin/ldconfig |
michael@0 | 75 | |
michael@0 | 76 | %postun libs -p /sbin/ldconfig |
michael@0 | 77 | |
michael@0 | 78 | %files |
michael@0 | 79 | %defattr(644, root, root, 0755) |
michael@0 | 80 | %doc AUTHORS COPYING |
michael@0 | 81 | %attr(755,root,root) %{_bindir}/x264 |
michael@0 | 82 | |
michael@0 | 83 | %files libs |
michael@0 | 84 | %defattr(644, root, root, 0755) |
michael@0 | 85 | %{_libdir}/libx264.so.* |
michael@0 | 86 | %ifarch i686 |
michael@0 | 87 | %{_libdir}/sse2/libx264.so.* |
michael@0 | 88 | %exclude %{_libdir}/sse2/libx264.a |
michael@0 | 89 | %endif |
michael@0 | 90 | %exclude %{_libdir}/libx264.a |
michael@0 | 91 | |
michael@0 | 92 | %files devel |
michael@0 | 93 | %defattr(644, root, root, 0755) |
michael@0 | 94 | %doc doc/* |
michael@0 | 95 | %{_includedir}/x264.h |
michael@1 | 96 | %{_includedir}/x264_config.h |
michael@1 | 97 | %{_libdir}/libx264.a |
michael@0 | 98 | %{_libdir}/libx264.so |
michael@0 | 99 | %{_libdir}/pkgconfig/%{name}.pc |
michael@0 | 100 | %ifarch i686 |
michael@0 | 101 | %{_libdir}/sse2/libx264.so |
michael@0 | 102 | %endif |
michael@0 | 103 | |
michael@0 | 104 | %changelog |
michael@1 | 105 | * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 4.1.3-20101201 |
michael@1 | 106 | - Adjust packaging and patch logic |
michael@1 | 107 | |
michael@0 | 108 | * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> 0.0.0-0.28.20100706gitd058f37 |
michael@1 | 109 | - Build for MeeGo 1.1 |