[6241] | 1 | %global snapshot_date 20120525 |
---|
[5297] | 2 | %global snapshot_time 2245 |
---|
| 3 | %global branch stable |
---|
[615] | 4 | |
---|
| 5 | Summary: Library for encoding and decoding H264/AVC video streams |
---|
[1258] | 6 | Name: x264 |
---|
[6241] | 7 | Version: 0.124 |
---|
| 8 | Release: 1.%{snapshot_date}%{?_dist_release} |
---|
[1258] | 9 | License: GPLv2+ |
---|
| 10 | Group: System Environment/Libraries |
---|
| 11 | URL: http://www.videolan.org/developers/x264.html |
---|
[5297] | 12 | Source: http://www.videolan.org/pub/videolan/x264/snapshots/%{name}-snapshot-%{snapshot_date}-%{snapshot_time}%{?branch:-%{branch}}.tar.bz2 |
---|
[6241] | 13 | BuildRequires: yasm >= 1.0.0 |
---|
[615] | 14 | # gpac-devel package provided by self-build-gpac |
---|
| 15 | # in self-build-%{name}.spec as PreReq. |
---|
| 16 | #BuildRequires: gpac-devel |
---|
| 17 | |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | |
---|
[1258] | 20 | Provides: libx264 = %{version} |
---|
| 21 | Obsoletes: libx264 < %{version} |
---|
[6241] | 22 | Obsoletes: x264 < %{version}, x264-devel < %{version} |
---|
[1258] | 23 | |
---|
| 24 | |
---|
[615] | 25 | %description |
---|
| 26 | x264 is a free library for encoding H264/AVC video streams, written from |
---|
| 27 | scratch. |
---|
| 28 | |
---|
[6241] | 29 | This package also contains the frontend. |
---|
| 30 | |
---|
[615] | 31 | %package devel |
---|
| 32 | Summary: Development files for the x264 library |
---|
| 33 | Group: Development/Libraries |
---|
| 34 | Requires: %{name} = %{version}-%{release} |
---|
| 35 | Requires: pkgconfig |
---|
| 36 | |
---|
| 37 | %description devel |
---|
| 38 | x264 is a free library for encoding H264/AVC video streams, written from |
---|
| 39 | scratch. |
---|
| 40 | |
---|
[1258] | 41 | This package contains the development files. |
---|
[615] | 42 | |
---|
| 43 | %prep |
---|
[5297] | 44 | %setup -q -n %{name}-snapshot-%{snapshot_date}-%{snapshot_time}%{?branch:-%{branch}} |
---|
[615] | 45 | |
---|
| 46 | %build |
---|
| 47 | ./configure \ |
---|
[1258] | 48 | --host=%{_target_platform} \ |
---|
| 49 | --prefix=%{_prefix} \ |
---|
| 50 | --exec-prefix=%{_exec_prefix} \ |
---|
| 51 | --bindir=%{_bindir} \ |
---|
| 52 | --includedir=%{_includedir} \ |
---|
| 53 | --libdir=%{_libdir} \ |
---|
| 54 | --extra-cflags="$RPM_OPT_FLAGS" \ |
---|
[3126] | 55 | \ |
---|
[1258] | 56 | %{?_with_visualize:--enable-visualize} \ |
---|
[5297] | 57 | %{!?_with_libavformat:--disable-lavf} \ |
---|
| 58 | %{!?_with_ffmpegsource:--disable-ffms} \ |
---|
[1258] | 59 | --enable-debug \ |
---|
| 60 | --enable-shared \ |
---|
[6241] | 61 | --system-libx264 \ |
---|
[1258] | 62 | --enable-pic \ |
---|
| 63 | ; |
---|
[615] | 64 | |
---|
[1258] | 65 | |
---|
[615] | 66 | %{__make} %{?_smp_mflags} |
---|
| 67 | |
---|
| 68 | %install |
---|
| 69 | %{__rm} -rf %{buildroot} |
---|
| 70 | %{__make} DESTDIR=%{buildroot} install |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %clean |
---|
| 74 | %{__rm} -rf %{buildroot} |
---|
| 75 | |
---|
| 76 | %post -p /sbin/ldconfig |
---|
| 77 | |
---|
| 78 | %postun -p /sbin/ldconfig |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | %files |
---|
| 82 | %defattr(644, root, root, 0755) |
---|
| 83 | %doc AUTHORS COPYING |
---|
| 84 | %attr(755,root,root) %{_bindir}/x264 |
---|
| 85 | %{_libdir}/libx264.so.* |
---|
| 86 | |
---|
| 87 | %files devel |
---|
| 88 | %defattr(644, root, root, 0755) |
---|
[5297] | 89 | %doc doc/* |
---|
[615] | 90 | %{_includedir}/x264.h |
---|
[3126] | 91 | %{_includedir}/x264_config.h |
---|
[615] | 92 | %{_libdir}/libx264.so |
---|
| 93 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | %changelog |
---|
[6241] | 98 | * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.124-1.20120525 |
---|
| 99 | - updated source snapshot 20120525 stable branch (ABI 0.124) |
---|
| 100 | - changed release number; upstream have release numbers at least on stable branch |
---|
| 101 | |
---|
[5297] | 102 | * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-18.20111216 |
---|
| 103 | - updated source snapshot 20111216 stable branch (ABI 0.119) |
---|
| 104 | |
---|
| 105 | * Sun Oct 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-17.20111013 |
---|
| 106 | - updated source snapshot 20111013 stable branch (ABI 0.116) |
---|
| 107 | |
---|
[4696] | 108 | * Thu Sep 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-16.20110322 |
---|
| 109 | - change release to sync with self-build-x264 |
---|
| 110 | |
---|
[3126] | 111 | * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-15.20110322 |
---|
[5297] | 112 | - updated source snapshot 20110322 (ABI 0.114) |
---|
[3126] | 113 | |
---|
[1258] | 114 | * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-14.20100625 |
---|
| 115 | - updated source snapshot 20100625 |
---|
| 116 | |
---|
[615] | 117 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-13.20100216 |
---|
| 118 | - change release to sync with self-build-x264 |
---|
| 119 | |
---|
| 120 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-12.20100216 |
---|
| 121 | - updated source snapshot 20100216 |
---|
| 122 | - applied to link x264 binary to the shared library from RPM Fusion development |
---|
| 123 | |
---|
| 124 | * Mon Sep 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-11.20090522 |
---|
| 125 | - changed Source0: to http://www.videolan.org/pub/videolan/x264/snapshots |
---|
| 126 | |
---|
| 127 | * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-10.20090522 |
---|
| 128 | - change release to sync with self-build-x264 |
---|
| 129 | |
---|
| 130 | * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-9.20090522 |
---|
| 131 | - 20090522 snapshot |
---|
| 132 | - updated x264-vine.patch |
---|
| 133 | |
---|
| 134 | * Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-8.20090110 |
---|
| 135 | - corrected release number |
---|
| 136 | |
---|
| 137 | * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-6.20090110 |
---|
| 138 | - added configure options: --enable-mp4-output |
---|
| 139 | - added BuildRequires: gpac-devel |
---|
| 140 | |
---|
| 141 | * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-5.20090110 |
---|
| 142 | - change release to sync with self-build-x264 |
---|
| 143 | |
---|
| 144 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-4.20090110 |
---|
| 145 | - 20090110 snapshot |
---|
| 146 | |
---|
| 147 | * Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-3.20081001 |
---|
| 148 | - fixed License: GPLv2+ |
---|
| 149 | - added BuildRequires: gettext |
---|
| 150 | - source updated |
---|
| 151 | - fixed x264-rpm.patch (merged x264-rpm.patch from RPM Fusion) |
---|
| 152 | and added x264-vine.patch |
---|
| 153 | #- changed version from 0.0.0-1.20080225 to 0.0.0-20081111.1 |
---|
| 154 | |
---|
| 155 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-2.20080225vl1 |
---|
| 156 | - spec in utf8 |
---|
| 157 | |
---|
| 158 | * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.0.0-1.20080225 |
---|
| 159 | - apply new versioning policy |
---|
| 160 | |
---|
| 161 | * Wed Feb 27 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-0.20080225vl1 |
---|
| 162 | - initial build for Vine Linux 4.2 |
---|
| 163 | |
---|
| 164 | * Sun Jan 20 2008 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.57-0.r721vlmp1 |
---|
| 165 | - update to SVN r721 |
---|
| 166 | |
---|
| 167 | * Sat Aug 4 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.56-0.r667vlmp1 |
---|
| 168 | - initial build for Vine Linux 4.1 |
---|
| 169 | |
---|
| 170 | ### end of file |
---|