source: projects/specs/branches/6/nonfree/self-build-vlc/self-build-vlc-vl.spec @ 5086

Revision 5086, 14.0 KB checked in by munepi, 13 years ago (diff)

libdvdnav, libmp4v2: changed to plus category; updated libdvdnav, libdvdread: new upstream release

Line 
1%define pkgname vlc
2%define name    self-build-%{pkgname}
3%define version 1.1.12
4%define release 2%{?_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* Wed Nov  2 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.12-2
280- s/self-build-libmp4v2/libmp4v2/
281- s/self-build-libdvdnav/libdvdnav/
282
283* Sat Oct 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.12-1
284- new upstream release
285
286* Mon Sep 12 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.11-2
287- dropped Requires(post): svga-devel
288- added BuildArch: noarch
289
290* Thu Jul 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.11-1
291- new upstream release
292
293* Fri Jun 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.10-1
294- new upstream release
295- backport from 1.1-bugfix from RPM Fusion development
296
297* Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-2
298- added Requires(post): unzip
299
300* Sun Apr 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-1
301- new upstream release
302- applied vlc_patch_0.02/vlc118.diff in up0617.zip on 2sen.dip.jp/dtv
303
304* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.8-1
305- new upstream release
306- added Requires(post):
307  - libcddb-devel
308  - libdc1394-devel >= 2.1.0
309  - libmodplug-devel
310  - libproxy-devel
311  - librtmp-devel
312  - libssh2-devel
313  - libudev-devel >= 142
314  - pcre-devel
315  - vcdimager-devel >= 0.7.21
316  - xcb-util-devel
317
318* Sat Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.7-1
319- new upstream release
320- dropped upstreamed patches
321- applied a reverted patch to pulse.c for vl5
322
323* Fri Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-2
324- backport lirc and signal fixes
325
326* Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-1
327- new upstream release
328- dropped temporarily BuildRequires: lirc
329- added BuildRequires: libass-devel as the tag Requires(post)
330
331* Sun Nov 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.5-1
332- new upstream release
333
334* Mon Aug 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-1
335- new upstream release
336
337* Sat Aug 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.2-1
338- new upstream release
339
340* Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-2
341- for only vl6, supported libva
342- set Obsoletes: vlc < 1.1.0 vlc-devel < 1.1.0
343
344* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-1
345- new upstream release
346- added Requires(post): libva-devel
347
348* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-3
349- renamed %%{Source0} to vlc-vl.spec
350
351* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-2
352- added Requires(post): libsmbclient-devel
353
354* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-1
355- new upstream release
356
357* Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2
358- built with libdvbpsi-devel
359- dropped 0002-Default-aout-for-pulse.patch
360
361* Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1
362- new upstream release
363- updated 0002-Default-aout-for-pulse.patch
364
365* Tue Nov 10 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2
366- added Requires(post): libmtp-devel
367
368* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1
369- new upstream release
370
371* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-2
372- rebuilt to add signature
373
374* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-1
375- new upstream release
376  - applied vlc-1.0.2-compiler.patch from RPM Fusion
377- added Requires(post): lua-devel
378
379* Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1
380- new upstream release
381
382* Sat Jul 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-2
383- added Obsoletes: vlc < 1.0.0, vlc-devel < 1.0.0
384
385* Wed Jul 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-1
386- new upstream release
387- clean-up some old patches and merged some patches from RPM Fusion package
388- added vlc-trunk-default_font-vine.patch
389- added vlc-handlers.schemas
390  - Gonf2 url-handler support
391- added shine.c, enc_base.h
392  - missing sources
393- check version between original spec and self-build spec in %%prep
394
395* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.9a-3
396- dropped BuildArch: noarch (with svglib-devel for %%{ix86} x86_64)
397
398* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-2
399- rebuild with x264 >= 0.0.0-9.20090522
400- avoided to execute self-build-rpm.sh on RPM transaction
401  - moved %%post actions to %%posttrans
402
403* Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-1
404- new upstream release
405- added BuildArch: noarch
406- s/TrueType-DejaVu/TrueType-dejavu/
407
408* Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.8a-7
409- corrected release number in vlc.spec
410- dropped ExclusiveArch
411
412* Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8a-6
413- add ppc to ExclusiveArch
414
415* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-5
416- changed to PreReq:  self-build-faad2 from faad2-devel
417- changed to PreReq:  self-build-libmad from libmad-devel
418
419* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-4
420- initial build
421
422### end of file
Note: See TracBrowser for help on using the repository browser.