]> git.sesse.net Git - vlc/blob - vlc.spec.redhat
* modules/gui/wxwindows/*: added demuxdump support to the open dialog.
[vlc] / vlc.spec.redhat
1 Summary: The VideoLAN client, also a very good standalone video player.
2 Name: vlc
3 Version: 0.5.2
4 Release: 1
5 Group: Applications/Multimedia
6 License: GPL
7 URL: http://www.videolan.org/
8 Source: http://www.videolan.org/pub/videolan/vlc/vlc-%{version}.tar.bz2
9 Buildroot: %{_tmppath}/%{name}-root
10 Packager: Jason Luka <jason@geshp.com>
11 Requires: XFree86, desktop-file-utils
12 %{!?_without_dvd:Requires: libdvdcss}
13 %{!?_without_dvdread:Requires: libdvdread}
14 %{!?_without_dvdplay:Requires: libdvdplay}
15 %{!?_without_dvbpsi:Requires: libdvbpsi}
16 %{!?_without_ogg:Requires: libogg}
17 %{!?_without_mad:Requires: libmad}
18 %{!?_without_ffmpeg:Requires: libffmpeg}
19 %{!?_without_xvid:Requires: xvidcore}
20 %{!?_without_a52:Requires: a52dec}
21 %{?_with_dv:Requires: libdv}
22 %{!?_without_flac:Requires: flac}
23 %{!?_without_vorbis:Requires: libvorbis}
24 %{!?_without_sdl:Requires: SDL}
25 %{!?_without_aa:Requires: aalib}
26 %{!?_without_esd:Requires: esound}
27 %{!?_without_arts:Requires: arts}
28 %{!?_without_alsa:Requires: alsa-lib}
29 %{!?_without_gtk:Requires: gtk+}
30 %{!?_without_gnome:Requires: gnome-libs}
31 %{?_with_qt:Requires: qt}
32 %{?_with_kde:Requires: kdelibs}
33 %{?_with_ncurses:Requires: ncurses}
34 %{!?_without_xosd:Requires: xosd}
35 %{!?_without_lirc:Requires: lirc}
36 %{?_with_mozilla:Requires: mozilla}
37
38 Requires: XFree86, desktop-file-utils
39 %{!?_without_dvd:Requires: libdvdcss}
40 %{!?_without_dvdread:Requires: libdvdread}
41 %{!?_without_dvdplay:Requires: libdvdplay}
42 %{!?_without_dvbpsi:Requires: libdvbpsi}
43 %{!?_without_ogg:Requires: libogg}
44 %{!?_without_mad:Requires: libmad}
45 %{!?_without_ffmpeg:Requires: libffmpeg}
46 %{!?_without_xvid:Requires: xvidcore}
47 %{!?_without_a52:Requires: a52dec}
48 %{?_with_dv:Requires: libdv}
49 %{!?_without_flac:Requires: flac}
50 %{!?_without_vorbis:Requires: libvorbis}
51 %{!?_without_sdl:Requires: SDL}
52 %{!?_without_aa:Requires: aalib}
53 %{!?_without_esd:Requires: esound}
54 %{!?_without_arts:Requires: arts}
55 %{!?_without_alsa:Requires: alsa-lib}
56 %{!?_without_gtk:Requires: gtk+}
57 %{!?_without_gnome:Requires: gnome-libs}
58 %{?_with_qt:Requires: qt}
59 %{?_with_kde:Requires: kdelibs}
60 %{?_with_ncurses:Requires: ncurses}
61 %{!?_without_xosd:Requires: xosd}
62 %{!?_without_lirc:Requires: lirc}
63 %{?_with_mozilla:Requires: mozilla}
64
65 %description
66 VideoLAN Client (VLC) is a highly portable multimedia player for various
67 audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...) as
68 well as DVDs, VCDs, and various streaming protocols.
69
70 Available rpmbuild rebuild options :
71 --with dv mga qt kde ncurses
72 --without dvd dvdread dvdplay dvbpsi v4l avi asf aac ogg rawdv mad ffmpeg xvid
73           mp4 a52 vorbis flac aa esd arts alsa gtk gnome xosd lsp lirc pth
74
75 Options that would need not yet existing add-on packages :
76 --with faad tremor tarkin theora svgalib ggi glide wxwindows
77
78
79 %package devel
80 Summary: Header files and static library from the Videolan Client.
81 Group: Development/Libraries
82 Requires: %{name} = %{version}
83
84 %description devel
85 VideoLAN Client (VLC) is a highly portable multimedia player for various
86 audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...) as
87 well as DVDs, VCDs, and various streaming protocols.
88
89 Install this package if you need to build Videolan Client plugins or intend
90 to link statically to it.
91
92
93 %prep
94 %setup -q -n vlc-%{version}
95
96 %build
97 %configure \
98         --enable-release \
99         %{?_without_dvd:--disable-dvd} \
100         %{!?_without_dvdread:--enable-dvdread} \
101         %{!?_without_dvdplay:--enable-dvdplay} \
102         %{!?_without_dvbpsi:--enable-dvbpsi} \
103         %{!?_without_v4l:--enable-v4l} \
104         --enable-vcd \
105         %{?_without_avi:--disable-avi} \
106         %{?_without_asf:--disable-asf} \
107         %{?_without_aac:--disable-aac} \
108         %{?_without_ogg:--disable-ogg} \
109         %{?_without_rawdv:--disable-rawdv} \
110         %{!?_without_mad:--enable-mad} \
111         %{!?_without_ffmpeg:--enable-ffmpeg --with-ffmpeg=%{_prefix}} \
112         %{?_with_faad:--enable-faad} \
113         %{!?_without_xvid:--enable-xvid} \
114         %{?_without_mp4:--disable-mp4} \
115         %{?_without_a52:--disable-a52} \
116         %{?_without_cinepak:--disable-cinepak} \
117         %{?_with_dv:--enable-dv} \
118         %{!?_without_flac:--enable-flac} \
119         %{?_without_vorbis:--disable-vorbis} \
120         %{?_with_tremor:--enable-tremor} \
121         %{?_with_tarkin:--enable-tarkin} \
122         %{?_with_theora:--enable-theora} \
123         --enable-x11 \
124         --enable-xvideo \
125         %{?_without_sdl:--disable-sdl} \
126         --disable-qte \
127         --disable-directx \
128         --enable-fb \
129         %{?_with_mga:--enable-mga} \
130         %{?_with_svgalib:--enable-svgalib} \
131         %{?_with_ggi:--enable-ggi} \
132         %{?_with_glide:--enable-glide} \
133         %{!?_without_aa:--enable-aa} \
134         --without-wingdi \
135         --enable-oss \
136         %{!?_without_esd:--enable-esd} \
137         %{!?_without_arts:--enable-arts} \
138         %{!?_without_alsa:--enable-alsa} \
139         --disable-waveout \
140         %{!?_without_gtk:--enable-gtk} \
141         --disable-familiar \
142         %{!?_without_gnome:--enable-gnome} \
143         %{!?_with_wxwindows:--disable-wxwindows} \
144         %{?_with_qt:--enable-qt} \
145         %{?_with_kde:--enable-kde} \
146         --disable-opie \
147         --disable-macosx \
148         --disable-qnx \
149         --disable-intfwin \
150         %{?_with_ncurses:--enable-ncurses} \
151         %{!?_without_xosd:--enable-xosd} \
152         %{?_without_slp:--disable-slp} \
153         %{!?_without_lirc:--enable-lirc} \
154         %{!?_without_pth:--enable-pth} \
155         --disable-st \
156         %{?_with_mozilla:--enable-mozilla} \
157         --disable-testsuite \
158         --enable-plugins
159 make %{?_smp_mflags}
160
161 %install
162 rm -rf %{buildroot}
163 %makeinstall
164 find  %{buildroot}%{_libdir}/vlc -name "*.so" | xargs strip
165 %find_lang vlc
166
167 cat > %{name}.desktop << EOF
168 [Desktop Entry]
169 Name=VideoLAN Client
170 Comment=%{summary}
171 Icon=%{_datadir}/vlc/vlc48x48.png
172 Exec=vlc
173 Terminal=0
174 Type=Application
175 EOF
176
177 mkdir -p %{buildroot}%{_datadir}/applications
178 desktop-file-install --vendor %{desktop_vendor} --delete-original \
179   --dir %{buildroot}%{_datadir}/applications                      \
180   --add-category X-Red-Hat-Extra                                  \
181   --add-category Application                                      \
182   --add-category AudioVideo                                       \
183   %{name}.desktop
184
185 %post
186 ln /dev/cdrom /dev/dvd -sf
187
188 %postun
189 rm -f /dev/dvd
190
191 %clean
192 rm -rf %{buildroot}
193
194 %files -f vlc.lang
195 %defattr(-, root, root)
196 %doc AUTHORS COPYING ChangeLog MAINTAINERS README THANKS
197 %doc doc/fortunes.txt doc/web-streaming.html
198 %{_bindir}/*vlc
199 %{_libdir}/vlc
200 %{_datadir}/applications/%{desktop_vendor}-%{name}.desktop
201 %{_datadir}/vlc
202
203 %files devel
204 %defattr(-, root, root)
205 %doc HACKING 
206 %{_bindir}/vlc-config
207 %{_includedir}/vlc
208 %{_libdir}/libvlc.a
209
210 %changelog
211 * Thu Mar 23 2003 Jason Luka <jason@geshp.com>
212 - Renamed ffmpeg to libffmpeg
213 - Rebuilt for videolan site
214 - Autolinked /dev/dvd to /dev/cdrom
215
216 * Tue Mar 11 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
217 - Update to 0.5.2.
218 - Fix the dv build dependency, thanks to Alan Hagge.
219 - Added flac support.
220 - Fixed the libdvbpsi requirements.
221
222 * Mon Feb 24 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
223 - Rebuilt against the new xosd lib.
224
225 * Wed Feb 19 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
226 - Update to 0.5.1.
227 - Major spec file update.
228
229 * Fri Nov 15 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
230 - Update to 0.4.6.
231
232 * Tue Oct 22 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
233 - Update to 0.4.5.
234 - Minor --with / --without adjustments.
235
236 * Sun Oct  6 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
237 - Rebuilt for Red Hat Linux 8.0.
238 - New menu entry.
239 - Added all --without options and --with qt.
240
241 * Mon Aug 12 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
242 - Update to 0.4.4.
243
244 * Fri Jul 26 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
245 - Update to 0.4.3.
246
247 * Fri Jul 12 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
248 - Update to 0.4.2.
249
250 * Wed Jun  5 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
251 - Update to 0.4.1.
252
253 * Fri May 24 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
254 - Update to 0.4.0.
255 - Disabled qt interface, it's hell to build with qt2/3!
256 - Use %%find_lang and %%{?_smp_mflags}.
257
258 * Fri Apr 19 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
259 - Update to 0.3.1.
260
261 * Mon Apr  8 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
262 - Update to 0.3.0.
263
264 * Sat Jan 12 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
265 - Removed the dependency on libdvdcss package, use the built in one instead,
266   because 1.x.x is not as good as 0.0.3.ogle3.
267
268 * Tue Jan  1 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
269 - Update to 0.2.92.
270 - Build fails with libdvdcss < 1.0.1.
271
272 * Tue Nov 13 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
273 - Update to 0.2.91 and now requires libdvdcss 1.0.0.
274
275 * Mon Oct 22 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
276 - Split libdvdcss into a separate package since it's also needed by the
277   xine menu plugin.
278
279 * Thu Oct 11 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
280 - Updated to 0.2.90.
281 - Removed ggi, svgalib and aalib since they aren't included in Red Hat 7.2.
282
283 * Mon Aug 27 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
284 - Updated to 0.2.83.
285
286 * Sat Aug 11 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
287 - Updated to 0.2.82.
288
289 * Mon Jul 30 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
290 - Updated to 0.2.81.
291 - Added all the new split libdvdcss.* files to the %%files section.
292
293 * Tue Jun  5 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
294 - Updated to the latest release, 0.2.80.
295
296 * Wed May 30 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
297 - Updated to today's CVS version, works great! :-)
298 - Fixed the desktop menu entry.
299
300 * Tue May 22 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
301 - Spec file cleanup to make it look more like others do.
302 - Added the use of many macros.
303 - Disabled automatic requires and provides (the package always needed qt,
304   gtk+, gnome etc. otherwise).
305 - Added a system desktop menu entry.
306
307 * Mon Apr 30 2001 Arnaud Gomes-do-Vale <arnaud@glou.org>
308 Added relocation support and compile fixes for Red Hat 7.x.
309
310 * Sat Apr 28 2001 Henri Fallon <henri@videolan.org>
311 New upstream release (0.2.73)
312
313 * Mon Apr 16 2001 Samuel Hocevar <sam@zoy.org>
314 New upstream release (0.2.72)
315
316 * Fri Apr 13 2001 Samuel Hocevar <sam@zoy.org>
317 New upstream release (0.2.71)
318
319 * Sun Apr 8 2001 Christophe Massiot <massiot@via.ecp.fr>
320 New upstream release (0.2.70)
321
322 * Fri Feb 16 2001 Samuel Hocevar <sam@via.ecp.fr>
323 New upstream release
324
325 * Tue Aug  8 2000 Samuel Hocevar <sam@via.ecp.fr>
326 Added framebuffer support
327
328 * Sun Jun 18 2000 Samuel Hocevar <sam@via.ecp.fr>
329 Took over the package
330
331 * Thu Jun 15 2000 Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
332 Initial package
333