[9215] | 1 | %global commit 5e604833c5aa |
---|
[620] | 2 | |
---|
[9215] | 3 | %global pkgname x265 |
---|
| 4 | %global name self-build-%{pkgname} |
---|
| 5 | %global version 1.4 |
---|
[9335] | 6 | %global release 2%{?_dist_release} |
---|
[620] | 7 | |
---|
[9215] | 8 | %global sourceurl0 https://bitbucket.org/multicoreware/x265/get/%{version}.tar.bz2 |
---|
| 9 | |
---|
[620] | 10 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 11 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 12 | Name: %{name} |
---|
| 13 | Version: %{version} |
---|
| 14 | Release: %{release} |
---|
| 15 | Source0: %{pkgname}-vl.spec |
---|
| 16 | |
---|
[9215] | 17 | Source100: x265-pc-path.patch |
---|
| 18 | Source101: x265-test-shared.patch |
---|
| 19 | Source102: x265-pic.patch |
---|
| 20 | |
---|
| 21 | License: GPLv2+ and BSD |
---|
[620] | 22 | Group: Restricted Software |
---|
| 23 | |
---|
[9215] | 24 | Obsoletes: x265 < %{version}, x265-devel < %{version} |
---|
| 25 | Obsoletes: self-build-x265 < %{version}-%{release} |
---|
| 26 | |
---|
[620] | 27 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 28 | |
---|
[9215] | 29 | # (build)requies of target package. |
---|
| 30 | Requires(post): cmake |
---|
| 31 | Requires(post): yasm |
---|
[620] | 32 | |
---|
| 33 | BuildArch: noarch |
---|
| 34 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 35 | |
---|
| 36 | Packager: munepi |
---|
| 37 | |
---|
| 38 | %description |
---|
[9215] | 39 | The primary objective of x265 is to become the best H.265/HEVC encoder |
---|
| 40 | available anywhere, offering the highest compression efficiency and the |
---|
| 41 | highest performance on a wide variety of hardware platforms. |
---|
[620] | 42 | |
---|
| 43 | If you install this package, it automaticaly downloads source |
---|
| 44 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 45 | And the created rpm packages are automatically installed |
---|
| 46 | if installation is executed by apt-get command or synaptic |
---|
| 47 | package manager. |
---|
| 48 | |
---|
| 49 | [Note] |
---|
| 50 | This package requires many other packages to compile |
---|
| 51 | targetsoftware. So it consume more disk space than usual. |
---|
| 52 | Also installation takes logner time because of compilation. |
---|
| 53 | (This will take a few minutes to quarter or half of an hour, |
---|
| 54 | depends on building environment) |
---|
| 55 | |
---|
| 56 | [About self-build package] |
---|
| 57 | For some kind of software, distributing of binary package |
---|
| 58 | may viorate the patent or law. Therefore we chose self-build |
---|
| 59 | packge, create binary package on your machine, for such kind |
---|
| 60 | of softwares instead of distributing binary package. |
---|
| 61 | |
---|
| 62 | Please obey the national law when you use the created binary |
---|
| 63 | packages. And if you want to use the softwares using patented |
---|
| 64 | thechnology, it may be required to get a permission, make an |
---|
| 65 | agreement or purchas a license. Please consider it with your |
---|
| 66 | purpose or way of use and take appropriate action. |
---|
| 67 | |
---|
| 68 | %description -l ja |
---|
[9215] | 69 | x265はH.265/HEVCをエンコードするためのライブラリです。 |
---|
[620] | 70 | |
---|
| 71 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 72 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
| 73 | パッケージを作成します。 |
---|
| 74 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 75 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 76 | 行います。 |
---|
| 77 | |
---|
| 78 | [注意] |
---|
| 79 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 80 | ディスクの領域を多く消費します。 |
---|
| 81 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 82 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 83 | |
---|
| 84 | [self-build パッケージについて] |
---|
| 85 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 86 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 87 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 88 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 89 | ジという方法を採っています。 |
---|
| 90 | |
---|
| 91 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 92 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 93 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 94 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 95 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 96 | |
---|
| 97 | %prep |
---|
| 98 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %install |
---|
| 102 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 103 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 104 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[9215] | 105 | %{__install} -m 644 %{SOURCE100} %{SOURCE101} %{SOURCE102} \ |
---|
| 106 | ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[620] | 107 | |
---|
| 108 | %clean |
---|
| 109 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 110 | |
---|
| 111 | %posttrans |
---|
[9215] | 112 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 24000 |
---|
[620] | 113 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
| 114 | %{pkgname}-devel-%{version}-%{release} |
---|
| 115 | |
---|
| 116 | %files |
---|
| 117 | %defattr(-,root,root) |
---|
| 118 | %{_datadir}/%{name} |
---|
| 119 | |
---|
| 120 | %changelog |
---|
[9335] | 121 | * Sat Feb 7 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4-2 |
---|
| 122 | - added Group tag to Source0 |
---|
| 123 | |
---|
[9215] | 124 | * Fri Jan 2 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.4-1 |
---|
| 125 | - new upstream release |
---|
| 126 | - initial build based on RPM Fusion rawhide |
---|