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

Revision 3126, 13.0 KB checked in by munepi, 13 years ago (diff)

updated self-build-ffmpeg-vl.spec, self-build-gpac-vl.spec self-build-libquicktime-vl.spec self-build-mplayer-vl.spec self-build-vlc-vl.spec self-build-x264-vl.spec; added rtmpdump-vl.spec

Line 
1%define pkgname vlc
2%define name    self-build-%{pkgname}
3%define version 1.1.8
4%define release 1%{?_dist_release}
5
6%define with_mozilla                    0
7%define with_dc1394                     0
8%define with_directfb                   1
9
10%define with_samba                      0
11
12%define sourceurl0      http://download.videolan.org/pub/videolan/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.bz2
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 "%{sourceurl0}" 1216000
267/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
268                                 %{pkgname}-devel-%{version}-%{release}
269
270%files
271%defattr(-,root,root)
272%{_datadir}/%{name}
273
274
275%changelog
276* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.8-1
277- new upstream release
278- added Requires(post):
279  - libcddb-devel
280  - libdc1394-devel >= 2.1.0
281  - libmodplug-devel
282  - libproxy-devel
283  - librtmp-devel
284  - libssh2-devel
285  - libudev-devel >= 142
286  - pcre-devel
287  - vcdimager-devel >= 0.7.21
288  - xcb-util-devel
289
290* Sat Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.7-1
291- new upstream release
292- dropped upstreamed patches
293- applied a reverted patch to pulse.c for vl5
294
295* Fri Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-2
296- backport lirc and signal fixes
297
298* Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-1
299- new upstream release
300- dropped temporarily BuildRequires: lirc
301- added BuildRequires: libass-devel as the tag Requires(post)
302
303* Sun Nov 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.5-1
304- new upstream release
305
306* Mon Aug 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-1
307- new upstream release
308
309* Sat Aug 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.2-1
310- new upstream release
311
312* Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-2
313- for only vl6, supported libva
314- set Obsoletes: vlc < 1.1.0 vlc-devel < 1.1.0
315
316* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-1
317- new upstream release
318- added Requires(post): libva-devel
319
320* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-3
321- renamed %%{Source0} to vlc-vl.spec
322
323* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-2
324- added Requires(post): libsmbclient-devel
325
326* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-1
327- new upstream release
328
329* Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2
330- built with libdvbpsi-devel
331- dropped 0002-Default-aout-for-pulse.patch
332
333* Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1
334- new upstream release
335- updated 0002-Default-aout-for-pulse.patch
336
337* Tue Nov 10 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2
338- added Requires(post): libmtp-devel
339
340* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1
341- new upstream release
342
343* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-2
344- rebuilt to add signature
345
346* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-1
347- new upstream release
348  - applied vlc-1.0.2-compiler.patch from RPM Fusion
349- added Requires(post): lua-devel
350
351* Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1
352- new upstream release
353
354* Sat Jul 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-2
355- added Obsoletes: vlc < 1.0.0, vlc-devel < 1.0.0
356
357* Wed Jul 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-1
358- new upstream release
359- clean-up some old patches and merged some patches from RPM Fusion package
360- added vlc-trunk-default_font-vine.patch
361- added vlc-handlers.schemas
362  - Gonf2 url-handler support
363- added shine.c, enc_base.h
364  - missing sources
365- check version between original spec and self-build spec in %%prep
366
367* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.9a-3
368- dropped BuildArch: noarch (with svglib-devel for %%{ix86} x86_64)
369
370* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-2
371- rebuild with x264 >= 0.0.0-9.20090522
372- avoided to execute self-build-rpm.sh on RPM transaction
373  - moved %%post actions to %%posttrans
374
375* Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-1
376- new upstream release
377- added BuildArch: noarch
378- s/TrueType-DejaVu/TrueType-dejavu/
379
380* Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.8a-7
381- corrected release number in vlc.spec
382- dropped ExclusiveArch
383
384* Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8a-6
385- add ppc to ExclusiveArch
386
387* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-5
388- changed to PreReq:  self-build-faad2 from faad2-devel
389- changed to PreReq:  self-build-libmad from libmad-devel
390
391* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-4
392- initial build
393
394### end of file
Note: See TracBrowser for help on using the repository browser.