vlc.spec.mdk 43.1 KB
Newer Older
1
%define name 		vlc
2 3 4 5
%define version 	0.6.0
%define rel		5
%define ffcvs		20030622
%define mpegcvs		20030612
Yves Duret's avatar
Yves Duret committed
6

7
%define libmajor	0
8

9
%define cvs     	0
10
%if %{cvs}
11 12
%define cvsrel		1
%define cvsdate 	20030203
Yves Duret's avatar
Yves Duret committed
13 14
%define release		0.%{cvsdate}.%{cvsrel}mdk
%define cvs_name 	%{name}-snapshot-%cvsdate
15
%else
Yves Duret's avatar
Yves Duret committed
16 17 18
%define release 	%{rel}mdk
%endif

19
%define with_dvdplay 1
Yves Duret's avatar
Yves Duret committed
20

Yves Duret's avatar
Yves Duret committed
21
%define with_mozilla 1
Yves Duret's avatar
Yves Duret committed
22 23 24
%define with_gtk 1
%define with_gnome 1
%define with_qt 0
25
%define with_kde 1
Yves Duret's avatar
Yves Duret committed
26 27
%define with_ncurses 1
%define with_lirc 1
28
%define with_wx 1
Yves Duret's avatar
Yves Duret committed
29 30 31 32 33

%define with_aa 1
%define with_sdl 1
%define with_ggi 1
%define with_svgalib 0
Yves Duret's avatar
Yves Duret committed
34
%define with_xosd 1
Yves Duret's avatar
Yves Duret committed
35 36 37

%define with_mad 1
%define with_ogg 1
38 39
%define with_flac 1
%define with_mkv 1
Yves Duret's avatar
Yves Duret committed
40
%define with_a52 1
41 42
%define with_dv 1
%define with_dvb 1
43 44
%define with_ffmpeg 1
%define with_mpeg2dec 1
Yves Duret's avatar
Yves Duret committed
45 46 47 48 49

%define with_esd 1
%define with_arts 1
%define with_alsa 1

Yves Duret's avatar
Yves Duret committed
50
%define with_slp 1
51
%define with_tar 1
Yves Duret's avatar
Yves Duret committed
52

53 54 55 56 57
%define buildfor_rh80	0
%define buildfor_mdk82	0
%define buildfor_mdk90	0
%define buildfor_mdk91  %(awk '{print ($4 == "9.1")}' %{_sysconfdir}/mandrake-release)
%define buildfor_mdk92  %(awk '{print ($4 == "9.2")}' %{_sysconfdir}/mandrake-release)
Yves Duret's avatar
Yves Duret committed
58

Yves Duret's avatar
Yves Duret committed
59 60 61 62 63 64 65 66
# new macros
%if %buildfor_mdk82 || %buildfor_mdk90 || %buildfor_rh80
%define libname		lib%name%libmajor
%else
%define libname		%mklibname %name %libmajor
%endif

%if %buildfor_rh80
Yves Duret's avatar
Yves Duret committed
67
%define release %rel
68
# some mdk macros that do not exist in rh
69 70
%define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix --libdir=%_libdir
%define make %__make %_smp_mflags
Yves Duret's avatar
Yves Duret committed
71
%define makeinstall_std %__make DESTDIR="$RPM_BUILD_ROOT" install
Yves Duret's avatar
Yves Duret committed
72
# adjust define for Redhat.
73 74
%endif

Yves Duret's avatar
Yves Duret committed
75
# without
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
%{?_without_mozilla:	%{expand: %%global with_mozilla 0}}
%{?_without_gtk:	%{expand: %%global with_gtk 0}}
%{?_without_gnome:	%{expand: %%global with_gnome 0}}
%{?_without_qt:		%{expand: %%global with_qt 0}}
%{?_without_kde:	%{expand: %%global with_kde 0}}
%{?_without_ncurses:	%{expand: %%global with_ncurses 0}}
%{?_without_lirc:	%{expand: %%global with_lirc 0}}
%{?_without_wx:		%{expand: %%global with_wx 0}}

%{?_without_aa:   	%{expand: %%global with_aa 0}}
%{?_without_sdl:   	%{expand: %%global with_sdl 0}}
%{?_without_ggi:   	%{expand: %%global with_ggi 0}}
%{?_without_svgalib:	%{expand: %%global with_svgalib 0}}
%{?_without_xosd:	%{expand: %%global with_xosd 0}}

%{?_without_mad:	%{expand: %%global with_mad 0}}
%{?_without_ogg:	%{expand: %%global with_ogg 0}}
%{?_without_flac:	%{expand: %%global with_flac 0}}
%{?_without_mkv:	%{expand: %%global with_mkv 0}}
%{?_without_a52:	%{expand: %%global with_a52 0}}
%{?_without_dv:		%{expand: %%global with_dv 0}}
%{?_without_dvb:	%{expand: %%global with_dvb 0}}

%{?_without_esd:	%{expand: %%global with_esd 0}}
%{?_without_arts:	%{expand: %%global with_arts 0}}
%{?_without_alsa:	%{expand: %%global with_alsa 0}}

%{?_without_slp:	%{expand: %%global with_slp 0}}
%{?_without_tar:	%{expand: %%global with_tar 0}}
Yves Duret's avatar
Yves Duret committed
105

Yves Duret's avatar
Yves Duret committed
106
# with
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
%{?_with_mozilla:    	%{expand: %%global with_mozilla 1}}
%{?_with_gtk:		%{expand: %%global with_gtk 1}}
%{?_with_gnome:		%{expand: %%global with_gnome 1}}
%{?_with_qt:		%{expand: %%global with_qt 1}}
%{?_with_kde:		%{expand: %%global with_kde 1}}
%{?_with_ncurses:    	%{expand: %%global with_ncurses 1}}
%{?_with_lirc:       	%{expand: %%global with_lirc 1}}
%{?_with_wx:		%{expand: %%global with_wx 1}}

%{?_with_aa:         	%{expand: %%global with_aa 1}}
%{?_with_sdl:        	%{expand: %%global with_sdl 1}}
%{?_with_ggi:        	%{expand: %%global with_ggi 1}}
%{?_with_svgalib:    	%{expand: %%global with_svgalib 1}}
%{?_with_xosd:       	%{expand: %%global with_xosd 1}}

%{?_with_mad:		%{expand: %%global with_mad 1}}
%{?_with_ogg:        	%{expand: %%global with_ogg 1}}
%{?_with_flac:        	%{expand: %%global with_flac 1}}
%{?_with_mkv:        	%{expand: %%global with_mkv 1}}
%{?_with_a52:        	%{expand: %%global with_a52 1}}
%{?_with_dv:         	%{expand: %%global with_dv 1}}
%{?_with_dvb:        	%{expand: %%global with_dvb 1}}

%{?_with_esd:        	%{expand: %%global with_esd 1}}
%{?_with_arts:       	%{expand: %%global with_arts 1}}
%{?_with_alsa:       	%{expand: %%global with_alsa 1}}

%{?_with_slp:		%{expand: %%global with_slp 1}}
%{?_with_tar:		%{expand: %%global with_tar 1}}
136

137
Summary:	VLC is a free MPEG, MPEG2, DVD and DivX player.
138 139 140 141
Name:		%{name}
Version:	%{version}
Release:	%{release}

142
%if %{cvs}
143
Source0:	http://www.videolan.org/pub/videolan/vlc/snapshots/%{cvs_name}.tar.bz2
144
%else
145
Source0:	http://www.videolan.org/packages/%{version}/%{name}-%{version}.tar.bz2
146
%endif
147 148 149 150
Source1:	http://www.videolan.org/pub/videolan/vlc/0.6.0/contrib/ffmpeg-%ffcvs.tar.bz2
Source2:	http://www.videolan.org/pub/videolan/vlc/0.6.0/contrib/mpeg2dec-%mpegcvs.tar.bz2	
#gw remove NP_GetValue, as it was already defined in the mozilla headers
Patch:		vlc-0.6.0-mozilla-conflict.patch.bz2
151 152
License:	GPL
Group:		Video
153 154
URL:		http://www.videolan.org/
Requires:	vlc-gui
Alexis de Lattre's avatar
Alexis de Lattre committed
155
# vlc-mad needed by ffmpeg builtin (i want MPEG4 support out of box)
Yves Duret's avatar
Yves Duret committed
156
Requires:	vlc-plugin-mad
157
# DVD working out of box.
Yves Duret's avatar
Yves Duret committed
158
Requires:	vlc-plugin-a52
159

160
BuildRoot:	%_tmppath/%name-%version-%release-root
161 162 163 164
%if %with_tar
BuildRequires:  libtar-devel
%endif
BuildRequires:  freetype2-devel
Yves Duret's avatar
Yves Duret committed
165
%if %with_mozilla
166
Buildrequires:	mozilla-devel >= 1.3
Yves Duret's avatar
Yves Duret committed
167 168 169 170 171 172 173 174
%endif
%if %with_gtk
Buildrequires:	libgtk+1.2-devel
%endif
%if %with_gnome
Buildrequires:	gnome-libs-devel
%endif
%if %with_qt
175
Buildrequires:	libqt3-devel
Yves Duret's avatar
Yves Duret committed
176 177
%endif
%if %with_kde
178
Buildrequires:	kdelibs-devel
Yves Duret's avatar
Yves Duret committed
179 180 181 182
%endif
%if %with_ncurses
Buildrequires:	libncurses5-devel
%if %with_wx
183 184
Buildrequires:	wxGTK-devel >= 2.4
%endif
Yves Duret's avatar
Yves Duret committed
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
%endif
%if %with_lirc
Buildrequires:	liblirc-devel
%endif
%if %with_aa
Buildrequires:	aalib-devel
%endif
%if %with_sdl
Buildrequires:	SDL-devel
%endif
%if %with_ggi
Buildrequires:	libggi-devel
%endif
%if %with_svgalib
Buildrequires:	svgalib-devel
%endif
%if %with_xosd
202
Buildrequires:	libxosd-devel
Yves Duret's avatar
Yves Duret committed
203 204
%endif
%if %with_mad
205 206 207
%if %buildfor_mdk92
BuildRequires:  libid3tag-devel
%endif
Yves Duret's avatar
Yves Duret committed
208 209 210 211 212 213
Buildrequires:	libmad-devel
%endif
%if %with_ogg
Buildrequires:	libvorbis-devel
Buildrequires:	libogg-devel
%endif
214 215 216 217 218 219
%if %with_flac
Buildrequires:	libflac-devel
%endif
%if %with_mkv
Buildrequires:	libmatroska-devel >= 0.4.4-3mdk
%endif
Yves Duret's avatar
Yves Duret committed
220 221 222 223 224
%if %with_dv
Buildrequires:	libdv2-devel
%endif

%if %with_a52
Yves Duret's avatar
Yves Duret committed
225
Buildrequires:	liba52dec-devel
Yves Duret's avatar
Yves Duret committed
226 227 228
%endif

%if %with_ffmpeg
229 230
#gw we use included cvs version
#Buildrequires:	libffmpeg-devel
Yves Duret's avatar
Yves Duret committed
231
%endif
232 233 234 235

%if %with_mpeg2dec
#gw we use the included cvs version
#Buildrequires:	libmpeg2dec-devel >= 0.3.2
Yves Duret's avatar
Yves Duret committed
236
%endif
Yves Duret's avatar
Yves Duret committed
237 238

%if %with_alsa
239
Buildrequires:	libalsa2-devel
Yves Duret's avatar
Yves Duret committed
240 241
%endif
%if %with_esd
242
Buildrequires:	libesound0-devel
Yves Duret's avatar
Yves Duret committed
243 244 245 246
%endif
%if %with_arts
Buildrequires:	libarts-devel
%endif
247

Yves Duret's avatar
Yves Duret committed
248 249 250 251
%if %with_slp
Buildrequires:	libopenslp-devel
%endif

252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
%if %with_dvdplay
BuildRequires: libdvdplay-devel
%endif


%if %with_dvb
BuildRequires: libdvbpsi-devel
%if %buildfor_mdk92
# gw the cooker kernel has the new incompatible DVB api
BuildRequires: kernel-multimedia-source
%else
BuildRequires: kernel-source
%endif
%endif

Yves Duret's avatar
Yves Duret committed
267

268
%description
Alexis de Lattre's avatar
Alexis de Lattre committed
269 270 271
VideoLAN is an OpenSource streaming solution for every OS developed by
students from the Ecole Centrale Paris and developers from all over the
World.
272 273 274 275
VLC (VideoLAN Client) is a media player that can play MPEG1, MPEG2 and
MPEG4 (aka DivX) files, DVDs, VCDs, SVCDs, from a satellite card, from
a stream sent by VLS (VideoLAN Server), from another VLC, or from a Web
server.
Alexis de Lattre's avatar
Alexis de Lattre committed
276 277
You may install vlc-gnome or vlc-gtk to have a nice graphical interface.
This package contains no CSS unscrambling functionality for DVDs ;
278
you need the libdvdcss library available from
279
http://www.videolan.org/libdvdcss/ or http://plf.zarb.org/
280

281 282
#general packages
%package -n %libname-devel
283
Summary: Development files for the VLC media player
284 285
Group: Development/C
Requires: %name = %version-%release
286 287
Provides: %name-devel = %version-%release
Provides: lib%name-devel = %version-%release
288
%description -n %libname-devel
289
Development files for the VLC media player
290
This package contains headers and a static library required to build plugins
291
for the VLC media player, or standalone applications using features from VLC.
292 293 294 295 296

%package -n mozilla-plugin-vlc
Summary: A multimedia plugin for Mozilla, based on vlc
group: Video
Requires: %name = %version-%release
297 298 299 300 301 302
%if %buildfor_mdk91
%define moz_ver 1.3.1
%else
%define moz_ver 1.4b
%endif
##%{e###xpand: %%define mozve %(rpm -q --queryformat "%{version}\n" mozilla)}
Yves Duret's avatar
Yves Duret committed
303 304
%{expand: %%define mozve %(rpm -q mozilla| sed 's/mozilla-\([0-9].*\)-.*$/\1/')}
Requires: mozilla = %mozve
305 306 307 308 309 310 311
%description -n mozilla-plugin-vlc
This plugin adds support for MPEG, MPEG2, DVD and DivX to your Mozilla
browser. The decoding process is done by vlc and the output window is
embedded in a webpage or directly in the browser window. There is also
support for fullscreen display.


312
# intf plugins
313
%package -n gvlc
314
Summary: Gtk plugin for the VLC media player
315 316
Group: Video
Requires: %{name} = %{version}
317
Provides: vlc-gui
318
%description -n gvlc
319
This plugin adds a Gtk+ interface to the VLC media player. To
320
activate it, use the `--intf gtk' flag or run the `gvlc' program.
321

322
%package -n gnome-vlc
323
Summary: Gnome plugin for the VLC media player
324 325
Group: Video
Requires: %{name} = %{version}
326 327 328
Provides: vlc-gui, vlc-gnome
Obsoletes: vlc-gnome
%description -n gnome-vlc
329
This plugin adds a Gnome interface to the VLC media player. To
330
activate it, use the `--intf gnome' flag or run the `gnome-vlc' program.
331

332
%package -n qvlc
333
Summary: QT plugin for the VLC media player
334 335
Group: Video
Requires: %{name} = %{version}
336 337 338
Provides: vlc-gui, vlc-qt
Obsoletes: vlc-qt
%description -n qvlc
339 340
This plugin adds a Qt interface to the VLC media player. To activate it,
use the `--intf qt' flag or run the `qvlc' program.
341

342
%package -n kvlc
343
Summary: KDE frontend for the VLC media player
344 345 346 347
Group: Video
Requires: %{name} = %{version}
Provides: vlc-gui
%description -n kvlc
348
This plugin adds a KDE interface to the VLC media player. To
349 350 351
activate it, use the `--intf kde' flag or run the `kvlc' program.

%package plugin-ncurses
352
Summary: Ncurses console-based plugin for the VLC media player
353 354
Group: Video
Requires: %{name} = %{version}
355
%description plugin-ncurses
356
This plugin adds a ncurses interface to the VLC media player. To
357 358
activate it, use the `--intf ncurses' flag.

359
%package plugin-lirc
360
Summary: Lirc plugin for the VLC media player
361 362
Group: Video
Requires: %{name} = %{version}
363 364 365
Obsoletes: vlc-lirc
Provides: vlc-lirc
%description plugin-lirc
366 367
This plugin is an infrared lirc interface for the VLC media player. To
activate it, use the `--extraintf lirc' flag.
368

369
%package -n wxvlc
370
Summary: WxWindow plugin for the VLC media player
371 372 373 374
Group: Video
Requires: %{name} = %{version}
Obsoletes: vlc-lirc
Provides: vlc-lirc
375
Provides: vlc-gui
376
%description -n wxvlc
377
This plugin adds a wxWindow interface to the VLC media player. To
378 379 380
activate it, use the `--intf wxwin' flag or run the `wxvlc' program.


381
#
382
# video plugins
383
%package plugin-aa
384
Summary: ASCII art video plugin for the VLC media player
385 386
Group: Video
Requires: %{name} = %{version}
387 388 389
Obsoletes: vlc-aa
Provides: vlc-aa
%description plugin-aa
390 391 392
This is an ASCII art video output plugin for the VLC media playe. To
activate it, use the `--vout aa' flag or select the `aa' video output
plugin from the preferences menu.
393

394

395
%package plugin-sdl
396
Summary: Simple DirectMedia Layer video plugin for the VLC media player
397 398
Group: Video
Requires: %{name} = %{version}
399 400 401
Obsoletes: vlc-sdl
Provides: vlc-sdl
%description plugin-sdl
402
This plugin adds support for the Simple DirectMedia Layer library to
403 404 405
the VLC media player. To activate it, use the `--vout sdl' or
`--aout sdl' flags or select the `sdl' video or audio output plugin
from the preferences menu.
406

407
%package plugin-ggi
408
Summary: GGI video plugin for the VLC media player
409 410
Group: Video
Requires: %{name} = %{version}
411 412 413
Obsoletes: vlc-ggi
Provides: vlc-ggi
%description plugin-ggi
414 415 416
This is a GGI plugin for the VLC media player. To activate it, use
the `--vout ggi' flag or select the `ggi' video output plugin from
the preferences menu.
417 418

%package plugin-svgalib
419
Summary: SVGAlib video plugin for the VLC media player
420 421 422
Group: Video
Requires: %{name} = %{version}
%description plugin-svgalib
423
This plugin adds support for SVGAlib to the VLC media player. To
424 425 426 427 428 429 430 431
activate it, use the `--vout svgalib' flag or select the `svgalib' video
output plugin from the preferences menu. Note that you will need root
permissions to use SVGAlib.


#
# visualization plugins
%package plugin-xosd
432
Summary: X On-Screen Display plugin for the VLC media player
433 434 435
Group: Video
Requires: %{name} = %{version}
%description plugin-xosd
436 437 438
This is an On-Screen Display plugin for the VLC media player. To activate
it, use the `--extraintf xosd' flag or select the `xosd' interface plugin
from the preferences menu.
439

440
# codec plugins
441
%package plugin-mad
442
Summary: MAD audio codec plugin for the VLC media player
443 444
Group: Video
Requires: %{name} = %{version}
445 446 447
Obsoletes: vlc-mad
Provides: vlc-mad
%description plugin-mad
448
This plugin adds support for libmad, the MPEG audio decoder library,
449
to the VLC media player. MAD is 100% fixed-point based. To activate
450 451
this plugin, use the `--mpeg_adec mad' flag or select the `mad' MPEG
decoder from the preferences menu.
452

453
%package plugin-ogg
454
Summary: Ogg demuxer and Vorbis codec plugin for the VLC media player
455 456 457 458
Group: Video
Requires: %{name} = %{version}
%description plugin-ogg
These plugins add support for the Ogg bitstream format and the Ogg Vorbis
459
compressed audio format to the VLC media player. They are autodetected.
460

461 462 463 464 465 466 467 468
%package plugin-flac
Summary: Flac codec plugin for the VLC media player
Group: Video
Requires: %{name} = %{version}
%description plugin-flac
These plugins add support for the FLAC compressed audio format to the
VLC media player.

469
%package plugin-a52
470
Summary: A-52 (AC-3) codec plugin for the VLC media player
471 472 473 474
Group: Video
Requires: %{name} = %{version}
%description plugin-a52
This plugin adds support for the ATSC A-52 (aka. AC-3) audio format to
475
the VLC media player. The plugin is autodetected.
476 477

%package plugin-dv
478
Summary: DV codec plugin for the VLC media player
479 480 481
Group: Video
Requires: %{name} = %{version}
%description plugin-dv
482 483
This plugin adds support for the DV video format to the VLC media player.
The plugin is autodetected.
484 485 486 487

#
# input plugins
%package plugin-dvb
488
Summary: DVB input plugin for the VLC media player
489 490 491
Group: Video
Requires: %{name} = %{version}
%description plugin-dvb
492
This plugin adds support for DVB cards to the VLC media player. Note
493 494 495
that your card needs to be supported by your kernel before vlc can use it.

#
496
# audio plugins
497
%package plugin-esd
498
Summary: Enlightened Sound Daemon audio plugin for the VLC media player
499 500
Group: Video
Requires: %{name} = %{version}
501 502 503
Obsoletes: vlc-esd
Provides: vlc-esd
%description plugin-esd
504 505 506
This plugin adds support for the Enlightened Sound Daemon to the VLC
media player. To activate it, use the `--aout esd' flag or select the
`esd' audio output plugin from the preferences menu.
507

508
%package plugin-arts
509
Summary: Arts audio plugin for the VLC media player
510 511
Group: Video
Requires: %{name} = %{version}
512 513 514
Obsoletes: vlc-arts
Provides: vlc-arts
%description plugin-arts
515 516 517
This plugin adds support for the aRts Sound System to the VLC media
player. To activate it, use the `--aout arts' flag or select the `arts'
audio output plugin from the preferences menu.
518

519
%package plugin-alsa
520
Summary: Advanced Linux Sound Architecture audio plugin for the VLC media player
521 522
Group: Video
Requires: %{name} = %{version}
523 524 525
Obsoletes: vlc-alsa
Provides: vlc-alsa
%description plugin-alsa
526
This plugin adds support for the Advanced Linux Sound Architecture to
527 528
the VLC media player. To activate it, use the `--aout alsa' flag or
select the `alsa' audio output plugin from the preferences menu.
529

530

Yves Duret's avatar
Yves Duret committed
531
%package plugin-slp
532
Summary: Service Location Protocol acces plugin for the VLC media player
Yves Duret's avatar
Yves Duret committed
533 534 535 536
Group: Video
Requires: %{name} = %{version}
%description plugin-slp
This plugin adds support for the Service Location Protocol to
537
the VLC media player.
Yves Duret's avatar
Yves Duret committed
538 539


540 541
%prep
%if %{cvs}
542
%setup -q -n %{cvs_name} -a 1 -a 2
543
%else
544
%setup -q -a 1 -a 2
545
%endif
546 547
%patch -p1
rm -rf doc/skins/curve_maker/CVS
548

549
%build
550 551 552 553
cd mpeg2dec-%mpegcvs
%configure2_5x --disable-sdl --without-x
%make
cd ..
554
# yves 0.4.0-1mdk
555
# ffmpeg: static linking cause no official ffmpeg release with a stable ABI
Yves Duret's avatar
Yves Duret committed
556
# ffmpeg:no plugin posible on ia64 due to the static linking (can not put .a in a .so)
557 558 559 560
cd ffmpeg-%ffcvs
./configure --libdir=%_libdir
%make
cd ..
Yves Duret's avatar
Yves Duret committed
561
export XPIDL=/usr/lib/mozilla-%moz_ver/xpidl
562
perl -pi -e  's#-I/usr/share/idl/mozilla#-I/usr/share/idl/mozilla-%{moz_ver}#' Makefile.in
563 564 565
export QTDIR=%{_libdir}/qt3
# mandrake kernel specific
export CPPFLAGS="${CPPFLAGS:--I/usr/src/linux/3rdparty/mod_dvb/include}"
566 567 568 569
# gw flags for the mozilla build 
export CPPFLAGS="$CPPFLAGS -DOJI -DMOZ_X11"
# add missing ebml include dir
export CPPFLAGS="$CPPFLAGS -I/usr/include/ebml"
Yves Duret's avatar
Yves Duret committed
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632
# NO empty line or comments for the configure --switch or it won't work.
%configure2_5x  --enable-release \
	--enable-dvd --without-dvdcss \
%if %with_dvdplay
	--enable-dvdplay \
%else
	--disable-dvdplay \
%endif
%if %with_mozilla
	--enable-mozilla \
%else
	--disable-mozilla \
%endif
%if %with_gtk
	--enable-gtk \
%else
	--disable-gtk \
%endif
%if %with_gnome
	--enable-gnome \
%else
	--disable-gnome \
%endif
%if %with_qt
	--enable-qt \
%endif
%if %with_kde
	--enable-kde \
%endif
%if %with_ncurses
	--enable-ncurses \
%endif
%if %with_lirc
	--enable-lirc \
%endif
%if %with_wx
	--enable-wxwindows \
%else 
	--disable-wxwindows \
%endif
	--enable-x11 --enable-xvideo \
	--enable-fb --disable-mga \
%if %with_aa
	--enable-aa \
%endif
%if %with_sdl
	--enable-sdl \
%endif
%if %with_ggi
	--enable-ggi \
%endif
%if %with_svgalib
        --enable-svgalib \
%endif
%if %with_xosd
	--enable-xosd \
%else
	--disable-xosd \
%endif
%if %with_mad
        --enable-mad \
%endif  
%if %with_ffmpeg
633
        --enable-ffmpeg --with-ffmpeg-tree=ffmpeg-%ffcvs \
Yves Duret's avatar
Yves Duret committed
634 635 636 637 638 639 640 641 642 643
%else
        --disable-ffmpeg \
%endif
%if %with_ogg
	--enable-vorbis \
	--enable-ogg \
%else
	--disable-vorbis \
	--disable-ogg \
%endif
644 645 646 647 648 649 650 651 652 653
%if %with_flac
	--enable-flac \
%else
	--disable-flac \
%endif
%if %with_mkv
	--enable-mkv \
%else
	--disable-mkv \
%endif	
654 655 656 657 658
%if %with_dv
	--enable-dv \
%else
	--disable-dv \
%endif
Yves Duret's avatar
Yves Duret committed
659 660 661 662 663
%if %with_dvb
	--enable-dvb  --enable-dvbpsi --enable-satellite \
%else
	--disable-dvb  --disable-dvbpsi --disable-satellite \
%endif
Yves Duret's avatar
Yves Duret committed
664 665 666 667 668 669 670 671 672
%if %with_esd
	--enable-esd \
%endif
%if %with_alsa
	--enable-alsa \
%endif
%if %with_arts
	--enable-arts \
%endif
673 674 675 676 677
%if %with_mpeg2dec
	--enable-libmpeg2 --with-libmpeg2-tree=mpeg2dec-%mpegcvs \
%else
~	--disable-libmpeg2 \
%endif
Yves Duret's avatar
Yves Duret committed
678

679
%make
680

681
%install
682
rm -rf %buildroot
683
%makeinstall_std
684
%find_lang %name
Yves Duret's avatar
Yves Duret committed
685 686 687
install -d %buildroot/%_mandir/man1
install doc/vlc.1 %buildroot/%_mandir/man1
install doc/vlc-config.1 %buildroot/%_mandir/man1
688

689
# menu
Yves Duret's avatar
Yves Duret committed
690 691
mkdir -p %buildroot/%_menudir
cat > %buildroot/%_menudir/vlc << EOF
692 693 694 695
?package(vlc): command="%_bindir/vlc" hotkey="V" needs="X11" longtitle="VLC is a free MPEG, MPEG2, DVD and DivX player" section="Multimedia/Video" title="VLC media player" icon="vlc.png" hints="Video" \
mimetypes="video/mpeg,video/msvideo,video/quicktime,video/x-avi,video/x-ms-asf,video/x-ms-wmv,video/x-msvideo,application/x-ogg,application/ogg,audio/x-mp3,audio/x-mpeg,video/x-fli,audio/x-wav"\
accept_url="true"\
multiple_files="true"
Yves Duret's avatar
Yves Duret committed
696 697 698
EOF
%if %with_gtk
cat > %buildroot/%_menudir/gvlc << EOF
699 700 701 702
?package(gvlc): command="%_bindir/gvlc" needs="X11" longtitle="VLC is a free MPEG, MPEG2, DVD and DivX player" section="Multimedia/Video" title="VLC Gtk media player" icon="gvlc.png" hints="Video" \
mimetypes="video/mpeg,video/msvideo,video/quicktime,video/x-avi,video/x-ms-asf,video/x-ms-wmv,video/x-msvideo,application/x-ogg,application/ogg,audio/x-mp3,audio/x-mpeg,video/x-fli,audio/x-wav"\
accept_url="true"\
multiple_files="true"
703
EOF
Yves Duret's avatar
Yves Duret committed
704 705 706
%endif
%if %with_gnome
cat > %buildroot/%_menudir/gnome-vlc << EOF
707 708 709 710
?package(gnome-vlc): command="%_bindir/gnome-vlc" needs="X11" longtitle="VLC is a free MPEG, MPEG2, DVD and DivX player" section="Multimedia/Video" title="VLC Gnome media player" icon="gnome-vlc.png" hints="Video" \
mimetypes="video/mpeg,video/msvideo,video/quicktime,video/x-avi,video/x-ms-asf,video/x-ms-wmv,video/x-msvideo,application/x-ogg,application/ogg,audio/x-mp3,audio/x-mpeg,video/x-fli,audio/x-wav"\
accept_url="true"\
multiple_files="true"
711
EOF
Yves Duret's avatar
Yves Duret committed
712 713 714
%endif
%if %with_qt
cat > %buildroot/%_menudir/qvlc << EOF
715 716 717 718
?package(qvlc): command="%_bindir/qvlc" needs="X11" longtitle="VLC is a free MPEG, MPEG2, DVD and DivX player" section="Multimedia/Video" title="VLC Qt media player" icon="qvlc.png" hints="Video" \
mimetypes="video/mpeg,video/msvideo,video/quicktime,video/x-avi,video/x-ms-asf,video/x-ms-wmv,video/x-msvideo,application/x-ogg,application/ogg,audio/x-mp3,audio/x-mpeg,video/x-fli,audio/x-wav"\
accept_url="true"\
multiple_files="true"
719
EOF
Yves Duret's avatar
Yves Duret committed
720 721 722
%endif
%if %with_kde
cat > %buildroot/%_menudir/kvlc << EOF
723 724 725 726
?package(kvlc): command="%_bindir/kvlc" needs="X11" longtitle="VLC is a free MPEG, MPEG2, DVD and DivX player" section="Multimedia/Video" title="VLC KDE media player" icon="kvlc.png" hints="Video" \
mimetypes="video/mpeg,video/msvideo,video/quicktime,video/x-avi,video/x-ms-asf,video/x-ms-wmv,video/x-msvideo,application/x-ogg,application/ogg,audio/x-mp3,audio/x-mpeg,video/x-fli,audio/x-wav"\
accept_url="true"\
multiple_files="true"
727
EOF
728
%endif
729
%if %with_wx
730 731 732 733 734 735
cat > %buildroot/%_menudir/wxvlc << EOF
?package(wxvlc): command="%_bindir/wxvlc" needs="X11" longtitle="VLC is a free MPEG, MPEG2, DVD and DivX player" section="Multimedia/Video" title="VLC wxWindow media player" icon="vlc.png" hints="Video" \
mimetypes="video/mpeg,video/msvideo,video/quicktime,video/x-avi,video/x-ms-asf,video/x-ms-wmv,video/x-msvideo,application/x-ogg,application/ogg,audio/x-mp3,audio/x-mpeg,video/x-fli,audio/x-wav"\
accept_url="true"\
multiple_files="true"
EOF
736
%endif
Yves Duret's avatar
Yves Duret committed
737

738
# icons
Yves Duret's avatar
Yves Duret committed
739
%define pngdir %buildroot/%_datadir/vlc
740
mkdir -p %{buildroot}/{%{_miconsdir},%{_liconsdir}}
Yves Duret's avatar
Yves Duret committed
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762
install -m 644 %pngdir/vlc16x16.png %buildroot/%_miconsdir/vlc.png
install -m 644 %pngdir/vlc32x32.png %buildroot/%_iconsdir/vlc.png
install -m 644 %pngdir/vlc48x48.png %buildroot/%_liconsdir/vlc.png
%if %with_gnome
install -m 644 %pngdir/gnome-vlc16x16.png %buildroot/%_miconsdir/gnome-vlc.png
install -m 644 %pngdir/gnome-vlc32x32.png %buildroot/%_iconsdir/gnome-vlc.png
install -m 644 %pngdir/gnome-vlc48x48.png %buildroot/%_liconsdir/gnome-vlc.png
%endif
%if %with_gtk
install -m 644 %pngdir/gvlc16x16.png %buildroot/%_miconsdir/gvlc.png
install -m 644 %pngdir/gvlc32x32.png %buildroot/%_iconsdir/gvlc.png
install -m 644 %pngdir/gvlc48x48.png %buildroot/%_liconsdir/gvlc.png
%endif
%if %with_kde
install -m 644 %pngdir/kvlc16x16.png %buildroot/%_miconsdir/kvlc.png
install -m 644 %pngdir/kvlc32x32.png %buildroot/%_iconsdir/kvlc.png
install -m 644 %pngdir/kvlc48x48.png %buildroot/%_liconsdir/kvlc.png
%endif
%if %with_qt
install -m 644 %pngdir/qvlc16x16.png %buildroot/%_miconsdir/qvlc.png
install -m 644 %pngdir/qvlc32x32.png %buildroot/%_iconsdir/qvlc.png
install -m 644 %pngdir/qvlc48x48.png %buildroot/%_liconsdir/qvlc.png
763
%endif
764

765 766
%if ! %with_wx
rm -rf %buildroot%_datadir/vlc/skins
Yves Duret's avatar
Yves Duret committed
767
%endif
Yves Duret's avatar
Yves Duret committed
768

769 770 771
%post
%update_menus
%postun
Yves Duret's avatar
Yves Duret committed
772
%clean_menus
773

774 775
%clean
rm -fr %buildroot
776

777
%files -f %name.lang
778
%defattr(-,root,root)
779
%doc NEWS README COPYING AUTHORS MAINTAINERS THANKS
780 781
%doc doc/web-streaming.html doc/vlc-howto.sgml doc/lirc/
%doc doc/fortunes.txt doc/bugreport-howto.txt
Yves Duret's avatar
Yves Duret committed
782
%_bindir/vlc
783 784
%dir %_datadir/vlc/
%_datadir/vlc/*.*
785 786 787
%dir %_libdir/vlc

%dir %_libdir/vlc/access
788 789
%_libdir/vlc/access/libcdda_plugin.so
%_libdir/vlc/access/libaccess_directory_plugin.so
790
%_libdir/vlc/access/libaccess_file_plugin.so
Yves Duret's avatar
Yves Duret committed
791
%_libdir/vlc/access/libaccess_ftp_plugin.so
792 793 794
%_libdir/vlc/access/libaccess_http_plugin.so
%_libdir/vlc/access/libaccess_mms_plugin.so
%_libdir/vlc/access/libaccess_udp_plugin.so
Yves Duret's avatar
Yves Duret committed
795
%if %with_dvdplay
796
%_libdir/vlc/access/libdvdplay_plugin.so
Yves Duret's avatar
Yves Duret committed
797
%endif
798 799 800 801
%_libdir/vlc/access/libdvd_plugin.so
%_libdir/vlc/access/libdvdread_plugin.so
%_libdir/vlc/access/libvcd_plugin.so

Yves Duret's avatar
Yves Duret committed
802 803 804
%dir %_libdir/vlc/access_output/
%_libdir/vlc/access_output/libaccess_output_dummy_plugin.so
%_libdir/vlc/access_output/libaccess_output_file_plugin.so
805
%_libdir/vlc/access_output/libaccess_output_http_plugin.so
Yves Duret's avatar
Yves Duret committed
806 807
%_libdir/vlc/access_output/libaccess_output_udp_plugin.so

808
%dir %_libdir/vlc/audio_filter
809 810
%_libdir/vlc/audio_filter/libbandlimited_resampler_plugin.so
%_libdir/vlc/audio_filter/libdtstospdif_plugin.so
811 812 813 814 815 816 817 818
%_libdir/vlc/audio_filter/libfixed32tofloat32_plugin.so
%_libdir/vlc/audio_filter/libfixed32tos16_plugin.so
%_libdir/vlc/audio_filter/libfloat32tos16_plugin.so
%_libdir/vlc/audio_filter/libfloat32tos8_plugin.so
%_libdir/vlc/audio_filter/libfloat32tou16_plugin.so
%_libdir/vlc/audio_filter/libfloat32tou8_plugin.so
%_libdir/vlc/audio_filter/libheadphone_channel_mixer_plugin.so
%_libdir/vlc/audio_filter/liblinear_resampler_plugin.so
819
%_libdir/vlc/audio_filter/libs16tofixed32_plugin.so
820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
%_libdir/vlc/audio_filter/libs16tofloat32_plugin.so
%_libdir/vlc/audio_filter/libs16tofloat32swab_plugin.so
%_libdir/vlc/audio_filter/libs8tofloat32_plugin.so
%_libdir/vlc/audio_filter/libtrivial_channel_mixer_plugin.so
%_libdir/vlc/audio_filter/libtrivial_resampler_plugin.so
%_libdir/vlc/audio_filter/libu8tofixed32_plugin.so
%_libdir/vlc/audio_filter/libu8tofloat32_plugin.so
%_libdir/vlc/audio_filter/libugly_resampler_plugin.so

%dir %_libdir/vlc/audio_mixer
%_libdir/vlc/audio_mixer/libfloat32_mixer_plugin.so
%_libdir/vlc/audio_mixer/libspdif_mixer_plugin.so
%_libdir/vlc/audio_mixer/libtrivial_mixer_plugin.so

%dir %_libdir/vlc/audio_output
%_libdir/vlc/audio_output/libaout_file_plugin.so
%_libdir/vlc/audio_output/liboss_plugin.so

%dir %_libdir/vlc/codec
Yves Duret's avatar
Yves Duret committed
839
%_libdir/vlc/codec/liba52_plugin.so
840 841
%_libdir/vlc/codec/libadpcm_plugin.so
%_libdir/vlc/codec/libaraw_plugin.so
842
%_libdir/vlc/codec/librawvideo_plugin.so
843
%_libdir/vlc/codec/libcinepak_plugin.so
844 845 846 847 848 849 850
%_libdir/vlc/codec/libdts_plugin.so
#%_libdir/vlc/codec/libidctclassic_plugin.so
#%ifarch %ix86
#%_libdir/vlc/codec/libidctmmxext_plugin.so
#%_libdir/vlc/codec/libidctmmx_plugin.so
#%endif
#%_libdir/vlc/codec/libidct_plugin.so
851
%_libdir/vlc/codec/liblpcm_plugin.so
852 853 854 855 856 857
#%ifarch %ix86
#%_libdir/vlc/codec/libmotionmmxext_plugin.so
#%_libdir/vlc/codec/libmotionmmx_plugin.so
#%endif
#%_libdir/vlc/codec/libmotion_plugin.so
%_libdir/vlc/codec/liblibmpeg2_plugin.so
858
%_libdir/vlc/codec/libmpeg_audio_plugin.so
859
#%_libdir/vlc/codec/libmpeg_video_plugin.so
Yves Duret's avatar
Yves Duret committed
860
%if %with_ffmpeg
861
#%_libdir/vlc/codec/libpostprocessing_c_plugin.so
862
	%ifarch %ix86
863 864
#	%_libdir/vlc/codec/libpostprocessing_mmx_plugin.so
#	%_libdir/vlc/codec/libpostprocessing_mmxext_plugin.so
865
	%endif
Yves Duret's avatar
Yves Duret committed
866
%endif
867 868 869
%_libdir/vlc/codec/libspudec_plugin.so

%dir %_libdir/vlc/control
870
%_libdir/vlc/control/libhttp_plugin.so
Yves Duret's avatar
Yves Duret committed
871
%_libdir/vlc/control/librc_plugin.so
872
%_libdir/vlc/control/libgestures_plugin.so
873 874 875 876

%dir %_libdir/vlc/demux
%_libdir/vlc/demux/libaac_plugin.so
%_libdir/vlc/demux/libasf_plugin.so
877
%_libdir/vlc/demux/libau_plugin.so
878 879
%_libdir/vlc/demux/libaudio_plugin.so
%_libdir/vlc/demux/libavi_plugin.so
880
%_libdir/vlc/demux/liba52sys_plugin.so
881 882 883 884 885
%_libdir/vlc/demux/libdemuxdump_plugin.so
%_libdir/vlc/demux/libdemuxsub_plugin.so
%_libdir/vlc/demux/libes_plugin.so
%_libdir/vlc/demux/libid3_plugin.so
%_libdir/vlc/demux/libm3u_plugin.so
886
%_libdir/vlc/demux/libm4v_plugin.so
887 888 889
%if %with_mkv
%_libdir/vlc/demux/libmkv_plugin.so
%endif
890 891 892
%_libdir/vlc/demux/libmp4_plugin.so
%_libdir/vlc/demux/libmpeg_system_plugin.so
%_libdir/vlc/demux/libps_plugin.so
Yves Duret's avatar
Yves Duret committed
893
%_libdir/vlc/demux/librawdv_plugin.so
894 895 896 897 898
%_libdir/vlc/demux/libts_plugin.so
%_libdir/vlc/demux/libwav_plugin.so

%dir %_libdir/vlc/misc
%_libdir/vlc/misc/libdummy_plugin.so
899
%_libdir/vlc/misc/libhttpd_plugin.so
900 901 902
%_libdir/vlc/misc/libipv4_plugin.so
%_libdir/vlc/misc/libipv6_plugin.so
%_libdir/vlc/misc/liblogger_plugin.so
903 904 905 906 907
#%ifarch %ix86
#%_libdir/vlc/misc/libmemcpy3dn_plugin.so
#%_libdir/vlc/misc/libmemcpymmxext_plugin.so
#%_libdir/vlc/misc/libmemcpymmx_plugin.so
#%endif
908 909
%_libdir/vlc/misc/libmemcpy_plugin.so
%_libdir/vlc/misc/libsap_plugin.so
910
%_libdir/vlc/misc/libscreensaver_plugin.so
911

Yves Duret's avatar
Yves Duret committed
912
%dir %_libdir/vlc/mux
913
%_libdir/vlc/mux/libmux_avi_plugin.so
Yves Duret's avatar
Yves Duret committed
914
%_libdir/vlc/mux/libmux_dummy_plugin.so
915
%_libdir/vlc/mux/libmux_ogg_plugin.so
Yves Duret's avatar
Yves Duret committed
916 917 918 919 920 921
%_libdir/vlc/mux/libmux_ps_plugin.so
%_libdir/vlc/mux/libmux_ts_plugin.so

%dir %_libdir/vlc/packetizer
%_libdir/vlc/packetizer/libpacketizer_a52_plugin.so
%_libdir/vlc/packetizer/libpacketizer_copy_plugin.so
922
%_libdir/vlc/packetizer/libpacketizer_mpeg4audio_plugin.so
Yves Duret's avatar
Yves Duret committed
923 924 925 926
%_libdir/vlc/packetizer/libpacketizer_mpeg4video_plugin.so
%_libdir/vlc/packetizer/libpacketizer_mpegaudio_plugin.so
%_libdir/vlc/packetizer/libpacketizer_mpegvideo_plugin.so

927 928 929 930 931 932 933
%dir %_libdir/vlc/stream_out
%_libdir/vlc/stream_out/libstream_out_display_plugin.so
%_libdir/vlc/stream_out/libstream_out_dummy_plugin.so
%_libdir/vlc/stream_out/libstream_out_duplicate_plugin.so
%_libdir/vlc/stream_out/libstream_out_es_plugin.so
%_libdir/vlc/stream_out/libstream_out_standard_plugin.so

934 935 936 937 938
%dir %_libdir/vlc/video_chroma
%_libdir/vlc/video_chroma/libi420_rgb_plugin.so
%_libdir/vlc/video_chroma/libi420_ymga_plugin.so
%_libdir/vlc/video_chroma/libi420_yuy2_plugin.so
%_libdir/vlc/video_chroma/libi422_yuy2_plugin.so
939 940 941 942 943 944
#%ifarch %ix86
#%_libdir/vlc/video_chroma/libi420_rgb_mmx_plugin.so
#%_libdir/vlc/video_chroma/libi420_ymga_mmx_plugin.so
#%_libdir/vlc/video_chroma/libi420_yuy2_mmx_plugin.so
#%_libdir/vlc/video_chroma/libi422_yuy2_mmx_plugin.so
#%endif
945 946 947 948 949 950 951 952 953

%dir %_libdir/vlc/video_filter
%_libdir/vlc/video_filter/libadjust_plugin.so
%_libdir/vlc/video_filter/libclone_plugin.so
%_libdir/vlc/video_filter/libcrop_plugin.so
%_libdir/vlc/video_filter/libdeinterlace_plugin.so
%_libdir/vlc/video_filter/libdistort_plugin.so
%_libdir/vlc/video_filter/libinvert_plugin.so
%_libdir/vlc/video_filter/libmotionblur_plugin.so
954
%_libdir/vlc/video_filter/libosdtext_plugin.so
955 956 957 958 959
%_libdir/vlc/video_filter/libtransform_plugin.so
%_libdir/vlc/video_filter/libwall_plugin.so

%dir %_libdir/vlc/video_output
%_libdir/vlc/video_output/libfb_plugin.so
960
#%_libdir/vlc/video_output/libvout_encoder_plugin.so
961 962 963 964 965
%_libdir/vlc/video_output/libx11_plugin.so
%_libdir/vlc/video_output/libxvideo_plugin.so

%dir %_libdir/vlc/visualization

Yves Duret's avatar
Yves Duret committed
966
%_mandir/man1/vlc.*
967 968 969 970 971 972 973
%_menudir/vlc
%_miconsdir/vlc.png
%_iconsdir/vlc.png
%_liconsdir/vlc.png

%files -n %libname-devel
%defattr(-,root,root)
974 975
%doc README doc/release-howto.txt doc/skins doc/subtitles doc/Configure.help
%doc doc/arm-crosscompile-howto.sgml
976 977 978 979
%dir %_includedir/vlc
%_includedir/vlc/*
%_libdir/*a
%_libdir/vlc/*a
Yves Duret's avatar
Yves Duret committed
980
%_bindir/vlc-config
Yves Duret's avatar
Yves Duret committed
981
%_mandir/man1/vlc-config*
982

Yves Duret's avatar
Yves Duret committed
983
%if %with_mozilla
984 985 986
%files -n mozilla-plugin-vlc
%defattr(-,root,root)
%doc README
Yves Duret's avatar
Yves Duret committed
987
%_libdir/mozilla/*/*
Yves Duret's avatar
Yves Duret committed
988
%endif
989 990

# intf plugins
Yves Duret's avatar
Yves Duret committed
991
%if %with_gtk
992
%files -n gvlc
993
%defattr(-,root,root)
994
%doc README
995 996 997 998 999 1000 1001 1002
%_libdir/vlc/misc/libgtk_main_plugin.so
%_libdir/vlc/gui/libgtk_plugin.so
%_bindir/gvlc
%_menudir/gvlc
%_miconsdir/gvlc.png
%_iconsdir/gvlc.png
%_liconsdir/gvlc.png
%post -n gvlc
1003
%update_menus
1004
%postun -n gvlc
Yves Duret's avatar
Yves Duret committed
1005
%clean_menus
Yves Duret's avatar
Yves Duret committed
1006
%endif
1007

Yves Duret's avatar
Yves Duret committed
1008
%if %with_gnome
1009
%files -n gnome-vlc
1010
%defattr(-,root,root)
1011
%doc README
1012 1013 1014 1015 1016 1017 1018 1019
%_libdir/vlc/misc/libgnome_main_plugin.so
%_libdir/vlc/gui/libgnome_plugin.so
%_bindir/gnome-vlc
%_menudir/gnome-vlc
%_miconsdir/gnome-vlc.png
%_iconsdir/gnome-vlc.png
%_liconsdir/gnome-vlc.png
%post   -n gnome-vlc
1020
%update_menus
1021
%postun -n gnome-vlc
Yves Duret's avatar
Yves Duret committed
1022
%clean_menus
Yves Duret's avatar
Yves Duret committed
1023
%endif
1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036

%if %with_wx
%files -n wxvlc
%defattr(-,root,root)
%doc README
%_bindir/wxvlc
%_libdir/vlc/gui/libwxwindows_plugin.so
%_menudir/wxvlc
%_datadir/vlc/skins
%post   -n wxvlc
%update_menus
%postun -n wxvlc
%clean_menus
Yves Duret's avatar
Yves Duret committed
1037
%endif
1038

1039

Yves Duret's avatar
Yves Duret committed
1040
%if %with_qt
1041
%files -n qvlc
1042
%defattr(-,root,root)
1043
%doc README
1044 1045 1046 1047 1048 1049 1050
%_libdir/vlc/gui/libqt_plugin.so
%_bindir/qvlc
%_menudir/qvlc
%_miconsdir/qvlc.png
%_iconsdir/qvlc.png
%_liconsdir/qvlc.png
%post   -n qvlc
1051
%update_menus
1052
%postun -n qvlc
Yves Duret's avatar
Yves Duret committed
1053
%clean_menus
1054
%endif
1055

Yves Duret's avatar
Yves Duret committed
1056
%if %with_kde
1057
%files -n kvlc
1058
%defattr(-,root,root)
1059 1060 1061 1062 1063 1064 1065 1066 1067 1068
%doc README
%_libdir/vlc/gui/libkde_plugin.so
%_bindir/kvlc
%_menudir/kvlc
%_miconsdir/kvlc.png
%_iconsdir/kvlc.png
%_liconsdir/kvlc.png
%post   -n kvlc
%update_menus
%postun -n kvlc
Yves Duret's avatar
Yves Duret committed
1069
%clean_menus
Yves Duret's avatar
Yves Duret committed
1070
%endif
1071

Yves Duret's avatar
Yves Duret committed
1072
%if %with_ncurses
1073
%files plugin-ncurses
1074
%defattr(-,root,root)
1075
%doc README
1076
%_libdir/vlc/gui/libncurses_plugin.so
Yves Duret's avatar
Yves Duret committed
1077
%endif
1078

Yves Duret's avatar
Yves Duret committed
1079
%if %with_lirc
1080
%files plugin-lirc
1081 1082
%defattr(-,root,root)
%doc README
1083
%_libdir/vlc/control/liblirc_plugin.so
1084 1085
%endif

1086
# video plugins
Yves Duret's avatar
Yves Duret committed
1087
%if %with_sdl
1088 1089 1090 1091 1092
%files plugin-sdl
%defattr(-,root,root)
%doc README
%_libdir/vlc/audio_output/libaout_sdl_plugin.so
%_libdir/vlc/video_output/libvout_sdl_plugin.so
Yves Duret's avatar
Yves Duret committed
1093
%endif
1094

Yves Duret's avatar
Yves Duret committed
1095
%if %with_ggi
1096
%files plugin-ggi
1097 1098
%defattr(-,root,root)
%doc README
1099
%{_libdir}/vlc/video_output/libggi_plugin.so
Yves Duret's avatar
Yves Duret committed
1100
%endif
1101

Yves Duret's avatar
Yves Duret committed
1102
%if %with_aa
1103
%files plugin-aa
1104 1105
%defattr(-,root,root)
%doc README
1106
%{_libdir}/vlc/video_output/libaa_plugin.so
Yves Duret's avatar
Yves Duret committed
1107
%endif
1108

Yves Duret's avatar
Yves Duret committed
1109
%if %with_svgalib
1110 1111 1112 1113 1114
%files plugin-svgalib
%defattr(-,root,root)
%doc README
%_libdir/vlc/video_output/libsvgalib_plugin.so
%endif
1115

1116
# visualization plugin
Yves Duret's avatar
Yves Duret committed
1117
%if %with_xosd
1118
%files plugin-xosd
1119 1120
%defattr(-,root,root)
%doc README
1121
%_libdir/vlc/visualization/libxosd_plugin.so
Yves Duret's avatar
Yves Duret committed
1122
%endif
1123

1124
# codec plugin
Yves Duret's avatar
Yves Duret committed
1125
%if %with_mad
1126 1127 1128
%files plugin-mad
%defattr(-,root,root)
%doc README
1129
%_libdir/vlc/audio_filter/libmpgatofixed32_plugin.so
Yves Duret's avatar
Yves Duret committed
1130 1131
%_libdir/vlc/demux/libid3tag_plugin.so
%endif
1132

Yves Duret's avatar
Yves Duret committed
1133
%if %with_ogg
1134 1135 1136
%files plugin-ogg
%defattr(-,root,root)
%doc README
Yves Duret's avatar
Yves Duret committed
1137 1138 1139
%_libdir/vlc/demux/libogg_plugin.so
%_libdir/vlc/codec/libvorbis_plugin.so
%endif
1140

1141 1142 1143 1144 1145 1146 1147 1148 1149
%if %with_ogg
%files plugin-flac
%defattr(-,root,root)
%doc README
%_libdir/vlc/demux/libflac_plugin.so
%_libdir/vlc/codec/libflacdec_plugin.so
%endif


Yves Duret's avatar
Yves Duret committed
1150
%if %with_dv
1151 1152 1153 1154
%files plugin-dv
%defattr(-,root,root)
%doc README
%_libdir/vlc/codec/libdv_plugin.so
Yves Duret's avatar
Yves Duret committed
1155
%endif
1156

Yves Duret's avatar
Yves Duret committed
1157
%if %with_a52
1158 1159 1160
%files plugin-a52
%defattr(-,root,root)
%doc README
Yves Duret's avatar
Yves Duret committed
1161 1162
%_libdir/vlc/audio_filter/liba52tofloat32_plugin.so
%_libdir/vlc/audio_filter/liba52tospdif_plugin.so
Yves Duret's avatar
Yves Duret committed
1163
%endif
1164 1165

# input plugin
Yves Duret's avatar
Yves Duret committed
1166
%if %with_dvb
1167
%files plugin-dvb
1168 1169
%defattr(-,root,root)
%doc README
1170
%_libdir/vlc/access/libsatellite_plugin.so
Yves Duret's avatar
Yves Duret committed
1171
%_libdir/vlc/demux/libts_dvbpsi_plugin.so
1172
%_libdir/vlc/mux/libmux_ts_dvbpsi_plugin.so
Yves Duret's avatar
Yves Duret committed
1173
%endif
1174

1175
#audio plugins
Yves Duret's avatar
Yves Duret committed
1176
%if %with_esd
1177
%files plugin-esd
1178 1179
%defattr(-,root,root)
%doc README
1180
%_libdir/vlc/audio_output/libesd_plugin.so
Yves Duret's avatar
Yves Duret committed
1181
%endif
1182

Yves Duret's avatar
Yves Duret committed
1183
%if %with_arts
1184
%files plugin-arts
1185 1186
%defattr(-,root,root)
%doc README
1187
%_libdir/vlc/audio_output/libarts_plugin.so
Yves Duret's avatar
Yves Duret committed
1188
%endif
1189

Yves Duret's avatar
Yves Duret committed
1190
%if %with_alsa
1191
%files plugin-alsa
1192 1193
%defattr(-,root,root)
%doc README
1194
%_libdir/vlc/audio_output/libalsa_plugin.so
Yves Duret's avatar
Yves Duret committed
1195
%endif
1196

Yves Duret's avatar
Yves Duret committed
1197 1198 1199