]> git.sesse.net Git - vlc/blob - vlc.spec
you can now build RPMs.
[vlc] / vlc.spec
1 %define name            vlc
2 %define version         0.5.0
3 %define rel             0.1
4
5 %define libmajor        0
6 %define libname         lib%name%libmajor
7
8 %define cvs             0
9 %if %{cvs}
10 %define cvsdate         20021213
11 %define release         0.%{cvsdate}
12 %define cvs_name        %{name}-%version-cvs
13 %else
14 %define release         %{rel}mdk
15 %endif
16
17 %define with_dvdplay 0
18
19 %define with_mozilla 0
20 %define with_gtk 1
21 %define with_gnome 1
22 %define with_qt 0
23 %define with_kde 0
24 %define with_ncurses 1
25 %define with_lirc 1
26 %define with_wx 0
27
28 %define with_aa 1
29 %define with_sdl 1
30 %define with_ggi 1
31 %define with_svgalib 0
32 %define with_xosd 0
33
34 %define with_mad 1
35 %define with_ogg 1
36 %define with_a52 1
37 %define with_dv 0
38 %define with_dvb 0
39 %define with_ffmpeg 0
40
41 %define with_esd 1
42 %define with_arts 1
43 %define with_alsa 1
44
45 %define redhat80 0
46 %if %redhat80
47 %define release %rel
48 # adjust define for Redhat.
49 %endif
50
51 # without
52 %{?_without_mozilla:    %{expand: %%define with_mozilla 0}}
53 %{?_without_gtk:        %{expand: %%define with_gtk 0}}
54 %{?_without_gnome:      %{expand: %%define with_gnome 0}}
55 %{?_without_qt:         %{expand: %%define with_qt 0}}
56 %{?_without_kde:        %{expand: %%define with_kde 0}}
57 %{?_without_ncurses:    %{expand: %%define with_ncurses 0}}
58 %{?_without_lirc:       %{expand: %%define with_lirc 0}}
59 %{?_without_wx:         %{expand: %%define with_wx 0}}
60
61 %{?_without_aa:         %{expand: %%define with_aa 0}}
62 %{?_without_sdl:        %{expand: %%define with_sdl 0}}
63 %{?_without_ggi:        %{expand: %%define with_ggi 0}}
64 %{?_without_svgalib:    %{expand: %%define with_svgalib 0}}
65 %{?_without_xosd:       %{expand: %%define with_xosd 0}}
66
67 %{?_without_mad:        %{expand: %%define with_mad 0}}
68 %{?_without_ogg:        %{expand: %%define with_ogg 0}}
69 %{?_without_a52:        %{expand: %%define with_a52 0}}
70 %{?_without_dv:         %{expand: %%define with_dv 0}}
71 %{?_without_dvb:        %{expand: %%define with_dvb 0}}
72
73 %{?_without_esd:        %{expand: %%define with_esd 0}}
74 %{?_without_arts:       %{expand: %%define with_arts 0}}
75 %{?_without_alsa:       %{expand: %%define with_alsa 0}}
76
77 # with
78 %{?_with_mozilla:       %{expand: %%define with_mozilla 1}}
79 %{?_with_gtk:           %{expand: %%define with_gtk 1}}
80 %{?_with_gnome:         %{expand: %%define with_gnome 1}}
81 %{?_with_qt:            %{expand: %%define with_qt 1}}
82 %{?_with_kde:           %{expand: %%define with_kde 1}}
83 %{?_with_ncurses:       %{expand: %%define with_ncurses 1}}
84 %{?_with_lirc:          %{expand: %%define with_lirc 1}}
85 %{?_with_wx:            %{expand: %%define with_wx 0}}
86
87 %{?_with_aa:            %{expand: %%define with_aa 1}}
88 %{?_with_sdl:           %{expand: %%define with_sdl 1}}
89 %{?_with_ggi:           %{expand: %%define with_ggi 1}}
90 %{?_with_svgalib:       %{expand: %%define with_svgalib 1}}
91 %{?_with_xosd:          %{expand: %%define with_xosd 1}}
92
93 %{?_with_mad:           %{expand: %%define with_mad 1}}
94 %{?_with_ogg:           %{expand: %%define with_ogg 1}}
95 %{?_with_a52:           %{expand: %%define with_a52 1}}
96 %{?_with_dv:            %{expand: %%define with_dv 1}}
97 %{?_with_dvb:           %{expand: %%define with_dvb 1}}
98
99 %{?_with_esd:           %{expand: %%define with_esd 1}}
100 %{?_with_arts:          %{expand: %%define with_arts 1}}
101 %{?_with_alsa:          %{expand: %%define with_alsa 1}}
102
103
104 Summary:        VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
105 Name:           %{name}
106 Version:        %{version}
107 Release:        %{release}
108 Packager:       Yves Duret <yves@zarb.org>
109
110 %if %{cvs} 
111 Source0:        http://www.videolan.org/pub/videolan/vlc/snapshots/%{cvs_name}.tar.bz2
112 %else
113 Source0:        http://www.videolan.org/packages/%{version}/%{name}-%{version}.tar.bz2
114 %endif
115 License:        GPL
116 Group:          Video
117 URL:            http://www.videolan.org/
118 Requires:       vlc-gui
119 # vlc-mad needed by ffmpeg builtin (i want MPEG4 support out of box)
120 Requires:       vlc-mad
121
122 BuildRoot:      %_tmppath/%name-%version-%release-root
123
124 %if %with_mozilla
125 Buildrequires:  mozilla-devel
126 %endif
127 %if %with_gtk
128 Buildrequires:  libgtk+1.2-devel
129 %endif
130 %if %with_gnome
131 Buildrequires:  gnome-libs-devel
132 %endif
133 %if %with_qt
134 Buildrequires:  libqt2-devel
135 %endif
136 %if %with_kde
137 Buildrequires:  libkde2-devel
138 %endif
139 %if %with_ncurses
140 Buildrequires:  libncurses5-devel
141 %if %with_wx
142 Buildrequires:  wxwindows
143 %endif
144 %endif
145 %if %with_lirc
146 Buildrequires:  liblirc-devel
147 %endif
148 %if %with_aa
149 Buildrequires:  aalib-devel
150 %endif
151 %if %with_sdl
152 Buildrequires:  SDL-devel
153 %endif
154 %if %with_ggi
155 Buildrequires:  libggi-devel
156 %endif
157 %if %with_svgalib
158 Buildrequires:  svgalib-devel
159 %endif
160 %if %with_xosd
161 Buildrequires:  libxosd2-devel
162 %endif
163 %if %with_mad
164 Buildrequires:  libmad-devel
165 %endif
166 %if %with_ogg
167 Buildrequires:  libvorbis-devel
168 Buildrequires:  libogg-devel
169 %endif
170 %if %with_dv
171 Buildrequires:  libdv2-devel
172 %endif
173
174 %if %with_a52
175 #Buildrequires: liba52dec-devel
176 %endif
177
178 %if %with_ffmpeg
179 Buildrequires:  libffmpeg-devel
180 %endif
181
182 %if %with_alsa
183 Buildrequires:  libalsa2-devel
184 %endif
185 %if %with_esd
186 Buildrequires:  libesound0-devel
187 %endif
188 %if %with_arts
189 Buildrequires:  libarts-devel
190 %endif
191
192 %description
193 VideoLAN is an OpenSource streaming solution for every OS developed by
194 students from the Ecole Centrale Paris and developers from all over the
195 World.
196 The VideoLAN Client (vlc) plays MPEG1, MPEG2 and MPEG4 (aka DivX) files,
197 DVDs, VCDs, SVCDs, from a satellite card, from an MPEG2 Transport
198 Streams sent by the VideoLAN Server (vls) or from a Web server (with the
199 HTTP input).
200 You may install vlc-gnome or vlc-gtk to have a nice graphical interface.
201 This package contains no CSS unscrambling functionality for DVDs ;
202 you need the libdvdcss library available from 
203 http://www.videolan.org/libdvdcss/ or http://plf.zarb.org/
204
205 #general packages
206 %package -n %libname-devel
207 Summary: Development files for the VideoLAN Client
208 Group: Development/C
209 Requires: %name = %version-%release
210 Provides: %{name}-devel = %version-%release
211 %description -n %libname-devel
212 Development files for the VideoLAN Client
213 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
214
215 This package contains headers and a static library required to build plugins
216 for the VideoLAN Client, or standalone applications using VideoLAN Client.
217
218 %package -n mozilla-plugin-vlc
219 Summary: A multimedia plugin for Mozilla, based on vlc
220 group: Video
221 Requires: %name = %version-%release
222 %description -n mozilla-plugin-vlc
223 This plugin adds support for MPEG, MPEG2, DVD and DivX to your Mozilla
224 browser. The decoding process is done by vlc and the output window is
225 embedded in a webpage or directly in the browser window. There is also
226 support for fullscreen display.
227
228
229 # intf plugins
230 %package -n gvlc
231 Summary: Gtk plugin for the VideoLAN client
232 Group: Video
233 Requires: %{name} = %{version}
234 Provides: vlc-gui
235 %description -n gvlc
236 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
237
238 This plugin adds a Gtk+ interface to vlc, the VideoLAN Client. To
239 activate it, use the `--intf gtk' flag or run the `gvlc' program.
240
241 %package -n gnome-vlc
242 Summary: Gnome plugin for the VideoLAN client
243 Group: Video
244 Requires: %{name} = %{version}
245 Provides: vlc-gui, vlc-gnome
246 Obsoletes: vlc-gnome
247 %description -n gnome-vlc
248 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
249
250 This plugin adds a Gnome interface to vlc, the VideoLAN Client. To
251 activate it, use the `--intf gnome' flag or run the `gnome-vlc' program.
252
253 %package -n qvlc
254 Summary: Qt2 plugin for the VideoLAN client
255 Group: Video
256 Requires: %{name} = %{version}
257 Provides: vlc-gui, vlc-qt
258 Obsoletes: vlc-qt
259 %description -n qvlc
260 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
261
262 This plugin adds a Qt interface to vlc, the VideoLAN Client. To
263 activate it, use the `--intf qt' flag or run the `qvlc' program.
264
265 %package -n kvlc
266 Summary: KDE frontend for the VideoLAN client
267 Group: Video
268 Requires: %{name} = %{version}
269 Provides: vlc-gui
270 %description -n kvlc
271 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
272
273 This plugin adds a KDE interface to vlc, the VideoLAN Client. To
274 activate it, use the `--intf kde' flag or run the `kvlc' program.
275
276
277 %package plugin-ncurses
278 Summary: Ncurses console-based plugin for the VideoLAN client
279 Group: Video
280 Requires: %{name} = %{version}
281 %description plugin-ncurses
282 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
283
284 This plugin adds a ncurses interface to vlc, the VideoLAN Client. To
285 activate it, use the `--intf ncurses' flag.
286
287 %package plugin-lirc
288 Summary: Lirc plugin for the VideoLAN client
289 Group: Video
290 Requires: %{name} = %{version}
291 Obsoletes: vlc-lirc
292 Provides: vlc-lirc
293 %description plugin-lirc
294 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
295
296 This plugin is an infrared lirc interface for vlc, the
297 VideoLAN Client. To activate it, use the `--intf lirc' flag.
298
299 #
300 # video plugins
301 %package plugin-aa
302 Summary: ASCII art video plugin for the VideoLAN client
303 Group: Video
304 Requires: %{name} = %{version}
305 Obsoletes: vlc-aa
306 Provides: vlc-aa
307 %description plugin-aa
308 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
309
310 This is an ASCII art video output plugin for vlc, the VideoLAN
311 Client. To activate it, use the `--vout aa' flag or select the `aa'
312 vout plugin from the preferences menu.
313
314
315 %package plugin-sdl
316 Summary: Simple DirectMedia Layer video plugin for the VideoLAN client
317 Group: Video
318 Requires: %{name} = %{version}
319 Obsoletes: vlc-sdl
320 Provides: vlc-sdl
321 %description plugin-sdl
322 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
323
324 This plugin adds support for the Simple DirectMedia Layer library to
325 vlc, the VideoLAN Client. To activate it, use the `--vout sdl' or
326 `--aout sdl' flags or select the `sdl' vout or aout plugin from the
327 preferences menu.
328
329 %package plugin-ggi
330 Summary: GGI video plugin for the VideoLAN client
331 Group: Video
332 Requires: %{name} = %{version}
333 Obsoletes: vlc-ggi
334 Provides: vlc-ggi
335 %description plugin-ggi
336 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
337
338 This is a GGI plugin for vlc, the VideoLAN Client.  To activate it, use
339 the `--vout ggi' flag or select the `ggi' vout plugin from the preferences
340 menu.
341
342 %package plugin-svgalib
343 Summary: SVGAlib video plugin for the VideoLAN client
344 Group: Video
345 Requires: %{name} = %{version}
346 %description plugin-svgalib
347 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
348
349 This plugin adds support for SVGAlib to vlc, the VideoLAN Client. To
350 activate it, use the `--vout svgalib' flag or select the `svgalib' video
351 output plugin from the preferences menu. Note that you will need root
352 permissions to use SVGAlib.
353
354
355 #
356 # visualization plugins
357 %package plugin-xosd
358 Summary: X On-Screen Display plugin for the VideoLAN client
359 Group: Video
360 Requires: %{name} = %{version}
361 %description plugin-xosd
362 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
363
364 This is an On-Screen Display plugin for vlc, the VideoLAN Client. To
365 activate it, use the `--intf xosd' flag or select the `xosd' interface
366 plugin from the preferences menu.
367
368 # codec plugins
369 %package plugin-mad
370 Summary: MAD audio codec plugin for the VideoLAN client
371 Group: Video
372 Requires: %{name} = %{version}
373 Obsoletes: vlc-mad
374 Provides: vlc-mad
375 %description plugin-mad
376 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
377
378 This plugin adds support for libmad, the MPEG audio decoder library,
379 to the VideoLAN Client. MAD is 100% fixed-point based. To activate
380 this plugin, use the `--mpeg_adec mad' flag or select the `mad' MPEG
381 decoder from the preferences menu.
382
383 %package plugin-ogg
384 Summary: Ogg demuxer and Vorbis codec plugin for the VideoLAN client
385 Group: Video
386 Requires: %{name} = %{version}
387 %description plugin-ogg
388 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
389
390 These plugins add support for the Ogg bitstream format and the Ogg Vorbis
391 compressed audio format to vlc, the VideoLAN Client. They are autodetected.
392
393 %package plugin-a52
394 Summary: A-52 (AC-3) codec plugin for the VideoLAN client
395 Group: Video
396 Requires: %{name} = %{version}
397 %description plugin-a52
398 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
399
400 This plugin adds support for the ATSC A-52 (aka. AC-3) audio format to
401 vlc, the VideoLAN Client. The plugin is autodetected.
402
403 %package plugin-dv
404 Summary: DV codec plugin for the VideoLAN client
405 Group: Video
406 Requires: %{name} = %{version}
407 %description plugin-dv
408 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
409
410 This plugin adds support for the DV video format to vlc, the VideoLAN
411 Client. The plugin is autodetected.
412
413 #
414 # input plugins
415 %package plugin-dvb
416 Summary: DVB input plugin for the VideoLAN client
417 Group: Video
418 Requires: %{name} = %{version}
419 %description plugin-dvb
420 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
421
422 This plugin adds support for DVB cards to vlc, the VideoLAN Client. Note
423 that your card needs to be supported by your kernel before vlc can use it.
424
425 #
426 # audio plugins
427 %package plugin-esd
428 Summary: Enlightened Sound Daemon audio plugin for the VideoLAN client
429 Group: Video
430 Requires: %{name} = %{version}
431 Obsoletes: vlc-esd
432 Provides: vlc-esd
433 %description plugin-esd
434 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
435
436 This plugin adds support for the Enlightened Sound Daemon to vlc, the
437 VideoLAN Client. To activate it, use the `--aout esd' flag or select
438 the `esd' aout plugin from the preferences menu.
439
440 %package plugin-arts
441 Summary: aRts audio plugin for the VideoLAN client
442 Group: Video
443 Requires: %{name} = %{version}
444 Obsoletes: vlc-arts
445 Provides: vlc-arts
446 %description plugin-arts
447 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
448
449 This plugin adds support for the aRts Sound System to vlc, the
450 VideoLAN Client. To activate it, use the `--aout arts' flag or
451 select the `arts' aout plugin from the preferences menu.
452
453 %package plugin-alsa
454 Summary: Advanced Linux Sound Architecture audio plugin for the VideoLAN client
455 Group: Video
456 Requires: %{name} = %{version}
457 Obsoletes: vlc-alsa
458 Provides: vlc-alsa
459 %description plugin-alsa
460 VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
461
462 This plugin adds support for the Advanced Linux Sound Architecture to
463 vlc, the VideoLAN Client. To activate it, use the `--aout alsa' flag or
464 select the `alsa' aout plugin from the preferences menu.
465
466 %prep
467 %if %{cvs}
468 %setup -q -n %{cvs_name}
469 %else
470 %setup -q 
471 #-n %name-%version-cvs
472 %endif
473
474 %build
475 # yves 0.4.0-1mdk
476 # ffmpeg: static linking cause no official ffmpeg release aith a stable ABI
477 # ffmpeg:no plugin posible on ia64 due to the static linking (can not put .a in a .so)
478
479 # NO empty line or comments for the configure --switch or it won't work.
480 %configure2_5x  --enable-release \
481         --enable-dvd --without-dvdcss \
482 %if %with_dvdplay
483         --enable-dvdplay \
484 %else
485         --disable-dvdplay \
486 %endif
487 %if %with_mozilla
488         --enable-mozilla \
489 %else
490         --disable-mozilla \
491 %endif
492 %if %with_gtk
493         --enable-gtk \
494 %else
495         --disable-gtk \
496 %endif
497 %if %with_gnome
498         --enable-gnome \
499 %else
500         --disable-gnome \
501 %endif
502 %if %with_qt
503         --enable-qt \
504 %endif
505 %if %with_kde
506         --enable-kde \
507 %endif
508 %if %with_ncurses
509         --enable-ncurses \
510 %endif
511 %if %with_lirc
512         --enable-lirc \
513 %endif
514 %if %with_wx
515         --enable-wxwindows \
516 %else 
517         --disable-wxwindows \
518 %endif
519         --enable-x11 --enable-xvideo \
520         --enable-fb --disable-mga \
521 %if %with_aa
522         --enable-aa \
523 %endif
524 %if %with_sdl
525         --enable-sdl \
526 %endif
527 %if %with_ggi
528         --enable-ggi \
529 %endif
530 %if %with_svgalib
531         --enable-svgalib \
532 %endif
533 %if %with_xosd
534         --enable-xosd \
535 %else
536         --disable-xosd \
537 %endif
538 %if %with_mad
539         --enable-mad \
540 %endif  
541 %if %with_ffmpeg
542         --enable-ffmpeg --with-ffmpeg=/usr --with-ffmpeg-tree=/usr/lib \
543 %else
544         --disable-ffmpeg \
545 %endif
546 %if %with_ogg
547         --enable-vorbis \
548         --enable-ogg \
549 %else
550         --disable-vorbis \
551         --disable-ogg \
552 %endif
553 %if %with_esd
554         --enable-esd \
555 %endif
556 %if %with_alsa
557         --enable-alsa \
558 %endif
559 %if %with_arts
560         --enable-arts \
561 %endif
562
563 # debian configure
564 # --enable-a52 --enable-aa --enable-dvbpsi --enable-xosd --enable-mozilla --enable-kde --enable-mp4 --enable-dvb --enable-dv --enable-svgalib --enable-satellite --enable-ogg --enable-vorbis
565
566 export QTDIR=%{_libdir}/qt3 
567 %make
568
569 %install
570 %makeinstall_std
571 %find_lang %name
572 install -d %buildroot/%_mandir/man1
573 install doc/vlc.1 %buildroot/%_mandir/man1
574 install doc/vlc-config.1 %buildroot/%_mandir/man1
575
576 # menu
577 mkdir -p %buildroot/%_menudir
578 cat > %buildroot/%_menudir/vlc << EOF
579 ?package(vlc): command="%_bindir/vlc" hotkey="V" needs="X11" longtitle="VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution" section="Multimedia/Video" title="VideoLAN Client" icon="vlc.png" hints="Video"
580 EOF
581 %if %with_gtk
582 cat > %buildroot/%_menudir/gvlc << EOF
583 ?package(gvlc): command="%_bindir/gvlc" needs="X11" longtitle="VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution" section="Multimedia/Video" title="Gtk VideoLAN Client" icon="gvlc.png" hints="Video"
584 EOF
585 %endif
586 %if %with_gnome
587 cat > %buildroot/%_menudir/gnome-vlc << EOF
588 ?package(gnome-vlc): command="%_bindir/gnome-vlc" needs="X11" longtitle="VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution" section="Multimedia/Video" title="Gnome VideoLAN Client" icon="gnome-vlc.png" hints="Video"
589 EOF
590 %endif
591 %if %with_qt
592 cat > %buildroot/%_menudir/qvlc << EOF
593 ?package(qvlc): command="%_bindir/qvlc" needs="X11" longtitle="VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution" section="Multimedia/Video" title="Qt VideoLAN Client" icon="qvlc.png" hints="Video"
594 EOF
595 %endif
596 %if %with_kde
597 cat > %buildroot/%_menudir/kvlc << EOF
598 ?package(kvlc): command="%_bindir/kvlc" needs="X11" longtitle="VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution" section="Multimedia/Video" title="Gnome VideoLAN Client" icon="kvlc.png" hints="Video"
599 EOF
600 %endif
601
602
603 # icons
604 %define pngdir %buildroot/%_datadir/vlc
605 mkdir -p %{buildroot}/{%{_miconsdir},%{_liconsdir}}
606 install -m 644 %pngdir/vlc16x16.png %buildroot/%_miconsdir/vlc.png
607 install -m 644 %pngdir/vlc32x32.png %buildroot/%_iconsdir/vlc.png
608 install -m 644 %pngdir/vlc48x48.png %buildroot/%_liconsdir/vlc.png
609 %if %with_gnome
610 install -m 644 %pngdir/gnome-vlc16x16.png %buildroot/%_miconsdir/gnome-vlc.png
611 install -m 644 %pngdir/gnome-vlc32x32.png %buildroot/%_iconsdir/gnome-vlc.png
612 install -m 644 %pngdir/gnome-vlc48x48.png %buildroot/%_liconsdir/gnome-vlc.png
613 %endif
614 %if %with_gtk
615 install -m 644 %pngdir/gvlc16x16.png %buildroot/%_miconsdir/gvlc.png
616 install -m 644 %pngdir/gvlc32x32.png %buildroot/%_iconsdir/gvlc.png
617 install -m 644 %pngdir/gvlc48x48.png %buildroot/%_liconsdir/gvlc.png
618 %endif
619 %if %with_kde
620 install -m 644 %pngdir/kvlc16x16.png %buildroot/%_miconsdir/kvlc.png
621 install -m 644 %pngdir/kvlc32x32.png %buildroot/%_iconsdir/kvlc.png
622 install -m 644 %pngdir/kvlc48x48.png %buildroot/%_liconsdir/kvlc.png
623 %endif
624 %if %with_qt
625 install -m 644 %pngdir/qvlc16x16.png %buildroot/%_miconsdir/qvlc.png
626 install -m 644 %pngdir/qvlc32x32.png %buildroot/%_iconsdir/qvlc.png
627 install -m 644 %pngdir/qvlc48x48.png %buildroot/%_liconsdir/qvlc.png
628 %endif
629
630 #rpm (>= 4.0.4-20mdk) now checks for installed (but unpackaged) files
631 rm -f %pngdir/*
632 #rm -f %buildroot/%_libdir/vlc/demux/libts_dvbpsi_plugin.so
633 #FIXME: why ?
634 #mv %buildroot/%_bindir/i586-mandrake-linux-gnu-vlc %buildroot/%_bindir/vlc
635 #mv %buildroot/%_bindir/i586-mandrake-linux-gnu-vlc-config %buildroot/%_bindir/vlc-config
636
637 %post
638 %update_menus
639 %postun
640 %update_menus
641
642 %clean
643 rm -fr %buildroot
644
645 %files -f %name.lang
646 %defattr(-,root,root)
647 %doc README COPYING
648 %_bindir/*vlc
649
650 %dir %_libdir/vlc
651
652 %dir %_libdir/vlc/access
653 %_libdir/vlc/access/libaccess_file_plugin.so
654 %_libdir/vlc/access/libaccess_http_plugin.so
655 %_libdir/vlc/access/libaccess_mms_plugin.so
656 %_libdir/vlc/access/libaccess_rtp_plugin.so
657 %_libdir/vlc/access/libaccess_udp_plugin.so
658 %if %with_dvdplay
659 %_libdir/vlc/access/libdvdplay_plugin.so
660 %endif
661 %_libdir/vlc/access/libdvd_plugin.so
662 %_libdir/vlc/access/libdvdread_plugin.so
663 %_libdir/vlc/access/libvcd_plugin.so
664
665 %dir %_libdir/vlc/access_output/
666 %_libdir/vlc/access_output/libaccess_output_dummy_plugin.so
667 %_libdir/vlc/access_output/libaccess_output_file_plugin.so
668 %_libdir/vlc/access_output/libaccess_output_udp_plugin.so
669
670 %dir %_libdir/vlc/audio_filter
671 %_libdir/vlc/audio_filter/liba52tofloat32_plugin.so
672 %_libdir/vlc/audio_filter/liba52tospdif_plugin.so
673 %_libdir/vlc/audio_filter/libfixed32tofloat32_plugin.so
674 %_libdir/vlc/audio_filter/libfixed32tos16_plugin.so
675 %_libdir/vlc/audio_filter/libfloat32tos16_plugin.so
676 %_libdir/vlc/audio_filter/libfloat32tos8_plugin.so
677 %_libdir/vlc/audio_filter/libfloat32tou16_plugin.so
678 %_libdir/vlc/audio_filter/libfloat32tou8_plugin.so
679 %_libdir/vlc/audio_filter/libheadphone_channel_mixer_plugin.so
680 %_libdir/vlc/audio_filter/liblinear_resampler_plugin.so
681 %_libdir/vlc/audio_filter/libs16tofloat32_plugin.so
682 %_libdir/vlc/audio_filter/libs16tofloat32swab_plugin.so
683 %_libdir/vlc/audio_filter/libs8tofloat32_plugin.so
684 %_libdir/vlc/audio_filter/libtrivial_channel_mixer_plugin.so
685 %_libdir/vlc/audio_filter/libtrivial_resampler_plugin.so
686 %_libdir/vlc/audio_filter/libu8tofixed32_plugin.so
687 %_libdir/vlc/audio_filter/libu8tofloat32_plugin.so
688 %_libdir/vlc/audio_filter/libugly_resampler_plugin.so
689
690 %dir %_libdir/vlc/audio_mixer
691 %_libdir/vlc/audio_mixer/libfloat32_mixer_plugin.so
692 %_libdir/vlc/audio_mixer/libspdif_mixer_plugin.so
693 %_libdir/vlc/audio_mixer/libtrivial_mixer_plugin.so
694
695 %dir %_libdir/vlc/audio_output
696 %_libdir/vlc/audio_output/libaout_file_plugin.so
697 %_libdir/vlc/audio_output/liboss_plugin.so
698
699 %dir %_libdir/vlc/codec
700 %_libdir/vlc/codec/libadpcm_plugin.so
701 %_libdir/vlc/codec/libaraw_plugin.so
702 %_libdir/vlc/codec/libcinepak_plugin.so
703 %_libdir/vlc/codec/libdownmix3dn_plugin.so
704 %_libdir/vlc/codec/libdownmixsse_plugin.so
705 %_libdir/vlc/codec/libidctclassic_plugin.so
706 %_libdir/vlc/codec/libidctmmxext_plugin.so
707 %_libdir/vlc/codec/libidctmmx_plugin.so
708 %_libdir/vlc/codec/libidct_plugin.so
709 %_libdir/vlc/codec/libimdct3dn_plugin.so
710 %_libdir/vlc/codec/libimdctsse_plugin.so
711 %_libdir/vlc/codec/liblpcm_plugin.so
712 %_libdir/vlc/codec/libmotionmmxext_plugin.so
713 %_libdir/vlc/codec/libmotionmmx_plugin.so
714 %_libdir/vlc/codec/libmotion_plugin.so
715 %_libdir/vlc/codec/libmpeg_audio_plugin.so
716 %_libdir/vlc/codec/libmpeg_video_plugin.so
717 %_libdir/vlc/codec/libspudec_plugin.so
718
719 %dir %_libdir/vlc/control
720 %_libdir/vlc/control/librc_plugin.so
721
722 %dir %_libdir/vlc/demux
723 %_libdir/vlc/demux/libaac_plugin.so
724 %_libdir/vlc/demux/libasf_plugin.so
725 %_libdir/vlc/demux/libaudio_plugin.so
726 %_libdir/vlc/demux/libavi_plugin.so
727 %_libdir/vlc/demux/libdemuxdump_plugin.so
728 %_libdir/vlc/demux/libdemuxsub_plugin.so
729 %_libdir/vlc/demux/libes_plugin.so
730 %_libdir/vlc/demux/libid3_plugin.so
731 %_libdir/vlc/demux/libm3u_plugin.so
732 %_libdir/vlc/demux/libmp4_plugin.so
733 %_libdir/vlc/demux/libmpeg_system_plugin.so
734 %_libdir/vlc/demux/libps_plugin.so
735 %_libdir/vlc/demux/libts_plugin.so
736 %_libdir/vlc/demux/libts_dvbpsi_plugin.so
737 %_libdir/vlc/demux/libwav_plugin.so
738
739 %dir %_libdir/vlc/misc
740 %_libdir/vlc/misc/libdummy_plugin.so
741 %_libdir/vlc/misc/libipv4_plugin.so
742 %_libdir/vlc/misc/libipv6_plugin.so
743 %_libdir/vlc/misc/liblogger_plugin.so
744 %_libdir/vlc/misc/libmemcpy3dn_plugin.so
745 %_libdir/vlc/misc/libmemcpymmxext_plugin.so
746 %_libdir/vlc/misc/libmemcpymmx_plugin.so
747 %_libdir/vlc/misc/libmemcpy_plugin.so
748 %_libdir/vlc/misc/libsap_plugin.so
749
750 %dir %_libdir/vlc/mux
751 %_libdir/vlc/mux/libmux_dummy_plugin.so
752 %_libdir/vlc/mux/libmux_ps_plugin.so
753 %_libdir/vlc/mux/libmux_ts_plugin.so
754
755 %dir %_libdir/vlc/packetizer
756 %_libdir/vlc/packetizer/libpacketizer_a52_plugin.so
757 %_libdir/vlc/packetizer/libpacketizer_copy_plugin.so
758 %_libdir/vlc/packetizer/libpacketizer_mpeg4video_plugin.so
759 %_libdir/vlc/packetizer/libpacketizer_mpegaudio_plugin.so
760 %_libdir/vlc/packetizer/libpacketizer_mpegvideo_plugin.so
761
762 %dir %_libdir/vlc/video_chroma
763 %_libdir/vlc/video_chroma/libi420_rgb_mmx_plugin.so
764 %_libdir/vlc/video_chroma/libi420_rgb_plugin.so
765 %_libdir/vlc/video_chroma/libi420_ymga_mmx_plugin.so
766 %_libdir/vlc/video_chroma/libi420_ymga_plugin.so
767 %_libdir/vlc/video_chroma/libi420_yuy2_mmx_plugin.so
768 %_libdir/vlc/video_chroma/libi420_yuy2_plugin.so
769 %_libdir/vlc/video_chroma/libi422_yuy2_mmx_plugin.so
770 %_libdir/vlc/video_chroma/libi422_yuy2_plugin.so
771
772 %dir %_libdir/vlc/video_filter
773 %_libdir/vlc/video_filter/libadjust_plugin.so
774 %_libdir/vlc/video_filter/libclone_plugin.so
775 %_libdir/vlc/video_filter/libcrop_plugin.so
776 %_libdir/vlc/video_filter/libdeinterlace_plugin.so
777 %_libdir/vlc/video_filter/libdistort_plugin.so
778 %_libdir/vlc/video_filter/libinvert_plugin.so
779 %_libdir/vlc/video_filter/libmotionblur_plugin.so
780 %_libdir/vlc/video_filter/libtransform_plugin.so
781 %_libdir/vlc/video_filter/libwall_plugin.so
782
783 %dir %_libdir/vlc/video_output
784 %_libdir/vlc/video_output/libfb_plugin.so
785 %_libdir/vlc/video_output/libx11_plugin.so
786 %_libdir/vlc/video_output/libxvideo_plugin.so
787
788 %dir %_libdir/vlc/visualization
789
790 %_mandir/man1/vlc.*
791 %_menudir/vlc
792 %_miconsdir/vlc.png
793 %_iconsdir/vlc.png
794 %_liconsdir/vlc.png
795
796 %files -n %libname-devel
797 %defattr(-,root,root)
798 %doc README
799 %dir %_includedir/vlc
800 %_includedir/vlc/*
801 %_libdir/*a
802 %_libdir/vlc/*a
803 %_bindir/*vlc-config
804 %_mandir/man1/vlc-config*
805
806 %if %with_mozilla
807 %files -n mozilla-plugin-vlc
808 %defattr(-,root,root)
809 %doc README
810 # FIXME: seems to be mozilla-version/plugin on Mandrake
811 #%dir %_libdir/mozilla
812 %_libdir/mozilla/*
813 %endif
814
815 # intf plugins
816 %if %with_gtk
817 %files -n gvlc
818 %defattr(-,root,root)
819 %doc README
820 %_libdir/vlc/misc/libgtk_main_plugin.so
821 %_libdir/vlc/gui/libgtk_plugin.so
822 %_bindir/gvlc
823 %_menudir/gvlc
824 %_miconsdir/gvlc.png
825 %_iconsdir/gvlc.png
826 %_liconsdir/gvlc.png
827 %post -n gvlc
828 %update_menus
829 %postun -n gvlc
830 %update_menus
831 %endif
832
833 %if %with_gnome
834 %files -n gnome-vlc
835 %defattr(-,root,root)
836 %doc README
837 %_libdir/vlc/misc/libgnome_main_plugin.so
838 %_libdir/vlc/gui/libgnome_plugin.so
839 %_bindir/gnome-vlc
840 %_menudir/gnome-vlc
841 %_miconsdir/gnome-vlc.png
842 %_iconsdir/gnome-vlc.png
843 %_liconsdir/gnome-vlc.png
844 %post   -n gnome-vlc
845 %update_menus
846 %postun -n gnome-vlc
847 %update_menus
848 %endif
849
850 %if %with_qt
851 %files -n qvlc
852 %defattr(-,root,root)
853 %doc README
854 %_libdir/vlc/gui/libqt_plugin.so
855 %_bindir/qvlc
856 %_menudir/qvlc
857 %_miconsdir/qvlc.png
858 %_iconsdir/qvlc.png
859 %_liconsdir/qvlc.png
860 %post   -n qvlc
861 %update_menus
862 %postun -n qvlc
863 %update_menus
864 %endif
865
866 %if %with_kde
867 %files -n kvlc
868 %doc README
869 %_libdir/vlc/gui/libkde_plugin.so
870 %_bindir/kvlc
871 %_menudir/kvlc
872 %_miconsdir/kvlc.png
873 %_iconsdir/kvlc.png
874 %_liconsdir/kvlc.png
875 %post   -n kvlc
876 %update_menus
877 %postun -n kvlc
878 %update_menus
879 %endif
880
881 %if %with_ncurses
882 %files plugin-ncurses
883 %defattr(-,root,root)
884 %doc README
885 %_libdir/vlc/gui/libncurses_plugin.so
886 %endif
887
888 %if %with_lirc
889 %files plugin-lirc
890 %defattr(-,root,root)
891 %doc README
892 %_libdir/vlc/control/liblirc_plugin.so
893 %endif
894
895 # video plugins
896 %if %with_sdl
897 %files plugin-sdl
898 %defattr(-,root,root)
899 %doc README
900 %_libdir/vlc/audio_output/libaout_sdl_plugin.so
901 %_libdir/vlc/video_output/libvout_sdl_plugin.so
902 %endif
903
904 %if %with_ggi
905 %files plugin-ggi
906 %defattr(-,root,root)
907 %doc README
908 %{_libdir}/vlc/video_output/libggi_plugin.so
909 %endif
910
911 %if %with_aa
912 %files plugin-aa
913 %defattr(-,root,root)
914 %doc README
915 %{_libdir}/vlc/video_output/libaa_plugin.so
916 %endif
917
918 %if %with_svgalib
919 %files plugin-svgalib
920 %defattr(-,root,root)
921 %doc README
922 %_libdir/vlc/video_output/libsvgalib_plugin.so
923 %endif
924
925 # visualization plugin
926 %if %with_xosd
927 %files plugin-xosd
928 %defattr(-,root,root)
929 %doc README
930 %_libdir/vlc/visualization/libxosd_plugin.so
931 %endif
932
933 # codec plugin
934 %if %with_mad
935 %files plugin-mad
936 %defattr(-,root,root)
937 %doc README
938 %_libdir/vlc/codec/libmad_plugin.so
939 %_libdir/vlc/demux/libid3tag_plugin.so
940 %endif
941
942 %if %with_ogg
943 %files plugin-ogg
944 %defattr(-,root,root)
945 %doc README
946 %_libdir/vlc/demux/libogg_plugin.so
947 %_libdir/vlc/codec/libvorbis_plugin.so
948 %endif
949
950 %if %with_dv
951 %files plugin-dv
952 %defattr(-,root,root)
953 %doc README
954 %_libdir/vlc/codec/libdv_plugin.so
955 %endif
956
957 %if %with_a52
958 %files plugin-a52
959 %defattr(-,root,root)
960 %doc README
961 %_libdir/vlc/codec/liba52_plugin.so
962 %endif
963
964 # input plugin
965 %if %with_dvb
966 %files plugin-dvb
967 %defattr(-,root,root)
968 %doc README
969 %_libdir/vlc/access/libsatellite_plugin.so
970 %endif
971
972 #audio plugins
973 %if %with_esd
974 %files plugin-esd
975 %defattr(-,root,root)
976 %doc README
977 %_libdir/vlc/audio_output/libesd_plugin.so
978 %endif
979
980 %if %with_arts
981 %files plugin-arts
982 %defattr(-,root,root)
983 %doc README
984 %_libdir/vlc/audio_output/libarts_plugin.so
985 %endif
986
987 %if %with_alsa
988 %files plugin-alsa
989 %defattr(-,root,root)
990 %doc README
991 %_libdir/vlc/audio_output/libalsa_plugin.so
992 %endif
993
994 %changelog
995 * Mon Jun 20 2002 Yves Duret <yduret@mandrakesoft.com> 0.4.2-1mdk
996 - new upstream release
997
998 * Mon Jun 3 2002 Yves Duret <yduret@mandrakesoft.com> 0.4.1-1mdk
999 - new upstream release
1000
1001 * Thu May 23 2002 Yves Duret <yduret@mandrakesoft.com> 0.4.0-1mdk
1002 - version 0.4.0 with MPEG4 (DivX) support thx ffmpeg.
1003   thus s/MPEG, MPEG2 and DVD/multimedia/g
1004 - sync %%description with debian ones.
1005 - vlc now requires a vlc-gui (gtk, gnome or qt).
1006 - removed gcc3.1 patches since merged upstream.
1007
1008 * Mon May 13 2002 Yves Duret <yduret@mandrakesoft.com> 0.3.1-4mdk
1009 - removed xmga plugin (currently broken).
1010 - manual rebuild in gcc3.1 environment aka added Patch0 & Patch1
1011 - various summary/description changes.
1012
1013 * Fri May 03 2002 Yves Duret <yduret@mandrakesoft.com> 0.3.1-3mdk
1014 - added vlc-lirc intf plugin rpm.
1015
1016 * Tue Apr 30 2002 Yves Duret <yduret@mandrakesoft.com> 0.3.1-2mdk
1017 - rebuild against libalsa2 (vlc-sdl)
1018
1019 * Fri Apr 19 2002 Yves Duret <yduret@mandrakesoft.com> 0.3.1-1mdk
1020 - version 0.3.1.
1021 - removed patch0 merged upstream.
1022 - removed old %%ifarch ppc
1023 - added missing libmad-devel buldrequires
1024
1025 * Wed Apr 17 2002 Yves Duret <yduret@mandrakesoft.com> 0.3.0-4mdk
1026 - added liba52 support (buildrequires).
1027 - added vlc-alsa audio plugin.
1028 - mad is a codec (audio) plugin. corrected description and summary.
1029
1030 * Wed Apr 10 2002 Yves Duret <yduret@mandrakesoft.com> 0.3.0-3mdk
1031 - added patch0 from CVS: fix crashing GTK popup menus thx Michal Bukovjan <bukovjan@mbox.dkm.cz>
1032
1033 * Wed Apr 10 2002 Yves Duret <yduret@mandrakesoft.com> 0.3.0-2mdk
1034 - added vlc-arts rpm plugin thx blindauer Emmanuel <manu@agat.net>
1035 - better summary for plugin
1036 - add packager tag to myself
1037
1038 * Sun Apr 07 2002 Yves Duret <yduret@mandrakesoft.com> 0.3.0-1mdk
1039 - version 0.3.0
1040 - added aa (Asci Art) plugin in vlc-aa rpm
1041 - merged with sam's one:
1042   * using his plugins list into %%files
1043   * removed libdvdcss from the whole tarball.
1044   * removed the workaround for vlc's bad /dev/dsp detection.
1045 - few spell corrections in all %%description
1046 - added buildrequires on SDL-devel
1047
1048 * Tue Mar 05 2002 Yves Duret <yduret@mandrakesoft.com> 0.2.93-0.1mdk
1049 - new cvs snapshot
1050 - fix requires
1051
1052 * Mon Mar 04 2002 Yves Duret <yduret@mandrakesoft.com> 0.2.92-5mdk
1053 - cvs snapshot
1054
1055 * Sat Jan 26 2002 Yves Duret <yduret@mandrakesoft.com> 0.2.92-4mdk
1056 - mad plugin in vlc-mad rpm
1057
1058 * Mon Jan 21 2002 Yves Duret <yduret@mandrakesoft.com> 0.2.92-3mdk
1059 - synced with main cvs specfile wich "fixed a few minor inaccuracies"
1060
1061 * Thu Jan 17 2002 Yves Duret <yduret@mandrakesoft.com> 0.2.92-2mdk
1062 - readded libdvdcss rpm in specfile. use %%define css 1 with correct sources
1063   to build libdvdcss rpm.
1064
1065 * Wed Jan 09 2002 Yves Duret <yduret@mandrakesoft.com> 0.2.92-1mdk
1066 - version 0.2.92
1067 - %%makeinstall_std
1068 - splitted again, added vlc-sdl vlc-esd vlc-ggi
1069 - bring back some missing plugins
1070 - fixed buildrequires
1071 - added menu entries and icons (from cvs)
1072
1073 * Tue Oct 23 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.83-2mdk
1074 - rebuild against libpng3
1075 - added some doc for sir rpmlint
1076 - #5583: option -g
1077
1078 * Thu Aug 23 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.83-1mdk
1079 - version 0.2.83 : 
1080   * Activated subtitles in overlay mode (far from perfect, but this
1081     was an often requested feature).
1082
1083 * Fri Aug 10 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.82-1mdk
1084 - version 0.2.82
1085
1086 * Mon Jul 30 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.81-1mdk
1087 - version 0.2.81
1088 - added vlc-ncurses
1089
1090 * Wed Jun 20 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.81-0.20010619-1mdk
1091 - cvs snapshot
1092 - added libdvdcss
1093
1094 * Wed Jun 13 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.80-2mdk
1095 - fix build on ppc (c) dadou
1096
1097 * Mon Jun 11 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.80-1mdk
1098 - version 0.2.80 : bug fixes and bug fixes and bug fixes and small
1099   improvements of the gtk interface.
1100 - corrected Summary in vlc-qt
1101
1102 * Wed May 23 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.73-2mdk
1103 - added qt2 plugin (vlc-qt)
1104
1105 * Wed May 16 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.73-1mdk
1106 - version 0.2.73
1107 - you can now get decss threw a plugin
1108 - rewritte srcipt to build vlc (decss plugin)
1109 - rebuild with SDL 1.2
1110
1111 * Thu Apr 26 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.72-2mdk
1112 - true 0.2.72
1113
1114 * Mon Apr 16 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.72-1mdk
1115 - version 0.2.72
1116 - package split into vlc, vlc-gnome, vlc-gtk
1117
1118 * Fri Apr 13 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.71-1mdk
1119 - version 0.2.71 :
1120   * Fixed segfaults when compiled with gcc 3.0pre and versions of gcc
1121     shipped with the latest RedHat distributions.                    
1122   * Fixed the BeOS CSS decryption.
1123   * Fixed a few issues in IFO parsing.
1124   * Fixed XVideo video output.
1125   * Updated icons under Linux, BeOS, MacOS X.
1126
1127 * Wed Apr 11 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.70-1mdk
1128 - version 0.2.70
1129
1130 * Thu Mar 22 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.63-1mdk
1131 - version 0.2.63 : Bugfixes, bugfixes, and bugfixes again, a Gtk+ 
1132   interface for the Gnome-impaired, an even better DVD support
1133
1134 * Fri Feb 16 2001 Yves Duret <yduret@mandrakesoft.com> 0.2.61-1mdk
1135 - new version for all the DVD fans (add MPEG1 support, direct DVD support, 
1136   DVD decryption, arbitrary, seeking in the stream, pause, fast forward 
1137   and slow motion, hardware YUV acceleration enhanced CSS support and a few 
1138   new interface features including drag'n'drop.
1139 - first *real* public release (now under the GPL)
1140
1141 * Sat Jan 06 2001 David BAUDENS <baudens@mandrakesoft.com> 0.1.99i-2mdk
1142 - Fix build and use right optimizations on PPC
1143 - Enable SDL support
1144 - Spec clean up
1145
1146 * Fri Jan  5 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 0.1.99i-1mdk
1147 - 0.1.99i, rebuild
1148
1149 * Fri Aug 25 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.1.99h-1mdk
1150 - 0.1.99h
1151
1152 * Mon Jul 10 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.1.99c-1mdk
1153 - first Mandrake package with help of Sam