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

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

updated self-build-vlc

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