1 | %define pkgname avidemux |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | %define version 2.5.2 |
---|
4 | %define release 5%{?_dist_release} |
---|
5 | |
---|
6 | %define source0path %{pkgname}/%{pkgname}_%{version}.tar.gz |
---|
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 | |
---|
14 | Obsoletes: %{pkgname}-qt < 2.5.0 |
---|
15 | |
---|
16 | Source0: %{pkgname}-vl.spec |
---|
17 | Source1: %{pkgname}-gtk.desktop |
---|
18 | Source2: %{pkgname}-qt.desktop |
---|
19 | |
---|
20 | Source100: 2.5.0-coreImage-parallel-build.patch |
---|
21 | Source101: avidemux-2.5-pulseaudio-default.patch |
---|
22 | Source102: avidemux-2.4-qt4.patch |
---|
23 | Source103: avidemux-2.5-i18n.patch |
---|
24 | Source104: avidemux-2.5-libmpeg2enc-altivec.patch |
---|
25 | Source105: avidemux-2.5-checkfunction-includes.patch |
---|
26 | Source106: avidemux-2.5.1-tmplinktarget.patch |
---|
27 | Source107: avidemux-2.5.4-x264-X264_WEIGHTP_BLIND-fix.patch |
---|
28 | |
---|
29 | Source110: avidemux-2.4.3-alsa-device-default.patch |
---|
30 | Source111: avidemux-2.5.2-no-qt4-ui.patch |
---|
31 | |
---|
32 | License: GPLv2+ |
---|
33 | Group: Restricted Software |
---|
34 | |
---|
35 | Requires(post): self-build-setup >= 0.9.9 |
---|
36 | |
---|
37 | Requires(post): cmake |
---|
38 | Requires(post): gettext |
---|
39 | Requires(post): nasm >= 0.98.38 |
---|
40 | Requires(post): libxml2-devel >= 2.6.8 |
---|
41 | Requires(post): fontconfig-devel |
---|
42 | Requires(post): freetype2-devel |
---|
43 | Requires(post): js-devel |
---|
44 | Requires(post): libXv-devel |
---|
45 | Requires(post): libXmu-devel |
---|
46 | Requires(post): libsamplerate-devel |
---|
47 | Requires(post): jack-audio-connection-kit-devel |
---|
48 | Requires(post): alsa-lib-devel >= 1.0.3 |
---|
49 | Requires(post): SDL-devel >= 1.2.7 |
---|
50 | Requires(post): libogg-devel >= 1.1 |
---|
51 | Requires(post): libvorbis-devel >= 1.0.1 |
---|
52 | Requires(post): self-build-faad2 >= 2.0 |
---|
53 | Requires(post): self-build-libmad >= 0.15.1 |
---|
54 | Requires(post): self-build-a52dec >= 0.7.4 |
---|
55 | Requires(post): self-build-faac >= 1.24 |
---|
56 | Requires(post): self-build-lame >= 3.96.1 |
---|
57 | Requires(post): self-build-libdca |
---|
58 | Requires(post): self-build-xvidcore >= 1.0.2 |
---|
59 | Requires(post): self-build-x264 >= 0.0.0-9.20090522 |
---|
60 | Requires(post): self-build-ffmpeg |
---|
61 | Requires(post): desktop-file-utils |
---|
62 | Requires(post): gtk2-devel >= 2.8.0 |
---|
63 | Requires(post): cairo-devel |
---|
64 | |
---|
65 | %if %{?with_qt_ui:1} %{!?with_qt_ui:0} |
---|
66 | Requires(post): qt4-devel |
---|
67 | Requires(post): qt4-designer |
---|
68 | %endif |
---|
69 | |
---|
70 | |
---|
71 | BuildArch: noarch |
---|
72 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
73 | |
---|
74 | Packager: munepi |
---|
75 | |
---|
76 | %description |
---|
77 | Avidemux is a free video editor designed for simple cutting, filtering and |
---|
78 | encoding tasks. It supports many file types, including AVI, DVD compatible |
---|
79 | MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated |
---|
80 | using projects, job queue and powerful scripting capabilities. |
---|
81 | |
---|
82 | [Note] |
---|
83 | This package requires many other packages to compile |
---|
84 | targetsoftware. So it consume more disk space than usual. |
---|
85 | Also installation takes logner time because of compilation. |
---|
86 | (This will take a few minutes to quarter or half of an hour, |
---|
87 | depends on building environment) |
---|
88 | |
---|
89 | [About self-build package] |
---|
90 | For some kind of software, distributing of binary package |
---|
91 | may viorate the patent or law. Therefore we chose self-build |
---|
92 | packge, create binary package on your machine, for such kind |
---|
93 | of softwares instead of distributing binary package. |
---|
94 | |
---|
95 | Please obey the national law when you use the created binary |
---|
96 | packages. And if you want to use the softwares using patented |
---|
97 | thechnology, it may be required to get a permission, make an |
---|
98 | agreement or purchas a license. Please consider it with your |
---|
99 | purpose or way of use and take appropriate action. |
---|
100 | |
---|
101 | %description -l ja |
---|
102 | Avidemux は簡単なカット,フィルターリング,エンコード作業のために |
---|
103 | デザインされたフリーな動画エディターです. |
---|
104 | 種々のコーデックを使い,AVI, DVD 互換 MPEG, MP4, ASF を含む |
---|
105 | たくさんのファイル形式に対応しています. |
---|
106 | タスクは,プロジェクトやジョブキュー,強力なスクリプト処理により |
---|
107 | 自動的に行われます. |
---|
108 | |
---|
109 | このパッケージをインストールすると、自動的にソースコードを |
---|
110 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
111 | の rpm パッケージを作成します。 |
---|
112 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
113 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
114 | 行います。 |
---|
115 | |
---|
116 | [注意] |
---|
117 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
118 | ディスクの領域を多く消費します。 |
---|
119 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
120 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
121 | |
---|
122 | [self-build パッケージについて] |
---|
123 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
124 | 違反する可能性があるものがあります。その為、このような問題が |
---|
125 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
126 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
127 | ジという方法を採っています。 |
---|
128 | |
---|
129 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
130 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
131 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
132 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
133 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
134 | |
---|
135 | %prep |
---|
136 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
137 | |
---|
138 | |
---|
139 | %install |
---|
140 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
141 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
142 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
143 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
144 | %{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
145 | %{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
146 | %{__install} -m 644 %{SOURCE101} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
147 | %{__install} -m 644 %{SOURCE102} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
148 | %{__install} -m 644 %{SOURCE103} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
149 | %{__install} -m 644 %{SOURCE104} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
150 | %{__install} -m 644 %{SOURCE105} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
151 | %{__install} -m 644 %{SOURCE106} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
152 | %{__install} -m 644 %{SOURCE107} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
153 | %{__install} -m 644 %{SOURCE110} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
154 | %{__install} -m 644 %{SOURCE111} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
155 | |
---|
156 | |
---|
157 | %clean |
---|
158 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
159 | |
---|
160 | %posttrans |
---|
161 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec \ |
---|
162 | http://download{,2}.berlios.de/%{source0path} 3126000 |
---|
163 | |
---|
164 | %files |
---|
165 | %defattr(-,root,root) |
---|
166 | %{_datadir}/%{name} |
---|
167 | |
---|
168 | %changelog |
---|
169 | * Wed Jul 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-5 |
---|
170 | - dropped Requires(post): esound-devel |
---|
171 | |
---|
172 | * Sun May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.2-4 |
---|
173 | - add %%{SOURCE107} |
---|
174 | |
---|
175 | * Sat Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-3 |
---|
176 | - change release to sync with avidemux-vl.spec |
---|
177 | |
---|
178 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2 |
---|
179 | - renamed %%{Source0} to avidemux-vl.spec |
---|
180 | |
---|
181 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1 |
---|
182 | - new upstream release |
---|
183 | - update patches accordingly |
---|
184 | - added Obsoletes: %{pkgname}-qt < 2.5.0 |
---|
185 | - applied a progress bar to show approximately building time |
---|
186 | |
---|
187 | * Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.4.4-2 |
---|
188 | - applied avidemux-2.4.4-cmake.patch |
---|
189 | - check version between original spec and self-build spec in %%prep |
---|
190 | |
---|
191 | * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.4-1 |
---|
192 | - new upstream release |
---|
193 | - update patches accordingly |
---|
194 | - build with x264 >= 0.0.0-9.20090522 |
---|
195 | - dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch |
---|
196 | - added BuildArch: noarch |
---|
197 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
198 | - moved %%post actions to %%posttrans |
---|
199 | |
---|
200 | * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7 |
---|
201 | - corrected release number in avidemux.spec |
---|
202 | - dropped ExclusiveArch: |
---|
203 | |
---|
204 | * Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.3-6 |
---|
205 | - add ppc to ExclusiveArch |
---|
206 | |
---|
207 | * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5 |
---|
208 | - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel |
---|
209 | - changed to PreReq: self-build-libmad >= 0.15.1 from libmad-devel |
---|
210 | |
---|
211 | * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4 |
---|
212 | - fixed %%files section |
---|
213 | |
---|
214 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3 |
---|
215 | - added avidemux-x264.patch from Gentoo |
---|
216 | |
---|
217 | * Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2 |
---|
218 | - applied avidemux-2.4.3-alsa-device-default.patch |
---|
219 | |
---|
220 | * Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1 |
---|
221 | - initial build based on RPM Fusion of Fedora package |
---|
222 | - changed to BuildRequires: gettext from gettext-devel |
---|
223 | - added BuildRequires: qt4-designer for gtk subpackage |
---|
224 | - dropped avidemux-2.4.3-qt4.patch |
---|
225 | |
---|
226 | ### end of file |
---|