[7842] | 1 | %global snapshot_date 20130927 |
---|
[5297] | 2 | %global snapshot_time 2245 |
---|
| 3 | %global branch stable |
---|
[615] | 4 | |
---|
[5297] | 5 | %global pkgname x264 |
---|
| 6 | %global name self-build-%{pkgname} |
---|
[7842] | 7 | %global version 0.136 |
---|
[6241] | 8 | %global release 1.%{snapshot_date}%{?_dist_release} |
---|
[5297] | 9 | |
---|
[615] | 10 | #define sourceurl0 ftp://ftp.videolan.org/pub/videolan/x264/snapshots/%{pkgname}-snapshot-%{date}-%{time}.tar.bz2 |
---|
[5297] | 11 | %define sourceurl0 http://www.videolan.org/pub/videolan/x264/snapshots/%{pkgname}-snapshot-%{snapshot_date}-%{snapshot_time}%{?branch:-%{branch}}.tar.bz2 |
---|
[615] | 12 | |
---|
| 13 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 14 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 15 | Name: %{name} |
---|
| 16 | Version: %{version} |
---|
| 17 | Release: %{release} |
---|
| 18 | Source0: %{pkgname}-vl.spec |
---|
| 19 | |
---|
| 20 | License: GPLv2+ |
---|
| 21 | Group: Restricted Software |
---|
| 22 | |
---|
[6241] | 23 | Obsoletes: x264 < %{version}, x264-devel < %{version} |
---|
[5297] | 24 | Obsoletes: self-build-x264 < %{version}-%{release} |
---|
[1258] | 25 | |
---|
[615] | 26 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 27 | |
---|
| 28 | # (build)requies of target package. |
---|
| 29 | Requires(post): yasm |
---|
[7842] | 30 | Requires(post): self-build-gpac >= 0.5.0 |
---|
[615] | 31 | |
---|
[4695] | 32 | BuildArch: noarch |
---|
[615] | 33 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 34 | |
---|
| 35 | Packager: munepi |
---|
| 36 | |
---|
| 37 | %description |
---|
| 38 | x264 is a free library for encoding H264/AVC video streams, written from |
---|
| 39 | scratch. |
---|
| 40 | |
---|
| 41 | If you install this package, it automaticaly downloads source |
---|
| 42 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 43 | And the created rpm packages are automatically installed |
---|
| 44 | if installation is executed by apt-get command or synaptic |
---|
| 45 | package manager. |
---|
| 46 | |
---|
| 47 | [Note] |
---|
| 48 | This package requires many other packages to compile |
---|
| 49 | targetsoftware. So it consume more disk space than usual. |
---|
| 50 | Also installation takes logner time because of compilation. |
---|
| 51 | (This will take a few minutes to quarter or half of an hour, |
---|
| 52 | depends on building environment) |
---|
| 53 | |
---|
| 54 | [About self-build package] |
---|
| 55 | For some kind of software, distributing of binary package |
---|
| 56 | may viorate the patent or law. Therefore we chose self-build |
---|
| 57 | packge, create binary package on your machine, for such kind |
---|
| 58 | of softwares instead of distributing binary package. |
---|
| 59 | |
---|
| 60 | Please obey the national law when you use the created binary |
---|
| 61 | packages. And if you want to use the softwares using patented |
---|
| 62 | thechnology, it may be required to get a permission, make an |
---|
| 63 | agreement or purchas a license. Please consider it with your |
---|
| 64 | purpose or way of use and take appropriate action. |
---|
| 65 | |
---|
| 66 | %description -l ja |
---|
| 67 | x264 はスクラッチから書かれた H264/AVC ビデオストリームをエン |
---|
| 68 | コードするためのフリーなライブラリです. |
---|
| 69 | |
---|
| 70 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 71 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
| 72 | パッケージを作成します。 |
---|
| 73 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 74 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 75 | 行います。 |
---|
| 76 | |
---|
| 77 | [注意] |
---|
| 78 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 79 | ディスクの領域を多く消費します。 |
---|
| 80 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 81 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 82 | |
---|
| 83 | [self-build パッケージについて] |
---|
| 84 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 85 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 86 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 87 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 88 | ジという方法を採っています。 |
---|
| 89 | |
---|
| 90 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 91 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 92 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 93 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 94 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 95 | |
---|
| 96 | %prep |
---|
| 97 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | %install |
---|
| 101 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 102 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 103 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 104 | |
---|
| 105 | %clean |
---|
| 106 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 107 | |
---|
| 108 | %posttrans |
---|
[7842] | 109 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 27000 |
---|
[615] | 110 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
| 111 | %{pkgname}-devel-%{version}-%{release} |
---|
| 112 | |
---|
| 113 | %files |
---|
| 114 | %defattr(-,root,root) |
---|
| 115 | %{_datadir}/%{name} |
---|
| 116 | |
---|
| 117 | %changelog |
---|
[7842] | 118 | * Sun Sep 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.136-1.20130927 |
---|
| 119 | - updated source snapshot 20130927 stable branch (ABI 0.136) |
---|
| 120 | |
---|
| 121 | * Sat Jan 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.129-1.20130118 |
---|
| 122 | - updated source snapshot 20130118 stable branch (ABI 0.129) |
---|
| 123 | |
---|
[6241] | 124 | * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.124-1.20120525 |
---|
| 125 | - updated source snapshot 20120525 stable branch (ABI 0.124) |
---|
| 126 | - changed release number; upstream have release numbers at least on stable branch |
---|
| 127 | |
---|
[5297] | 128 | * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-18.20111216 |
---|
| 129 | - updated source snapshot 20111216 stable branch (ABI 0.119) |
---|
| 130 | |
---|
| 131 | * Sun Oct 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-17.20111013 |
---|
| 132 | - updated source snapshot 20111013 stable branch (ABI 0.116) |
---|
| 133 | |
---|
[4695] | 134 | * Thu Sep 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-16.20110322 |
---|
| 135 | - changed to depend on %%{version} for Obsoletes: x264 |
---|
| 136 | - added BuildArch: noarch |
---|
| 137 | |
---|
[3126] | 138 | * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-15.20110322 |
---|
| 139 | - updated source snapshot 20110322 |
---|
| 140 | |
---|
[1258] | 141 | * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-14.20100625 |
---|
| 142 | - updated source snapshot 20100625 |
---|
| 143 | |
---|
[615] | 144 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-13.20100216 |
---|
| 145 | - renamed %%{Source0} to x264-vl.spec |
---|
| 146 | |
---|
| 147 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-12.20100216 |
---|
| 148 | - updated source snapshot 20100216 |
---|
| 149 | - applied to link x264 binary to the shared library from RPM Fusion development |
---|
| 150 | |
---|
| 151 | * Mon Sep 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-11.20090522 |
---|
| 152 | - changed to download from http://www.videolan.org/pub/videolan/x264/snapshots in %%sourceurl0 |
---|
| 153 | - check version between original spec and self-build spec in %%prep |
---|
| 154 | |
---|
| 155 | * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-10.20090522 |
---|
| 156 | - dropped BuildArch: noarch |
---|
| 157 | |
---|
| 158 | * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-9.20090522 |
---|
| 159 | - 20090522 snapshot |
---|
| 160 | - updated x264-vine.patch |
---|
| 161 | - added BuildArch: noarch |
---|
| 162 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
| 163 | - moved %%post actions to %%posttrans |
---|
| 164 | |
---|
| 165 | * Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-8.20090110 |
---|
| 166 | - corrected release number in x264.spec |
---|
| 167 | |
---|
| 168 | * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.0-7.20090110 |
---|
| 169 | - enable asm on x86/x86_64 arch. (fix typo?) |
---|
| 170 | |
---|
| 171 | * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-6.20090110 |
---|
| 172 | - added PreReq: self-build-gpac |
---|
| 173 | |
---|
| 174 | * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-5.20090110 |
---|
| 175 | - dropped PreReq: nasm for x86 |
---|
| 176 | - added PreReq: yasm for x86 |
---|
| 177 | |
---|
| 178 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-4.20090110 |
---|
| 179 | - 20090110 snapshot |
---|
| 180 | |
---|
| 181 | * Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-3.20081001 |
---|
| 182 | - fixed License: GPLv2+ |
---|
| 183 | - added BuildRequires: gettext |
---|
| 184 | - source updated |
---|
| 185 | - fixed x264-rpm.patch (merged x264-rpm.patch from RPM Fusion) |
---|
| 186 | and added x264-vine.patch |
---|
| 187 | #- changed version from 0.0.0-1.20080225 to 0.0.0-20081111.1 |
---|
| 188 | |
---|
| 189 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-2.20080225vl1 |
---|
| 190 | - spec in utf8 |
---|
| 191 | |
---|
| 192 | * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.0.0-1.20080225 |
---|
| 193 | - run pre-allocate-rpm.sh in %%post |
---|
| 194 | - set PreReq: self-build-setup >= 0.8 |
---|
| 195 | - apply new versioning policy |
---|
| 196 | |
---|
| 197 | * Wed Feb 27 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-0.20080225vl1 |
---|
| 198 | - initial build for Vine Linux 4.2 |
---|
| 199 | |
---|
| 200 | ### end of file |
---|