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