1 | %global pkgname x265 |
---|
2 | %global name self-build-%{pkgname} |
---|
3 | %global version 1.8 |
---|
4 | %global release 1%{?_dist_release} |
---|
5 | |
---|
6 | %global sourceurl0 http://ftp.videolan.org/pub/videolan/x265/x265_%{version}.tar.gz |
---|
7 | |
---|
8 | Summary: Package to automatically build %{pkgname} rpm package |
---|
9 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
10 | Name: %{name} |
---|
11 | Version: %{version} |
---|
12 | Release: %{release} |
---|
13 | Source0: %{pkgname}-vl.spec |
---|
14 | |
---|
15 | #Source100: x265-pc-path.patch |
---|
16 | Source101: x265-test-shared.patch |
---|
17 | Source104: x265-detect_cpu_armhfp.patch |
---|
18 | |
---|
19 | License: GPLv2+ and BSD |
---|
20 | Group: Restricted Software |
---|
21 | |
---|
22 | Obsoletes: x265 < %{version}, x265-devel < %{version} |
---|
23 | Obsoletes: self-build-x265 < %{version}-%{release} |
---|
24 | |
---|
25 | Requires(post): self-build-setup >= 0.9.9 |
---|
26 | |
---|
27 | # (build)requies of target package. |
---|
28 | Requires(post): cmake |
---|
29 | Requires(post): yasm |
---|
30 | |
---|
31 | BuildArch: noarch |
---|
32 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
33 | |
---|
34 | Packager: munepi |
---|
35 | |
---|
36 | %description |
---|
37 | The primary objective of x265 is to become the best H.265/HEVC encoder |
---|
38 | available anywhere, offering the highest compression efficiency and the |
---|
39 | highest performance on a wide variety of hardware platforms. |
---|
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 | x265はH.265/HEVCをエンコードするためのライブラリです。 |
---|
68 | |
---|
69 | このパッケージをインストールすると、自動的にソースコードを |
---|
70 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
71 | パッケージを作成します。 |
---|
72 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
73 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
74 | 行います。 |
---|
75 | |
---|
76 | [注意] |
---|
77 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
78 | ディスクの領域を多く消費します。 |
---|
79 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
80 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
81 | |
---|
82 | [self-build パッケージについて] |
---|
83 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
84 | 違反する可能性があるものがあります。その為、このような問題が |
---|
85 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
86 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
87 | ジという方法を採っています。 |
---|
88 | |
---|
89 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
90 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
91 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
92 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
93 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
94 | |
---|
95 | %prep |
---|
96 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
97 | |
---|
98 | |
---|
99 | %install |
---|
100 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
101 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
102 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
103 | %{__install} -m 644 %{SOURCE101} %{SOURCE104} \ |
---|
104 | ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
105 | |
---|
106 | %clean |
---|
107 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
108 | |
---|
109 | %posttrans |
---|
110 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 168000 |
---|
111 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
112 | %{pkgname}-devel-%{version}-%{release} |
---|
113 | |
---|
114 | %files |
---|
115 | %defattr(-,root,root) |
---|
116 | %{_datadir}/%{name} |
---|
117 | |
---|
118 | %changelog |
---|
119 | * Sat Jan 23 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.8-1 |
---|
120 | - new upstream release (ABI 68) |
---|
121 | |
---|
122 | * Sat Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-1 |
---|
123 | - new upstream release (ABI 59) |
---|
124 | |
---|
125 | * Sat Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.6-1 |
---|
126 | - new upstream release (ABI 51) |
---|
127 | - release tarballs are now hosted on videolan.org |
---|
128 | |
---|
129 | * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2 |
---|
130 | - rebuild |
---|
131 | |
---|
132 | * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-1 |
---|
133 | - new upstream release |
---|
134 | - drop x265-pc-path.patch |
---|
135 | - add x265-1.5-test-shared.patch |
---|
136 | |
---|
137 | * Sat Feb 7 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4-2 |
---|
138 | - added Group tag to Source0 |
---|
139 | |
---|
140 | * Fri Jan 2 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.4-1 |
---|
141 | - new upstream release |
---|
142 | - initial build based on RPM Fusion rawhide |
---|