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

Revision 4175, 13.5 KB checked in by munepi, 13 years ago (diff)

updated self-build-vlc

Line 
1%define pkgname vlc
2%define name    self-build-%{pkgname}
3%define version 1.1.10
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
29Source106:      vlc-1.1-backport_20110607.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): libdvdread-devel
68Requires(post):  libebml-devel
69Requires(post): libid3tag-devel
70%{?_with_kate:  Requires(post): libkate-devel}
71Requires(post): libmatroska-devel >= 0.7.6
72Requires(post): libmodplug-devel
73Requires(post): libmpcdec-devel
74Requires(post): libmtp-devel
75Requires(post):  libnotify-devel
76##!! Requires(post):    libprojectM-qt-devel
77Requires(post):  libproxy-devel
78Requires(post): librsvg2-devel >= 2.9.0
79Requires(post):  librtmp-devel
80%if %{?_dist_release} != "vl5"
81Requires(post): libssh2-devel
82%endif
83##!! Requires(post):    libsysfs-devel
84Requires(post):  libshout-devel
85Requires(post):  libsmbclient-devel
86##!! Requires(post):    libtar-devel
87Requires(post): libtheora-devel
88##!! Requires(post):    libtiger-devel
89Requires(post):  libtiff-devel
90%if %{?_dist_release} != "vl5"
91Requires(post): libudev-devel >= 142
92%endif
93Requires(post):  libupnp-devel
94Requires(post): libv4l-devel
95%if %{?_dist_release} == "vl6"
96Requires(post): libva-devel
97%endif
98Requires(post): libvorbis-devel
99Requires(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
103Requires(post):  kernel-headers >= 2.6.20
104# Requires(post):       libGL-devel
105# Requires(post):       libGLU-devel
106Requires(post):  libmusicbrainz-devel
107Requires(post):  lua-devel
108##!! Requires(post):  minizip-devel
109##!! Requires(post):    mpeg2dec-devel >= 0.3.2
110Requires(post): ncurses-devel
111##!! Requires(post):  opencv-devel
112Requires(post): openslp-devel
113Requires(post):  pcre-devel
114Requires(post):  pulseaudio-libs-devel >= 0.9.8
115##!! Requires(post):  portaudio-devel
116Requires(post):  qt4-devel >= 4.5.2
117##!! Requires(post):  schroedinger-devel
118Requires(post): SDL_image-devel
119Requires(post): speex-devel >= 1.1.5
120%ifarch %{ix86} x86_64
121Requires(post):  svgalib-devel
122%endif
123Requires(post):  taglib-devel
124Requires(post): twolame-devel
125%if %{?_dist_release} != "vl5"
126Requires(post): vcdimager-devel >= 0.7.21
127%endif
128Requires(post): xosd-devel
129Requires(post): zlib-devel
130##!! Requires(post):  zvbi-devel
131
132# X-libs
133Requires(post): libXt-devel
134Requires(post): libXv-devel
135Requires(post):  libXxf86vm-devel
136Requires(post):  libX11-devel
137Requires(post):  libXext-devel
138Requires(post):  libXpm-devel
139Requires(post):  libXvMC-devel
140%if %{?_dist_release} != "vl5"
141Requires(post):  xcb-util-devel
142%endif
143Requires(post):  xorg-x11-proto-devel
144
145%if %with_samba
146Requires(post):  samba-libsmbclient-devel
147%endif
148
149Requires(post):  pulseaudio-libs-devel >= 0.9.8
150
151%if %with_mozilla
152Requires(post):  gecko-devel
153Requires(post):  nspr-devel
154%endif
155
156Requires(post):  libraw1394-devel
157
158Requires: TrueType-dejavu
159
160## vine
161Requires(post): libgcrypt-devel
162Requires(post): wx-gtk2-devel
163Requires:       mesa-libGL
164Requires(post): xorg-x11-devel
165Requires(post): mesa-libGL-devel
166Requires(post): self-build-libmpeg2
167Requires(post): self-build-a52dec
168Requires(post): self-build-faac
169Requires(post): self-build-faad2
170Requires(post): self-build-ffmpeg >= 0.4.9
171Requires(post): self-build-libdca
172Requires(post): self-build-libdvbpsi
173Requires(post): self-build-libdvdnav
174Requires(post): self-build-libmad
175Requires(post): self-build-libmp4v2
176%if %{?_dist_release} != "vl5"
177Requires(post): self-build-x264 >= 0.0.0-15.20110322
178%elseif %{?_dist_release} == "vl5"
179Requires(post): self-build-x264 >= 0.0.0-9.20090522
180%endif
181Requires(post): self-build-xvidcore
182
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* Fri Jun 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.10-1
280- new upstream release
281- backport from 1.1-bugfix from RPM Fusion development
282
283* Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-2
284- added Requires(post): unzip
285
286* Sun Apr 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-1
287- new upstream release
288- applied vlc_patch_0.02/vlc118.diff in up0617.zip on 2sen.dip.jp/dtv
289
290* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.8-1
291- new upstream release
292- added Requires(post):
293  - libcddb-devel
294  - libdc1394-devel >= 2.1.0
295  - libmodplug-devel
296  - libproxy-devel
297  - librtmp-devel
298  - libssh2-devel
299  - libudev-devel >= 142
300  - pcre-devel
301  - vcdimager-devel >= 0.7.21
302  - xcb-util-devel
303
304* Sat Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.7-1
305- new upstream release
306- dropped upstreamed patches
307- applied a reverted patch to pulse.c for vl5
308
309* Fri Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-2
310- backport lirc and signal fixes
311
312* Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-1
313- new upstream release
314- dropped temporarily BuildRequires: lirc
315- added BuildRequires: libass-devel as the tag Requires(post)
316
317* Sun Nov 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.5-1
318- new upstream release
319
320* Mon Aug 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-1
321- new upstream release
322
323* Sat Aug 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.2-1
324- new upstream release
325
326* Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-2
327- for only vl6, supported libva
328- set Obsoletes: vlc < 1.1.0 vlc-devel < 1.1.0
329
330* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-1
331- new upstream release
332- added Requires(post): libva-devel
333
334* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-3
335- renamed %%{Source0} to vlc-vl.spec
336
337* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-2
338- added Requires(post): libsmbclient-devel
339
340* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-1
341- new upstream release
342
343* Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2
344- built with libdvbpsi-devel
345- dropped 0002-Default-aout-for-pulse.patch
346
347* Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1
348- new upstream release
349- updated 0002-Default-aout-for-pulse.patch
350
351* Tue Nov 10 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2
352- added Requires(post): libmtp-devel
353
354* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1
355- new upstream release
356
357* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-2
358- rebuilt to add signature
359
360* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-1
361- new upstream release
362  - applied vlc-1.0.2-compiler.patch from RPM Fusion
363- added Requires(post): lua-devel
364
365* Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1
366- new upstream release
367
368* Sat Jul 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-2
369- added Obsoletes: vlc < 1.0.0, vlc-devel < 1.0.0
370
371* Wed Jul 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-1
372- new upstream release
373- clean-up some old patches and merged some patches from RPM Fusion package
374- added vlc-trunk-default_font-vine.patch
375- added vlc-handlers.schemas
376  - Gonf2 url-handler support
377- added shine.c, enc_base.h
378  - missing sources
379- check version between original spec and self-build spec in %%prep
380
381* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.9a-3
382- dropped BuildArch: noarch (with svglib-devel for %%{ix86} x86_64)
383
384* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-2
385- rebuild with x264 >= 0.0.0-9.20090522
386- avoided to execute self-build-rpm.sh on RPM transaction
387  - moved %%post actions to %%posttrans
388
389* Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-1
390- new upstream release
391- added BuildArch: noarch
392- s/TrueType-DejaVu/TrueType-dejavu/
393
394* Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.8a-7
395- corrected release number in vlc.spec
396- dropped ExclusiveArch
397
398* Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8a-6
399- add ppc to ExclusiveArch
400
401* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-5
402- changed to PreReq:  self-build-faad2 from faad2-devel
403- changed to PreReq:  self-build-libmad from libmad-devel
404
405* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-4
406- initial build
407
408### end of file
Note: See TracBrowser for help on using the repository browser.