1 | %define pkgname vlc |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | %define version 1.1.11 |
---|
4 | %define release 1%{?_dist_release} |
---|
5 | |
---|
6 | %define with_mozilla 0 |
---|
7 | %define with_dc1394 0 |
---|
8 | |
---|
9 | %define with_samba 0 |
---|
10 | |
---|
11 | %define sourceurl0 http://download.videolan.org/pub/videolan/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.bz2 |
---|
12 | %define sourceurl10 http://2sen.dip.jp/cgi-bin/dtvup/source/up0617.zip |
---|
13 | |
---|
14 | |
---|
15 | Summary: Package to automatically build %{pkgname} rpm package |
---|
16 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
17 | Name: %{name} |
---|
18 | Version: %{version} |
---|
19 | Release: %{release} |
---|
20 | |
---|
21 | Obsoletes: vlc < 1.1.0 |
---|
22 | Obsoletes: vlc-devel < 1.1.0 |
---|
23 | |
---|
24 | Source0: %{pkgname}-vl.spec |
---|
25 | |
---|
26 | Source100: vlc-1.1.0-vlc-cache-gen_noerror.patch |
---|
27 | Source103: vlc-1.1.6-hardode_font_patch.patch |
---|
28 | Source104: vlc-1.1.4-tls_path.patch |
---|
29 | Source106: vlc-1.1-backport_20110607.patch |
---|
30 | |
---|
31 | ## vine |
---|
32 | Source150: vlc-1.1.7-revert-pulse-c.patch |
---|
33 | |
---|
34 | License: GPLv2+ |
---|
35 | Group: Restricted Software |
---|
36 | |
---|
37 | Requires(post): self-build-setup >= 0.9.9 |
---|
38 | |
---|
39 | Requires(post): unzip |
---|
40 | Requires(post): desktop-file-utils |
---|
41 | Requires(post): gettext |
---|
42 | Requires(post): gettext-devel |
---|
43 | Requires(post): libtool |
---|
44 | Requires(post): aalib-devel |
---|
45 | Requires(post): alsa-lib-devel |
---|
46 | Requires(post): avahi-devel |
---|
47 | Requires(post): cdparanoia-devel |
---|
48 | Requires(post): dbus-devel |
---|
49 | %{?_with_dirac: Requires(post): dirac-devel >= 1.0.0} |
---|
50 | #Requires(post): directfb-devel |
---|
51 | Requires(post): libdirectfb-devel |
---|
52 | Requires(post): flac-devel |
---|
53 | ##!! Requires(post): fluidsynth-devel |
---|
54 | Requires(post): fribidi-devel |
---|
55 | Requires(post): gnome-vfs2-devel |
---|
56 | Requires(post): gnutls-devel >= 1.0.17 |
---|
57 | Requires(post): gsm-devel |
---|
58 | Requires(post): hal-devel |
---|
59 | Requires(post): jack-audio-connection-kit-devel |
---|
60 | Requires(post): libavc1394-devel |
---|
61 | Requires(post): libass-devel >= 0.9.7 |
---|
62 | ##!! Requires(post): libcaca-devel |
---|
63 | Requires(post): libcddb-devel |
---|
64 | Requires(post): libcdio-devel >= 0.77-3 |
---|
65 | Requires(post): libdc1394-devel >= 2.1.0 |
---|
66 | Requires(post): libdv-devel |
---|
67 | Requires(post): libdvdread-devel |
---|
68 | Requires(post): libebml-devel |
---|
69 | Requires(post): libid3tag-devel |
---|
70 | %{?_with_kate: Requires(post): libkate-devel} |
---|
71 | Requires(post): libmatroska-devel >= 0.7.6 |
---|
72 | Requires(post): libmodplug-devel |
---|
73 | Requires(post): libmpcdec-devel |
---|
74 | Requires(post): libmtp-devel |
---|
75 | Requires(post): libnotify-devel |
---|
76 | ##!! Requires(post): libprojectM-qt-devel |
---|
77 | Requires(post): libproxy-devel |
---|
78 | Requires(post): librsvg2-devel >= 2.9.0 |
---|
79 | Requires(post): librtmp-devel |
---|
80 | %if %{?_dist_release} != "vl5" |
---|
81 | Requires(post): libssh2-devel |
---|
82 | %endif |
---|
83 | ##!! Requires(post): libsysfs-devel |
---|
84 | Requires(post): libshout-devel |
---|
85 | Requires(post): libsmbclient-devel |
---|
86 | ##!! Requires(post): libtar-devel |
---|
87 | Requires(post): libtheora-devel |
---|
88 | ##!! Requires(post): libtiger-devel |
---|
89 | Requires(post): libtiff-devel |
---|
90 | %if %{?_dist_release} != "vl5" |
---|
91 | Requires(post): libudev-devel >= 142 |
---|
92 | %endif |
---|
93 | Requires(post): libupnp-devel |
---|
94 | Requires(post): libv4l-devel |
---|
95 | %if %{?_dist_release} == "vl6" |
---|
96 | Requires(post): libva-devel |
---|
97 | %endif |
---|
98 | Requires(post): libvorbis-devel |
---|
99 | Requires(post): libxml2-devel |
---|
100 | #Requires(post): lirc-devel |
---|
101 | %{?_with_lirc:Requires(post): lirc} |
---|
102 | #Requires(post): live555-devel >= 0-0.19.2008.04.03 |
---|
103 | Requires(post): kernel-headers >= 2.6.20 |
---|
104 | # Requires(post): libGL-devel |
---|
105 | # Requires(post): libGLU-devel |
---|
106 | Requires(post): libmusicbrainz-devel |
---|
107 | Requires(post): lua-devel |
---|
108 | ##!! Requires(post): minizip-devel |
---|
109 | ##!! Requires(post): mpeg2dec-devel >= 0.3.2 |
---|
110 | Requires(post): ncurses-devel |
---|
111 | ##!! Requires(post): opencv-devel |
---|
112 | Requires(post): openslp-devel |
---|
113 | Requires(post): pcre-devel |
---|
114 | Requires(post): pulseaudio-libs-devel >= 0.9.8 |
---|
115 | ##!! Requires(post): portaudio-devel |
---|
116 | Requires(post): qt4-devel >= 4.5.2 |
---|
117 | ##!! Requires(post): schroedinger-devel |
---|
118 | Requires(post): SDL_image-devel |
---|
119 | Requires(post): speex-devel >= 1.1.5 |
---|
120 | %ifarch %{ix86} x86_64 |
---|
121 | Requires(post): svgalib-devel |
---|
122 | %endif |
---|
123 | Requires(post): taglib-devel |
---|
124 | Requires(post): twolame-devel |
---|
125 | %if %{?_dist_release} != "vl5" |
---|
126 | Requires(post): vcdimager-devel >= 0.7.21 |
---|
127 | %endif |
---|
128 | Requires(post): xosd-devel |
---|
129 | Requires(post): zlib-devel |
---|
130 | ##!! Requires(post): zvbi-devel |
---|
131 | |
---|
132 | # X-libs |
---|
133 | Requires(post): libXt-devel |
---|
134 | Requires(post): libXv-devel |
---|
135 | Requires(post): libXxf86vm-devel |
---|
136 | Requires(post): libX11-devel |
---|
137 | Requires(post): libXext-devel |
---|
138 | Requires(post): libXpm-devel |
---|
139 | Requires(post): libXvMC-devel |
---|
140 | %if %{?_dist_release} != "vl5" |
---|
141 | Requires(post): xcb-util-devel |
---|
142 | %endif |
---|
143 | Requires(post): xorg-x11-proto-devel |
---|
144 | |
---|
145 | %if %with_samba |
---|
146 | Requires(post): samba-libsmbclient-devel |
---|
147 | %endif |
---|
148 | |
---|
149 | Requires(post): pulseaudio-libs-devel >= 0.9.8 |
---|
150 | |
---|
151 | %if %with_mozilla |
---|
152 | Requires(post): gecko-devel |
---|
153 | Requires(post): nspr-devel |
---|
154 | %endif |
---|
155 | |
---|
156 | Requires(post): libraw1394-devel |
---|
157 | |
---|
158 | Requires: TrueType-dejavu |
---|
159 | |
---|
160 | ## vine |
---|
161 | Requires(post): libgcrypt-devel |
---|
162 | Requires(post): wx-gtk2-devel |
---|
163 | Requires: mesa-libGL |
---|
164 | Requires(post): xorg-x11-devel |
---|
165 | Requires(post): mesa-libGL-devel |
---|
166 | Requires(post): self-build-libmpeg2 |
---|
167 | Requires(post): self-build-a52dec |
---|
168 | Requires(post): self-build-faac |
---|
169 | Requires(post): self-build-faad2 |
---|
170 | Requires(post): self-build-ffmpeg >= 0.4.9 |
---|
171 | Requires(post): self-build-libdca |
---|
172 | Requires(post): self-build-libdvbpsi |
---|
173 | Requires(post): self-build-libdvdnav |
---|
174 | Requires(post): self-build-libmad |
---|
175 | Requires(post): self-build-libmp4v2 |
---|
176 | %if %{?_dist_release} != "vl5" |
---|
177 | Requires(post): self-build-x264 >= 0.0.0-15.20110322 |
---|
178 | %elseif %{?_dist_release} == "vl5" |
---|
179 | Requires(post): self-build-x264 >= 0.0.0-9.20090522 |
---|
180 | %endif |
---|
181 | Requires(post): self-build-xvidcore |
---|
182 | |
---|
183 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
184 | |
---|
185 | Packager: munepi |
---|
186 | |
---|
187 | %description |
---|
188 | VLC (initially VideoLAN Client) is a highly portable multimedia player |
---|
189 | for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, |
---|
190 | mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. |
---|
191 | It can also be used as a server to stream in unicast or multicast in |
---|
192 | IPv4 or IPv6 on a high-bandwidth network. |
---|
193 | |
---|
194 | |
---|
195 | [Note] |
---|
196 | This package requires many other packages to compile |
---|
197 | targetsoftware. So it consume more disk space than usual. |
---|
198 | Also installation takes logner time because of compilation. |
---|
199 | (This will take a few minutes to quarter or half of an hour, |
---|
200 | depends on building environment) |
---|
201 | |
---|
202 | [About self-build package] |
---|
203 | For some kind of software, distributing of binary package |
---|
204 | may viorate the patent or law. Therefore we chose self-build |
---|
205 | packge, create binary package on your machine, for such kind |
---|
206 | of softwares instead of distributing binary package. |
---|
207 | |
---|
208 | Please obey the national law when you use the created binary |
---|
209 | packages. And if you want to use the softwares using patented |
---|
210 | thechnology, it may be required to get a permission, make an |
---|
211 | agreement or purchas a license. Please consider it with your |
---|
212 | purpose or way of use and take appropriate action. |
---|
213 | |
---|
214 | %description -l ja |
---|
215 | VLC(初期は VideoLAN Client)は高い可搬性のあるマルチメディアプレーヤーで, |
---|
216 | 様々なオーディオおよびビデオフォーマット(MPEG-1, MPEG-2, MPEG-4, DivX, |
---|
217 | mp3, ogg など)だけでなく,DVD や VCD,様々なストリーミングプロトコルにも |
---|
218 | 対応しています. |
---|
219 | また,高帯域幅上の IPv4 や IPv6 で, |
---|
220 | ユニキャストやマルチキャストのストリームに, |
---|
221 | サーバーとして使用することもできます. |
---|
222 | |
---|
223 | |
---|
224 | このパッケージをインストールすると、自動的にソースコードを |
---|
225 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
226 | の rpm パッケージを作成します。 |
---|
227 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
228 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
229 | 行います。 |
---|
230 | |
---|
231 | [注意] |
---|
232 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
233 | ディスクの領域を多く消費します。 |
---|
234 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
235 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
236 | |
---|
237 | [self-build パッケージについて] |
---|
238 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
239 | 違反する可能性があるものがあります。その為、このような問題が |
---|
240 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
241 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
242 | ジという方法を採っています。 |
---|
243 | |
---|
244 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
245 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
246 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
247 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
248 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
249 | |
---|
250 | %prep |
---|
251 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
252 | |
---|
253 | %install |
---|
254 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
255 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
256 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
257 | |
---|
258 | %{__install} -m 644 \ |
---|
259 | %{SOURCE100} %{SOURCE103} %{SOURCE104} %{SOURCE106} \ |
---|
260 | %{SOURCE150} \ |
---|
261 | ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
262 | |
---|
263 | |
---|
264 | %clean |
---|
265 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
266 | |
---|
267 | %posttrans |
---|
268 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec \ |
---|
269 | %{sourceurl0} %{sourceurl10} 1216000 |
---|
270 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
271 | %{pkgname}-devel-%{version}-%{release} |
---|
272 | |
---|
273 | %files |
---|
274 | %defattr(-,root,root) |
---|
275 | %{_datadir}/%{name} |
---|
276 | |
---|
277 | |
---|
278 | %changelog |
---|
279 | * Thu Jul 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.11-1 |
---|
280 | - new upstream release |
---|
281 | |
---|
282 | * Fri Jun 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.10-1 |
---|
283 | - new upstream release |
---|
284 | - backport from 1.1-bugfix from RPM Fusion development |
---|
285 | |
---|
286 | * Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-2 |
---|
287 | - added Requires(post): unzip |
---|
288 | |
---|
289 | * Sun Apr 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-1 |
---|
290 | - new upstream release |
---|
291 | - applied vlc_patch_0.02/vlc118.diff in up0617.zip on 2sen.dip.jp/dtv |
---|
292 | |
---|
293 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.8-1 |
---|
294 | - new upstream release |
---|
295 | - added Requires(post): |
---|
296 | - libcddb-devel |
---|
297 | - libdc1394-devel >= 2.1.0 |
---|
298 | - libmodplug-devel |
---|
299 | - libproxy-devel |
---|
300 | - librtmp-devel |
---|
301 | - libssh2-devel |
---|
302 | - libudev-devel >= 142 |
---|
303 | - pcre-devel |
---|
304 | - vcdimager-devel >= 0.7.21 |
---|
305 | - xcb-util-devel |
---|
306 | |
---|
307 | * Sat Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.7-1 |
---|
308 | - new upstream release |
---|
309 | - dropped upstreamed patches |
---|
310 | - applied a reverted patch to pulse.c for vl5 |
---|
311 | |
---|
312 | * Fri Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-2 |
---|
313 | - backport lirc and signal fixes |
---|
314 | |
---|
315 | * Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-1 |
---|
316 | - new upstream release |
---|
317 | - dropped temporarily BuildRequires: lirc |
---|
318 | - added BuildRequires: libass-devel as the tag Requires(post) |
---|
319 | |
---|
320 | * Sun Nov 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.5-1 |
---|
321 | - new upstream release |
---|
322 | |
---|
323 | * Mon Aug 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-1 |
---|
324 | - new upstream release |
---|
325 | |
---|
326 | * Sat Aug 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.2-1 |
---|
327 | - new upstream release |
---|
328 | |
---|
329 | * Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-2 |
---|
330 | - for only vl6, supported libva |
---|
331 | - set Obsoletes: vlc < 1.1.0 vlc-devel < 1.1.0 |
---|
332 | |
---|
333 | * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-1 |
---|
334 | - new upstream release |
---|
335 | - added Requires(post): libva-devel |
---|
336 | |
---|
337 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-3 |
---|
338 | - renamed %%{Source0} to vlc-vl.spec |
---|
339 | |
---|
340 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-2 |
---|
341 | - added Requires(post): libsmbclient-devel |
---|
342 | |
---|
343 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-1 |
---|
344 | - new upstream release |
---|
345 | |
---|
346 | * Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2 |
---|
347 | - built with libdvbpsi-devel |
---|
348 | - dropped 0002-Default-aout-for-pulse.patch |
---|
349 | |
---|
350 | * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1 |
---|
351 | - new upstream release |
---|
352 | - updated 0002-Default-aout-for-pulse.patch |
---|
353 | |
---|
354 | * Tue Nov 10 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2 |
---|
355 | - added Requires(post): libmtp-devel |
---|
356 | |
---|
357 | * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1 |
---|
358 | - new upstream release |
---|
359 | |
---|
360 | * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-2 |
---|
361 | - rebuilt to add signature |
---|
362 | |
---|
363 | * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-1 |
---|
364 | - new upstream release |
---|
365 | - applied vlc-1.0.2-compiler.patch from RPM Fusion |
---|
366 | - added Requires(post): lua-devel |
---|
367 | |
---|
368 | * Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1 |
---|
369 | - new upstream release |
---|
370 | |
---|
371 | * Sat Jul 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-2 |
---|
372 | - added Obsoletes: vlc < 1.0.0, vlc-devel < 1.0.0 |
---|
373 | |
---|
374 | * Wed Jul 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-1 |
---|
375 | - new upstream release |
---|
376 | - clean-up some old patches and merged some patches from RPM Fusion package |
---|
377 | - added vlc-trunk-default_font-vine.patch |
---|
378 | - added vlc-handlers.schemas |
---|
379 | - Gonf2 url-handler support |
---|
380 | - added shine.c, enc_base.h |
---|
381 | - missing sources |
---|
382 | - check version between original spec and self-build spec in %%prep |
---|
383 | |
---|
384 | * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.9a-3 |
---|
385 | - dropped BuildArch: noarch (with svglib-devel for %%{ix86} x86_64) |
---|
386 | |
---|
387 | * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-2 |
---|
388 | - rebuild with x264 >= 0.0.0-9.20090522 |
---|
389 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
390 | - moved %%post actions to %%posttrans |
---|
391 | |
---|
392 | * Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-1 |
---|
393 | - new upstream release |
---|
394 | - added BuildArch: noarch |
---|
395 | - s/TrueType-DejaVu/TrueType-dejavu/ |
---|
396 | |
---|
397 | * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.8a-7 |
---|
398 | - corrected release number in vlc.spec |
---|
399 | - dropped ExclusiveArch |
---|
400 | |
---|
401 | * Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8a-6 |
---|
402 | - add ppc to ExclusiveArch |
---|
403 | |
---|
404 | * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-5 |
---|
405 | - changed to PreReq: self-build-faad2 from faad2-devel |
---|
406 | - changed to PreReq: self-build-libmad from libmad-devel |
---|
407 | |
---|
408 | * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-4 |
---|
409 | - initial build |
---|
410 | |
---|
411 | ### end of file |
---|