1 | #% global posttag svn18423 |
---|
2 | %define pkgname ffmpeg2theora |
---|
3 | %define name self-build-%{pkgname} |
---|
4 | %define version 0.29 |
---|
5 | %define release 2%{?posttag:.%{posttag}}%{?_dist_release} |
---|
6 | |
---|
7 | %define sourceurl http://www.v2v.cc/~j/ffmpeg2theora/downloads/%{pkgname}-%{version}.tar.bz2 |
---|
8 | |
---|
9 | Summary: Package to automatically build %{pkgname} rpm package |
---|
10 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
11 | Name: %{name} |
---|
12 | Version: %{version} |
---|
13 | Release: %{release} |
---|
14 | Source0: %{pkgname}-vl.spec |
---|
15 | Source10: ffmpeg2theora-snapshot.sh |
---|
16 | #Source100: ffmpeg2theora-0.28+%{posttag}.patch |
---|
17 | License: GPLv2+ |
---|
18 | Group: Restricted Software |
---|
19 | |
---|
20 | Requires(post): self-build-setup >= 0.9.9 |
---|
21 | |
---|
22 | # (build)requies of target package. |
---|
23 | Requires(post): scons |
---|
24 | Requires(post): libogg-devel >= 1.1 |
---|
25 | Requires(post): libtheora-devel >= 1.1.0 |
---|
26 | Requires(post): libvorbis-devel |
---|
27 | Requires(post): self-build-ffmpeg >= 1.2 |
---|
28 | |
---|
29 | BuildArch: noarch |
---|
30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
31 | |
---|
32 | Packager: munepi |
---|
33 | |
---|
34 | %description |
---|
35 | ffmpeg2theora is a tool to convert any file that ffmpeg can |
---|
36 | decode to theora. |
---|
37 | |
---|
38 | If you install this package, it automaticaly downloads source |
---|
39 | code ,compile it, and create rpm packages of %{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 | ffmpeg2theora は ffmpeg がデコードできるファイルを theora 形式 |
---|
66 | に変換するツールです。 |
---|
67 | |
---|
68 | このパッケージをインストールすると、自動的にソースコードを |
---|
69 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
70 | パッケージを作成します。 |
---|
71 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
72 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
73 | 行います。 |
---|
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 | |
---|
96 | %prep |
---|
97 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
98 | |
---|
99 | |
---|
100 | %install |
---|
101 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
102 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
103 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
104 | #%{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
105 | |
---|
106 | |
---|
107 | %clean |
---|
108 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
109 | |
---|
110 | %posttrans |
---|
111 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 11000 |
---|
112 | #/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} |
---|
113 | |
---|
114 | %files |
---|
115 | %defattr(-,root,root) |
---|
116 | %{_datadir}/%{name} |
---|
117 | |
---|
118 | %changelog |
---|
119 | * Sun Sep 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.29-2 |
---|
120 | - rebuilt with ffmpeg-1.2.3 |
---|
121 | |
---|
122 | * Mon Feb 4 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.29-1 |
---|
123 | - new upstream release |
---|
124 | |
---|
125 | * Sat Jun 23 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.28-2.svn18423 |
---|
126 | - update to the latest upstream commit |
---|
127 | - for ffmpeg 0.10 compatibility |
---|
128 | |
---|
129 | * Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.28-1 |
---|
130 | - new upstream release |
---|
131 | - License: GPLv2+ |
---|
132 | |
---|
133 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.27-1 |
---|
134 | - new upstream release |
---|
135 | - fixed the location of %%sourceurl |
---|
136 | |
---|
137 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-2 |
---|
138 | - renamed %%{Source0} to ffmpeg2theora-vl.spec |
---|
139 | |
---|
140 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-1 |
---|
141 | - new upstream release |
---|
142 | - with recent ffmpeg |
---|
143 | |
---|
144 | * Sat Jun 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.24-1 |
---|
145 | - new upstream release |
---|
146 | |
---|
147 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-2 |
---|
148 | - added BuildArch: noarch |
---|
149 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
150 | - moved %%post actions to %%posttrans |
---|
151 | |
---|
152 | * Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-1 |
---|
153 | - new upstream release |
---|
154 | - dropped ffmpeg2theora-0.20-new_ffmpeg.patch |
---|
155 | - added PreReq: scons |
---|
156 | |
---|
157 | * Sat May 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.20-2 |
---|
158 | - spec in utf8 |
---|
159 | |
---|
160 | * Sat May 17 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.20-1 |
---|
161 | - initial build for Vine Linux. |
---|