x264/x264.spec

Fri, 11 Mar 2011 21:39:41 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:39:41 +0100
changeset 2
e3665a058d13
parent 0
4f133201e207
permissions
-rw-r--r--

Import new package specs for introduction into repository.

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

mercurial