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

Revision 6691, 14.6 KB checked in by munepi, 12 years ago (diff)

new upstream release; s/wx-gtk2/wxGTK/g

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