source: projects/specs/trunk/nonfree/self-build-vlc/self-build-vlc-vl.spec @ 5297

Revision 5297, 14.1 KB checked in by munepi, 12 years ago (diff)

updated self-build-* packages: new x264 ABI and ffmpeg 0.9

Line 
1%define pkgname vlc
2%define name    self-build-%{pkgname}
3%define version 1.1.12
4%define release 3%{?_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
15Summary:        Package to automatically build %{pkgname} rpm package
16Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
17Name:           %{name}
18Version:        %{version}
19Release:        %{release}
20
21Obsoletes:      vlc < 1.1.0
22Obsoletes:      vlc-devel < 1.1.0
23
24Source0:        %{pkgname}-vl.spec
25
26Source100:      vlc-1.1.0-vlc-cache-gen_noerror.patch
27Source103:      vlc-1.1.6-hardode_font_patch.patch
28Source104:      vlc-1.1.4-tls_path.patch
29#Source105:         vlc-1.1.8-bugfix.opencv22.patch
30Source106:              0001-Fix-typo-in-vlc.desktop.patch
31#Source107:             0001-kate-do-not-access-the-renderer-if-it-fails-to-initi.patch
32
33## vine
34Source150:      vlc-1.1.7-revert-pulse-c.patch
35
36License:        GPLv2+
37Group:          Restricted Software
38
39Requires(post):         self-build-setup >= 0.9.9
40
41Requires(post): unzip
42Requires(post): desktop-file-utils
43Requires(post): gettext
44Requires(post): gettext-devel
45Requires(post): libtool
46Requires(post): aalib-devel
47Requires(post): alsa-lib-devel
48Requires(post): avahi-devel
49Requires(post):  cdparanoia-devel
50Requires(post):  dbus-devel
51%{?_with_dirac: Requires(post): dirac-devel >= 1.0.0}
52#Requires(post):  directfb-devel
53Requires(post):  libdirectfb-devel
54Requires(post): flac-devel
55##!! Requires(post):  fluidsynth-devel
56Requires(post): fribidi-devel
57Requires(post):  gnome-vfs2-devel
58Requires(post): gnutls-devel >= 1.0.17
59Requires(post): gsm-devel
60Requires(post): hal-devel
61Requires(post): jack-audio-connection-kit-devel
62Requires(post):  libavc1394-devel
63Requires(post): libass-devel >= 0.9.7
64##!! Requires(post):    libcaca-devel
65Requires(post): libcddb-devel
66Requires(post): libcdio-devel >= 0.77-3
67Requires(post): libdc1394-devel >= 2.1.0
68Requires(post): libdv-devel
69Requires(post): libdvdnav-devel
70Requires(post): libdvdread-devel
71Requires(post):  libebml-devel
72Requires(post): libid3tag-devel
73%{?_with_kate:  Requires(post): libkate-devel}
74Requires(post): libmatroska-devel >= 0.7.6
75Requires(post): libmodplug-devel
76Requires(post): libmp4v2-devel
77Requires(post): libmpcdec-devel
78Requires(post): libmtp-devel
79Requires(post):  libnotify-devel
80##!! Requires(post):    libprojectM-qt-devel
81Requires(post):  libproxy-devel
82Requires(post): librsvg2-devel >= 2.9.0
83Requires(post):  librtmp-devel
84%if %{?_dist_release} != "vl5"
85Requires(post): libssh2-devel
86%endif
87##!! Requires(post):    libsysfs-devel
88Requires(post):  libshout-devel
89Requires(post):  libsmbclient-devel
90##!! Requires(post):    libtar-devel
91Requires(post): libtheora-devel
92##!! Requires(post):    libtiger-devel
93Requires(post):  libtiff-devel
94%if %{?_dist_release} != "vl5"
95Requires(post): libudev-devel >= 142
96%endif
97Requires(post):  libupnp-devel
98Requires(post): libv4l-devel
99%if %{?_dist_release} == "vl6"
100Requires(post): libva-devel
101%endif
102Requires(post): libvorbis-devel
103Requires(post):  libxml2-devel
104#Requires(post):        lirc-devel
105%{?_with_lirc:Requires(post):   lirc}
106#Requires(post):        live555-devel >= 0-0.19.2008.04.03
107Requires(post):  kernel-headers >= 2.6.20
108# Requires(post):       libGL-devel
109# Requires(post):       libGLU-devel
110Requires(post):  libmusicbrainz-devel
111Requires(post):  lua-devel
112##!! Requires(post):  minizip-devel
113##!! Requires(post):    mpeg2dec-devel >= 0.3.2
114Requires(post): ncurses-devel
115##!! Requires(post):  opencv-devel
116Requires(post): openslp-devel
117Requires(post):  pcre-devel
118Requires(post):  pulseaudio-libs-devel >= 0.9.8
119##!! Requires(post):  portaudio-devel
120Requires(post):  qt4-devel >= 4.5.2
121##!! Requires(post):  schroedinger-devel
122Requires(post): SDL_image-devel
123Requires(post): speex-devel >= 1.1.5
124Requires(post):  taglib-devel
125Requires(post): twolame-devel
126%if %{?_dist_release} != "vl5"
127Requires(post): vcdimager-devel >= 0.7.21
128%endif
129Requires(post): xosd-devel
130Requires(post): zlib-devel
131##!! Requires(post):  zvbi-devel
132
133# X-libs
134Requires(post): libXt-devel
135Requires(post): libXv-devel
136Requires(post):  libXxf86vm-devel
137Requires(post):  libX11-devel
138Requires(post):  libXext-devel
139Requires(post):  libXpm-devel
140Requires(post):  libXvMC-devel
141%if %{?_dist_release} != "vl5"
142Requires(post):  xcb-util-devel
143%endif
144Requires(post):  xorg-x11-proto-devel
145
146%if %with_samba
147Requires(post):  samba-libsmbclient-devel
148%endif
149
150Requires(post):  pulseaudio-libs-devel >= 0.9.8
151
152%if %with_mozilla
153Requires(post):  gecko-devel
154Requires(post):  nspr-devel
155%endif
156
157Requires(post):  libraw1394-devel
158
159Requires: TrueType-dejavu
160
161## vine
162Requires(post): libgcrypt-devel
163Requires(post): wx-gtk2-devel
164Requires:       mesa-libGL
165Requires(post): xorg-x11-devel
166Requires(post): mesa-libGL-devel
167Requires(post): self-build-libmpeg2
168Requires(post): self-build-a52dec
169Requires(post): self-build-faac
170Requires(post): self-build-faad2
171Requires(post): self-build-ffmpeg >= 0.4.9
172Requires(post): self-build-libdca
173Requires(post): self-build-libdvbpsi
174Requires(post): self-build-libmad
175%if %{?_dist_release} != "vl5"
176Requires(post): self-build-x264 >= 0.0.0-15.20110322
177%elseif %{?_dist_release} == "vl5"
178Requires(post): self-build-x264 >= 0.0.0-9.20090522
179%endif
180Requires(post): self-build-xvidcore
181
182BuildArch:      noarch
183BuildRoot:      %{_tmppath}/%{name}-%{version}-root
184
185Packager:       munepi
186
187%description
188VLC (initially VideoLAN Client) is a highly portable multimedia player
189for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX,
190mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols.
191It can also be used as a server to stream in unicast or multicast in
192IPv4 or IPv6 on a high-bandwidth network.
193
194
195[Note]
196This package requires many other packages to compile
197targetsoftware. So it consume more disk space than usual.
198Also installation takes logner time because of compilation.
199(This will take a few minutes to quarter or half of an hour,
200depends on building environment)
201
202[About self-build package]
203For some kind of software, distributing of binary package
204may viorate the patent or law. Therefore we chose self-build
205packge, create binary package on your machine, for such kind
206of softwares instead of distributing binary package.
207
208Please obey the national law when you use the created binary
209packages. And if you want to use the softwares using patented
210thechnology, it may be required to get a permission, make an
211agreement or purchas a license. Please consider it with your
212purpose or way of use and take appropriate action.
213
214%description -l ja
215VLC(初期は VideoLAN Client)は高い可搬性のあるマルチメディアプレーヤーで,
216様々なオーディオおよびビデオフォーマット(MPEG-1, MPEG-2, MPEG-4, DivX,
217mp3, 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* Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.12-3
280- rebuilt with new x264 and ffmpeg
281
282* Wed Nov  2 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.12-2
283- s/self-build-libmp4v2/libmp4v2/
284- s/self-build-libdvdnav/libdvdnav/
285
286* Sat Oct 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.12-1
287- new upstream release
288
289* Mon Sep 12 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.11-2
290- dropped Requires(post): svga-devel
291- added BuildArch: noarch
292
293* Thu Jul 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.11-1
294- new upstream release
295
296* Fri Jun 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.10-1
297- new upstream release
298- backport from 1.1-bugfix from RPM Fusion development
299
300* Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-2
301- added Requires(post): unzip
302
303* Sun Apr 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-1
304- new upstream release
305- applied vlc_patch_0.02/vlc118.diff in up0617.zip on 2sen.dip.jp/dtv
306
307* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.8-1
308- new upstream release
309- added Requires(post):
310  - libcddb-devel
311  - libdc1394-devel >= 2.1.0
312  - libmodplug-devel
313  - libproxy-devel
314  - librtmp-devel
315  - libssh2-devel
316  - libudev-devel >= 142
317  - pcre-devel
318  - vcdimager-devel >= 0.7.21
319  - xcb-util-devel
320
321* Sat Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.7-1
322- new upstream release
323- dropped upstreamed patches
324- applied a reverted patch to pulse.c for vl5
325
326* Fri Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-2
327- backport lirc and signal fixes
328
329* Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-1
330- new upstream release
331- dropped temporarily BuildRequires: lirc
332- added BuildRequires: libass-devel as the tag Requires(post)
333
334* Sun Nov 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.5-1
335- new upstream release
336
337* Mon Aug 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-1
338- new upstream release
339
340* Sat Aug 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.2-1
341- new upstream release
342
343* Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-2
344- for only vl6, supported libva
345- set Obsoletes: vlc < 1.1.0 vlc-devel < 1.1.0
346
347* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-1
348- new upstream release
349- added Requires(post): libva-devel
350
351* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-3
352- renamed %%{Source0} to vlc-vl.spec
353
354* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-2
355- added Requires(post): libsmbclient-devel
356
357* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-1
358- new upstream release
359
360* Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2
361- built with libdvbpsi-devel
362- dropped 0002-Default-aout-for-pulse.patch
363
364* Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1
365- new upstream release
366- updated 0002-Default-aout-for-pulse.patch
367
368* Tue Nov 10 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2
369- added Requires(post): libmtp-devel
370
371* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1
372- new upstream release
373
374* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-2
375- rebuilt to add signature
376
377* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-1
378- new upstream release
379  - applied vlc-1.0.2-compiler.patch from RPM Fusion
380- added Requires(post): lua-devel
381
382* Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1
383- new upstream release
384
385* Sat Jul 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-2
386- added Obsoletes: vlc < 1.0.0, vlc-devel < 1.0.0
387
388* Wed Jul 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-1
389- new upstream release
390- clean-up some old patches and merged some patches from RPM Fusion package
391- added vlc-trunk-default_font-vine.patch
392- added vlc-handlers.schemas
393  - Gonf2 url-handler support
394- added shine.c, enc_base.h
395  - missing sources
396- check version between original spec and self-build spec in %%prep
397
398* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.9a-3
399- dropped BuildArch: noarch (with svglib-devel for %%{ix86} x86_64)
400
401* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-2
402- rebuild with x264 >= 0.0.0-9.20090522
403- avoided to execute self-build-rpm.sh on RPM transaction
404  - moved %%post actions to %%posttrans
405
406* Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-1
407- new upstream release
408- added BuildArch: noarch
409- s/TrueType-DejaVu/TrueType-dejavu/
410
411* Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.8a-7
412- corrected release number in vlc.spec
413- dropped ExclusiveArch
414
415* Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8a-6
416- add ppc to ExclusiveArch
417
418* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-5
419- changed to PreReq:  self-build-faad2 from faad2-devel
420- changed to PreReq:  self-build-libmad from libmad-devel
421
422* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-4
423- initial build
424
425### end of file
Note: See TracBrowser for help on using the repository browser.