[12250] | 1 | %global pkgname x265 |
---|
| 2 | %global name self-build-%{pkgname} |
---|
| 3 | %global version 3.2 |
---|
| 4 | %global release 1%{?_dist_release} |
---|
[620] | 5 | |
---|
[12250] | 6 | %global sourceurl0 http://ftp.videolan.org/pub/videolan/x265/x265_%{version}.tar.gz |
---|
[9215] | 7 | |
---|
[12250] | 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 |
---|
[620] | 14 | |
---|
[9367] | 15 | #Source100: x265-pc-path.patch |
---|
[9663] | 16 | Source101: x265-test-shared.patch |
---|
| 17 | Source104: x265-detect_cpu_armhfp.patch |
---|
[9215] | 18 | |
---|
[12250] | 19 | License: GPLv2+ and BSD |
---|
| 20 | Group: Restricted Software |
---|
[620] | 21 | |
---|
[12250] | 22 | Obsoletes: x265 < %{version}, x265-devel < %{version} |
---|
| 23 | Obsoletes: self-build-x265 < %{version}-%{release} |
---|
[9215] | 24 | |
---|
[12250] | 25 | Requires(post): self-build-setup >= 0.9.9 |
---|
[620] | 26 | |
---|
[9215] | 27 | # (build)requies of target package. |
---|
| 28 | Requires(post): cmake |
---|
| 29 | Requires(post): yasm |
---|
[620] | 30 | |
---|
[12250] | 31 | BuildArch: noarch |
---|
| 32 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[620] | 33 | |
---|
[12250] | 34 | Packager: munepi |
---|
[620] | 35 | |
---|
| 36 | %description |
---|
[9215] | 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. |
---|
[620] | 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 |
---|
[9215] | 67 | x265はH.265/HEVCをエンコードするためのライブラリです。 |
---|
[620] | 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} |
---|
[9663] | 103 | %{__install} -m 644 %{SOURCE101} %{SOURCE104} \ |
---|
[12250] | 104 | ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[620] | 105 | |
---|
| 106 | %clean |
---|
| 107 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 108 | |
---|
| 109 | %posttrans |
---|
[12250] | 110 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 77000 |
---|
[620] | 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 |
---|
[12250] | 119 | * Wed Oct 09 2019 Toshiaki Ara <ara_t@384.jp> 3.2-1 |
---|
| 120 | - new upstream release (ABI 179) |
---|
| 121 | |
---|
[9973] | 122 | * Sat Jan 23 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.8-1 |
---|
| 123 | - new upstream release (ABI 68) |
---|
| 124 | |
---|
[9663] | 125 | * Sat Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-1 |
---|
| 126 | - new upstream release (ABI 59) |
---|
| 127 | |
---|
| 128 | * Sat Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.6-1 |
---|
| 129 | - new upstream release (ABI 51) |
---|
| 130 | - release tarballs are now hosted on videolan.org |
---|
| 131 | |
---|
[9368] | 132 | * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2 |
---|
| 133 | - rebuild |
---|
| 134 | |
---|
[9367] | 135 | * Sat Feb 21 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-1 |
---|
| 136 | - new upstream release |
---|
| 137 | - drop x265-pc-path.patch |
---|
| 138 | - add x265-1.5-test-shared.patch |
---|
[9335] | 139 | |
---|
[9368] | 140 | * Sat Feb 7 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4-2 |
---|
| 141 | - added Group tag to Source0 |
---|
| 142 | |
---|
[9215] | 143 | * Fri Jan 2 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.4-1 |
---|
| 144 | - new upstream release |
---|
| 145 | - initial build based on RPM Fusion rawhide |
---|