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