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

Revision 2650, 11.6 KB checked in by munepi, 13 years ago (diff)

updated self-build-vlc-vl.spec, vlc-vl.spec

Line 
1%define pkgname vlc
2%define name    self-build-%{pkgname}
3%define version 1.1.7
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
27#Source101:     0001-Libnotify-depends-on-a-gtk.patch
28Source103:      vlc-1.1.6-hardode_font_patch.patch
29Source104:      vlc-1.1.4-tls_path.patch
30#Source105:     vlc-backport-lirc_fix.patch
31#Source106:     vlc-backport-signal_fix.patch
32
33## vine
34Source150:      vlc-1.1.7-revert-pulse-c.patch
35
36License:        GPLv2+
37Group:          Restricted Software
38
39Requires(post):         self-build-setup >= 0.9.9
40
41Requires(post): desktop-file-utils
42Requires(post): gettext
43Requires(post): gettext-devel
44Requires(post): libtool
45Requires(post): aalib-devel
46Requires(post): alsa-lib-devel
47Requires(post): avahi-devel
48Requires(post):  cdparanoia-devel
49Requires(post):  dbus-devel
50%{?_with_dirac: Requires(post): dirac-devel >= 1.0.0}
51%if %with_directfb
52Requires(post):  libdirectfb-devel
53%endif
54Requires(post): flac-devel
55Requires(post): fribidi-devel
56Requires(post):  gnome-vfs2-devel
57Requires(post): gnutls-devel >= 1.0.17
58Requires(post): gsm-devel
59Requires(post): hal-devel
60Requires(post): jack-audio-connection-kit-devel
61Requires(post):  libavc1394-devel
62Requires(post):  libass-devel >= 0.9.7
63Requires(post): libcdio-devel >= 0.77-3
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): libmpcdec-devel
71Requires(post): libmtp-devel
72Requires(post):  libnotify-devel
73Requires(post): librsvg2-devel >= 2.5.0
74Requires(post):  libshout-devel
75Requires(post):  libsmbclient-devel
76Requires(post): libtheora-devel
77Requires(post):  libtiff-devel
78Requires(post):  libupnp-devel
79Requires(post): libv4l-devel
80%if %{?_dist_release} == "vl6"
81Requires(post): libva-devel
82%endif
83Requires(post): libvorbis-devel
84Requires(post):  libxml2-devel
85%{?_with_lirc:Requires(post):   lirc}
86Requires(post):  kernel-headers >= 2.6.20
87Requires(post):  libmusicbrainz-devel
88Requires(post): lua-devel
89Requires(post): ncurses-devel
90Requires(post): openslp-devel
91Requires(post):  qt4-devel
92Requires(post): SDL_image-devel
93Requires(post): speex-devel >= 1.1.5
94%ifarch %{ix86} x86_64
95Requires(post):  svgalib-devel
96%endif
97Requires(post):  taglib-devel
98Requires(post): twolame-devel
99Requires(post): xosd-devel
100Requires(post): zlib-devel
101
102# X-libs
103Requires(post): libXt-devel
104Requires(post): libXv-devel
105Requires(post):  libXxf86vm-devel
106Requires(post):  libX11-devel
107Requires(post):  libXext-devel
108Requires(post):  libXpm-devel
109%ifarch %{ix86} x86_64
110Requires(post):  libXvMC-devel
111%endif
112Requires(post):  xorg-x11-proto-devel
113
114%if %with_samba
115Requires(post):  samba-libsmbclient-devel
116%endif
117
118Requires(post):  pulseaudio-libs-devel >= 0.9.8
119
120%if %with_mozilla
121Requires(post):  gecko-devel
122Requires(post):  nspr-devel
123%endif
124
125Requires(post):  libraw1394-devel
126
127Requires: TrueType-dejavu
128
129## vine
130Requires(post): libgcrypt-devel
131Requires(post): wx-gtk2-devel
132Requires:       mesa-libGL
133Requires(post): xorg-x11-devel
134Requires(post): mesa-libGL-devel
135Requires(post): self-build-libmpeg2
136Requires(post): self-build-a52dec
137Requires(post): self-build-faac
138Requires(post): self-build-faad2
139Requires(post): self-build-ffmpeg >= 0.4.9
140Requires(post): self-build-libdca
141Requires(post): self-build-libdvbpsi
142Requires(post): self-build-libdvdnav
143Requires(post): self-build-libmad
144Requires(post): self-build-libmp4v2
145Requires(post): self-build-x264 >= 0.0.0-9.20090522
146Requires(post): self-build-xvidcore
147
148BuildRoot:      %{_tmppath}/%{name}-%{version}-root
149
150Packager:       munepi
151
152%description
153VLC (initially VideoLAN Client) is a highly portable multimedia player
154for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX,
155mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols.
156It can also be used as a server to stream in unicast or multicast in
157IPv4 or IPv6 on a high-bandwidth network.
158
159
160[Note]
161This package requires many other packages to compile
162targetsoftware. So it consume more disk space than usual.
163Also installation takes logner time because of compilation.
164(This will take a few minutes to quarter or half of an hour,
165depends on building environment)
166
167[About self-build package]
168For some kind of software, distributing of binary package
169may viorate the patent or law. Therefore we chose self-build
170packge, create binary package on your machine, for such kind
171of softwares instead of distributing binary package.
172
173Please obey the national law when you use the created binary
174packages. And if you want to use the softwares using patented
175thechnology, it may be required to get a permission, make an
176agreement or purchas a license. Please consider it with your
177purpose or way of use and take appropriate action.
178
179%description -l ja
180VLC(初期は VideoLAN Client)は高い可搬性のあるマルチメディアプレーヤーで,
181様々なオーディオおよびビデオフォーマット(MPEG-1, MPEG-2, MPEG-4, DivX,
182mp3, ogg など)だけでなく,DVD や VCD,様々なストリーミングプロトコルにも
183対応しています.
184また,高帯域幅上の IPv4 や IPv6 で,
185ユニキャストやマルチキャストのストリームに,
186サーバーとして使用することもできます.
187
188
189このパッケージをインストールすると、自動的にソースコードを
190ダウンロードしてコンパイルし、%{pkgname}-%{version}
191の rpm パッケージを作成します。
192また apt-get コマンドや synaptic パッケージマネージャから実行
193した場合は、作成された rpm パッケージのインストールも自動的に
194行います。
195
196[注意]
197コンパイルに必要な多くの関連パッケージを要求するので通常より
198ディスクの領域を多く消費します。
199またインストール時にコンパイルを行うため、通常より時間がかか
200る場合があります。(環境にもよりますが数分から数十分程度)
201
202[self-build パッケージについて]
203ソフトウェアによってはバイナリパッケージの配布が特許や法律に
204違反する可能性があるものがあります。その為、このような問題が
205懸念されるソフトウェアについてはバイナリパッケージを直接配布
206せずに、ユーザの環境でバイナリを作成する self-build パッケー
207ジという方法を採っています。
208
209作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
210アのライセンス、および利用する国の各種法令に従ってください。
211また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
212センスの購入などが必要となる場合がありますので、利用する目的
213や形態に応じて各自で判断し適切な対応を取ってください。
214
215%prep
216[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
217
218%install
219%{__rm} -rf ${RPM_BUILD_ROOT}
220%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
221%{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
222
223%{__install} -m 644 \
224    %{SOURCE100} %{SOURCE103} %{SOURCE104} \
225    %{SOURCE150} \
226    ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
227
228
229%clean
230%{__rm} -rf ${RPM_BUILD_ROOT}
231
232%posttrans
233/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 1216000
234/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
235                                 %{pkgname}-devel-%{version}-%{release}
236
237%files
238%defattr(-,root,root)
239%{_datadir}/%{name}
240
241
242%changelog
243* Sat Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.7-1
244- new upstream release
245- dropped upstreamed patches
246- applied a reverted patch to pulse.c for vl5
247
248* Fri Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-2
249- backport lirc and signal fixes
250
251* Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-1
252- new upstream release
253- dropped temporarily BuildRequires: lirc
254- added BuildRequires: libass-devel as the tag Requires(post)
255
256* Sun Nov 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.5-1
257- new upstream release
258
259* Mon Aug 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-1
260- new upstream release
261
262* Sat Aug 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.2-1
263- new upstream release
264
265* Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-2
266- for only vl6, supported libva
267- set Obsoletes: vlc < 1.1.0 vlc-devel < 1.1.0
268
269* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-1
270- new upstream release
271- added Requires(post): libva-devel
272
273* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-3
274- renamed %%{Source0} to vlc-vl.spec
275
276* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-2
277- added Requires(post): libsmbclient-devel
278
279* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-1
280- new upstream release
281
282* Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2
283- built with libdvbpsi-devel
284- dropped 0002-Default-aout-for-pulse.patch
285
286* Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1
287- new upstream release
288- updated 0002-Default-aout-for-pulse.patch
289
290* Tue Nov 10 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2
291- added Requires(post): libmtp-devel
292
293* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1
294- new upstream release
295
296* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-2
297- rebuilt to add signature
298
299* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-1
300- new upstream release
301  - applied vlc-1.0.2-compiler.patch from RPM Fusion
302- added Requires(post): lua-devel
303
304* Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1
305- new upstream release
306
307* Sat Jul 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-2
308- added Obsoletes: vlc < 1.0.0, vlc-devel < 1.0.0
309
310* Wed Jul 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-1
311- new upstream release
312- clean-up some old patches and merged some patches from RPM Fusion package
313- added vlc-trunk-default_font-vine.patch
314- added vlc-handlers.schemas
315  - Gonf2 url-handler support
316- added shine.c, enc_base.h
317  - missing sources
318- check version between original spec and self-build spec in %%prep
319
320* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.9a-3
321- dropped BuildArch: noarch (with svglib-devel for %%{ix86} x86_64)
322
323* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-2
324- rebuild with x264 >= 0.0.0-9.20090522
325- avoided to execute self-build-rpm.sh on RPM transaction
326  - moved %%post actions to %%posttrans
327
328* Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-1
329- new upstream release
330- added BuildArch: noarch
331- s/TrueType-DejaVu/TrueType-dejavu/
332
333* Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.8a-7
334- corrected release number in vlc.spec
335- dropped ExclusiveArch
336
337* Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8a-6
338- add ppc to ExclusiveArch
339
340* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-5
341- changed to PreReq:  self-build-faad2 from faad2-devel
342- changed to PreReq:  self-build-libmad from libmad-devel
343
344* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-4
345- initial build
346
347### end of file
Note: See TracBrowser for help on using the repository browser.