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