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

Revision 3523, 13.2 KB checked in by munepi, 13 years ago (diff)

updated self-build-vl.spec: new upstream release; applied vlc_patch_0.02/vlc118.diff in up0617.zip on 2sen.dip.jp/dtv

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