1 | %define pkgname chromium-ffmpeg |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | %define version 20.0.1132.54 |
---|
4 | %define release 1%{?_dist_release} |
---|
5 | |
---|
6 | %define sourceurl0 http://gsdview.appspot.com/chromium-browser-official/chromium-%{version}.tar.bz2 |
---|
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 | Source100: chromium-ffmpeg-20.0.1132.54-drop-dependencies-base-gyp.patch |
---|
15 | |
---|
16 | License: BSD |
---|
17 | Group: Restricted Software |
---|
18 | |
---|
19 | Obsoletes: %{pkgname} < %{version} |
---|
20 | Obsoletes: self-build-%{pkgname} < %{version}-%{release} |
---|
21 | |
---|
22 | Requires(post): self-build-setup >= 0.9.9 |
---|
23 | |
---|
24 | # (build)requies of target package. |
---|
25 | Requires: chromium >= %{version} |
---|
26 | #Requires(post): libgnome-keyring-devel |
---|
27 | Requires(post): zlib-devel |
---|
28 | |
---|
29 | BuildArch: noarch |
---|
30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
31 | |
---|
32 | Packager: munepi |
---|
33 | |
---|
34 | %description |
---|
35 | FFMPEG library built from the chromium sources. |
---|
36 | |
---|
37 | If you install this package, it automaticaly downloads source |
---|
38 | code, compile it, and create rpm packages of |
---|
39 | %{pkgname}-%{version}. |
---|
40 | And the created rpm packages are automatically installed |
---|
41 | if installation is executed by apt-get command or synaptic |
---|
42 | package manager. |
---|
43 | |
---|
44 | |
---|
45 | [Note] |
---|
46 | This package requires many other packages to compile |
---|
47 | targetsoftware. So it consume more disk space than usual. |
---|
48 | Also installation takes logner time because of compilation. |
---|
49 | (This will take a few minutes to quarter or half of an hour, |
---|
50 | depends on building environment) |
---|
51 | |
---|
52 | [About self-build package] |
---|
53 | For some kind of software, distributing of binary package |
---|
54 | may viorate the patent or law. Therefore we chose self-build |
---|
55 | packge, create binary package on your machine, for such kind |
---|
56 | of softwares instead of distributing binary package. |
---|
57 | |
---|
58 | Please obey the national law when you use the created binary |
---|
59 | packages. And if you want to use the softwares using patented |
---|
60 | thechnology, it may be required to get a permission, make an |
---|
61 | agreement or purchas a license. Please consider it with your |
---|
62 | purpose or way of use and take appropriate action. |
---|
63 | |
---|
64 | %description -l ja |
---|
65 | chromium のソースから FFMPEG ライブラリをビルドします。 |
---|
66 | |
---|
67 | このパッケージをインストールすると、自動的にソースコードをダ |
---|
68 | ウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
69 | の rpm パッケージを作成します。 |
---|
70 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
71 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
72 | 行います。 |
---|
73 | |
---|
74 | |
---|
75 | [注意] |
---|
76 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
77 | ディスクの領域を多く消費します。 |
---|
78 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
79 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
80 | |
---|
81 | [self-build パッケージについて] |
---|
82 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
83 | 違反する可能性があるものがあります。その為、このような問題が |
---|
84 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
85 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
86 | ジという方法を採っています。 |
---|
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 | %install |
---|
99 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
100 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
101 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
102 | %{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
103 | |
---|
104 | |
---|
105 | %clean |
---|
106 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
107 | |
---|
108 | %posttrans |
---|
109 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 412000 |
---|
110 | |
---|
111 | %files |
---|
112 | %defattr(-,root,root) |
---|
113 | %{_datadir}/%{name}/* |
---|
114 | |
---|
115 | %changelog |
---|
116 | * Thu Jun 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 20.0.1132.54-1 |
---|
117 | - updated to 20.0.1132.54 |
---|
118 | |
---|
119 | # * Sun Jun 17 2012 Munehiro Yamamoto <munepi@vinelinux.org> 19.0.1084.50-2 |
---|
120 | # - added Requires(post): libgnome-keyring-devel |
---|
121 | |
---|
122 | * Tue May 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 19.0.1084.50-1 |
---|
123 | - updated to 19.0.1084.50 |
---|
124 | - applied chromium-ffmpeg-19.0.1084.50-drop-dependencies-base-gyp.patch |
---|
125 | |
---|
126 | * Sun Feb 12 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.54-1 |
---|
127 | - initial build |
---|