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

Revision 3538, 13.3 KB checked in by munepi, 13 years ago (diff)

updated self-build-{ffmpeg,gpac,vlc}-vl.spec

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