source: projects/specs/trunk/nonfree/self-build-chromium-ffmpeg/self-build-chromium-ffmpeg-vl.spec @ 6214

Revision 6214, 4.4 KB checked in by munepi, 12 years ago (diff)

updated to 19.0.1084.50

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