3 # - check the altivec patch
4 # - add proper package descriptions/translations
5 # - bcondize this damn spec! (it should be automated too)
6 # - go through the configure --help and add all options with proper
10 %bcond_without aa # build without aalib support
11 %bcond_without caca # build without caca support
12 %bcond_without dv # build without dv support
13 %bcond_without lirc # build without lirc support
14 %bcond_without x264 # build without x264 support
15 %bcond_without alsa # don't build alsa plugin
16 %bcond_without arts # don't build arts plugin
17 %bcond_without ggi # don't build ggi plugin
18 %bcond_without live # build without live.com support
19 %bcond_without speex # don't build speex plugin
20 %bcond_with mozilla # build mozilla plugin
21 %bcond_with slp # build with slp, broken
22 %bcond_with svgalib # build with svgalib video_output
23 %bcond_with hal # build with hal support
25 Summary: VLC - a multimedia player and stream server
26 Summary(pl): VLC - odtwarzacz multimedialny oraz serwer strumieni
31 Group: X11/Applications/Multimedia
32 # use the bz2 src, its a 4mb difference
33 Source0: http://download.videolan.org/pub/videolan/vlc/%{version}/%{name}-%{version}.tar.bz2
34 # Source0-md5: 16bb5bf87ed94879a8eb7b0ff9b4f16f
35 Source1: %{name}.desktop
36 Patch0: %{name}-altivec.patch
37 Patch1: %{name}-buildflags.patch
38 Patch2: %{name}-defaultfont.patch
39 Patch3: %{name}-live.patch
40 Patch4: %{name}-pic-mmx.patch
41 Patch5: %{name}-matroska-shared.patch
42 Patch6: %{name}-real_codecs_path.patch
43 Patch7: %{name}-osdmenu_path.patch
44 URL: http://www.videolan.org/vlc/
45 BuildRequires: OpenGL-devel
46 BuildRequires: SDL_image-devel >= 1.2
47 BuildRequires: a52dec-libs-devel
48 %{?with_aa:BuildRequires: aalib-devel}
49 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9}
50 %{?with_arts:BuildRequires: artsc-devel}
51 BuildRequires: autoconf
52 BuildRequires: automake
53 BuildRequires: esound-devel
54 BuildRequires: faad2-devel
55 BuildRequires: ffmpeg-devel >= 0.4.9
56 BuildRequires: flac-devel
57 BuildRequires: fribidi-devel
58 BuildRequires: gettext-devel
59 %{?with_hal:BuildRequires: hal-devel >= 0.2.97}
60 %{?with_dv:BuildRequires: libavc1394-devel}
61 %{?with_caca:BuildRequires: libcaca-devel}
62 BuildRequires: libcdio-devel
63 BuildRequires: libcddb-devel
64 BuildRequires: libdts-devel
65 %{?with_dv:BuildRequires: libdv-devel}
66 BuildRequires: libdvbpsi-devel
67 BuildRequires: libdvdnav-devel
68 BuildRequires: libdvdread-devel
69 BuildRequires: libdvdcss-devel
70 BuildRequires: libebml-devel >= 0.7.6
71 %{?with_ggi:BuildRequires: libggi-devel}
72 BuildRequires: libid3tag-devel
73 BuildRequires: libmad-devel
74 BuildRequires: libmatroska-devel >= 0.7.5
75 BuildRequires: libmodplug-devel
76 BuildRequires: libogg-devel
77 BuildRequires: libpng-devel
78 %{?with_dv:BuildRequires: libraw1394-devel}
79 BuildRequires: libsmbclient-devel
80 BuildRequires: libtheora-devel
81 BuildRequires: libtool
82 BuildRequires: libvorbis-devel
83 %{?with_x264:BuildRequires: libx264-devel}
84 BuildRequires: libxml2-devel
85 %{?with_lirc:BuildRequires: lirc-devel}
86 %{?with_live:BuildRequires: live >= 2005.03.11}
87 BuildRequires: mpeg2dec-devel >= 0.3.2
88 %{?with_mozilla:BuildRequires: mozilla-devel}
89 BuildRequires: ncurses-devel
90 %{?with_slp:BuildRequires: openslp-devel}
91 BuildRequires: pkgconfig
92 %{?with_speex:BuildRequires: speex-devel > 1:1.1.0}
93 %{?with_svgalib:BuildRequires: svgalib-devel}
94 BuildRequires: vcdimager-devel
95 BuildRequires: wxGTK2-unicode-devel >= 2.6.2-2
96 BuildRequires: xosd-devel
97 BuildRequires: xvid-devel
98 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
101 VLC (initially VideoLAN Client) is a multimedia player for various
102 audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, MP3, Ogg, ...)
103 as well as DVDs, VCDs, and various streaming protocols. It can also
104 be used as a server to stream in unicast or multicast in IPv4
105 or IPv6 on a high-bandwidth network.
108 VLC (wcze¶niej znany pod nazw± VideoLAN Client) jest odtwarzaczem
109 multimedialnym dla wielu formatów wideo i d¼wiêku (MPEG-1, MPEG-2,
110 MPEG-4, DivX, MP3, Ogg, ...), p³yt DVD, VCD oraz ró¿nych protoko³ów
111 strumieniowych. Mo¿e byæ wykorzystany jako serwer do wysy³ania
112 strumieni unicast lub multicast w protoko³ach IPv4 lub IPv6
113 w wysokoprzepustowych sieciach.
116 Summary: VLC header files
117 Summary(pl): Pliki nag³ówkowe VLC
118 Group: X11/Development/Libraries
119 Requires: %{name} = %{version}-%{release}
124 %description devel -l pl
125 Pliki nag³ówkowe VLC.
128 Summary: VLC static libraries
129 Summary(pl): Biblioteki statyczne VLC
130 Group: X11/Development/Libraries
131 Requires: %{name}-devel = %{version}-%{release}
134 VLC static libraries.
136 %description static -l pl
137 Biblioteki statyczne VLC.
140 Summary: VLC - X11 output plugin
141 Summary(pl): Klient VLC - wtyczka wyj¶cia X11
142 Group: X11/Applications/Multimedia
143 Requires: %{name} = %{version}-%{release}
148 X11 output plugin for VLC. Contains GUI image/icon resources.
150 %description X11 -l pl
151 Wtyczka wyj¶cia X11 dla klienta VLC. Zawiera zasoby interfejsu
155 Summary: VLC - GGI output plugin
156 Summary(pl): Klient VLC - wtyczka wyj¶cia GGI
157 Group: X11/Applications/Multimedia
158 Requires: %{name} = %{version}-%{release}
161 GGI output plugin for VLC.
163 %description GGI -l pl
164 Wtyczka wyj¶cia GGI dla klienta VLC.
167 Summary: VLC - fb output plugin
168 Summary(pl): Klient VLC - wtyczka wyj¶cia fb
169 Group: X11/Applications/Multimedia
170 Requires: %{name} = %{version}-%{release}
173 fb output plugin for VLC.
175 %description fb -l pl
176 Wtyczka wyj¶cia fb dla klienta VLC.
179 Summary: VLC - SDL output plugin
180 Summary(pl): Klient VLC - wtyczka wyj¶cia SDL
181 Group: X11/Applications/Multimedia
182 Requires: %{name} = %{version}-%{release}
185 SDL output plugin for VLC.
187 %description SDL -l pl
188 Wtyczka wyj¶cia SDL dla klienta VLC.
191 Summary: VLC - EsounD audio output plugin
192 Summary(pl): Klient VLC - wtyczka wyj¶cia d¼wiêku EsounD
193 Group: X11/Applications/Multimedia
194 Requires: %{name} = %{version}-%{release}
197 EsounD audio output plugin for VLC.
199 %description esd -l pl
200 Wtyczka wyj¶cia d¼wiêku EsounD dla klienta VLC.
203 Summary: VLC - ALSA audio output plugin
204 Summary(pl): Klient VLC - wtyczka wyj¶cia d¼wiêku ALSA
205 Group: X11/Applications/Multimedia
206 Requires: %{name} = %{version}-%{release}
209 ALSA audio output plugin for VLC.
211 %description alsa -l pl
212 Wtyczka wyj¶cia d¼wiêku ALSA dla klienta VLC.
226 cp -f /usr/share/automake/config.* .
230 CFLAGS="%{rpmcflags} -DALSA_PCM_OLD_HW_PARAMS_API"
235 --%{?with_aa:en}%{!?with_aa:dis}able-aa \
236 %{?with_alsa:--enable-alsa} \
237 %{?with_arts:--enable-arts} \
238 %{!?with_arts:--disable-arts} \
239 --%{?with_caca:en}%{!?with_caca:dis}able-caca \
242 --%{?with_dv:en}%{!?with_dv:dis}able-dv \
255 --%{?with_ggi:en}%{!?with_ggi:dis}able-ggi \
256 %{!?with_speex:--disable-speex} \
258 --%{?with_lirc:en}%{!?with_lirc:dis}able-lirc \
261 %{?with_mozilla:--enable-mozilla } \
262 %{?with_live:--enable-livedotcom } \
263 %{!?with_live:--disable-livedotcom } \
264 --with-livedotcom-tree=%{_libdir}/liveMedia \
272 %{?with_slp:--enable-slp} \
273 %{!?with_slp:--disable-slp} \
275 %{?with_svgalib:--enable-svgalib} \
281 %{!?with_x264:--disable-x264} \
285 --disable-testsuite \
286 --with-wx-config=wx-gtk2-unicode-config \
287 %{!?with_hal:--disable-hal} \
288 --disable-optimizations # we use own RPM_OPT_FLAGS optimalizations
290 # echo "CFLAGS += -I/usr/include/ncurses" >> Makefile.opts
294 rm -rf $RPM_BUILD_ROOT
295 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
298 DESTDIR=$RPM_BUILD_ROOT
300 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
301 install doc/vlc.1 $RPM_BUILD_ROOT%{_mandir}/man1
303 %if "%{_lib}" != "lib"
304 install -d $RPM_BUILD_ROOT%{_prefix}/lib
305 ln -sf %{_libdir}/vlc $RPM_BUILD_ROOT%{_prefix}/lib
311 rm -rf $RPM_BUILD_ROOT
313 %files -f %{name}.lang
314 %defattr(644,root,root,755)
315 %doc AUTHORS MAINTAINERS NEWS README THANKS
316 %doc doc/bugreport-howto.txt doc/intf-cdda.txt
317 %doc doc/intf-vcd.txt doc/translations.txt
318 %attr(755,root,root) %{_bindir}/vlc
319 %if "%{_lib}" != "lib"
323 %dir %{_libdir}/vlc/gui
324 %dir %{_libdir}/vlc/visualization
325 %attr(755,root,root) %{_libdir}/vlc/gui/libncurses_plugin.so
326 %attr(755,root,root) %{_libdir}/vlc/visualization/libvisual_plugin.so
327 %attr(755,root,root) %{_libdir}/vlc/mux
328 %attr(755,root,root) %{_libdir}/vlc/misc
329 %attr(755,root,root) %{_libdir}/vlc/control
330 %attr(755,root,root) %{_libdir}/vlc/access_output
331 %attr(755,root,root) %{_libdir}/vlc/codec
332 %attr(755,root,root) %{_libdir}/vlc/demux
333 %attr(755,root,root) %{_libdir}/vlc/access
334 %exclude %{_libdir}/vlc/access/libscreen_plugin.so
335 %attr(755,root,root) %{_libdir}/vlc/video_chroma
336 %attr(755,root,root) %{_libdir}/vlc/audio_mixer
337 %attr(755,root,root) %{_libdir}/vlc/video_filter
338 %dir %{_libdir}/vlc/video_output
339 %attr(755,root,root) %{_libdir}/vlc/stream_out
340 %attr(755,root,root) %{_libdir}/vlc/audio_filter
341 %attr(755,root,root) %{_libdir}/vlc/packetizer
342 %attr(755,root,root) %{_libdir}/vlc/access_filter
343 %attr(755,root,root) %{_libdir}/vlc/services_discovery
344 %dir %{_libdir}/vlc/audio_output
345 %exclude %{_libdir}/%{name}/audio_output/libaout_sdl_plugin.so
346 %{?with_alsa:%exclude %{_libdir}/%{name}/audio_output/libalsa_plugin.so}
347 %exclude %{_libdir}/%{name}/audio_output/libesd_plugin.so
348 %attr(755,root,root) %{_libdir}/vlc/audio_output/*.so
349 %dir %{_datadir}/%{name}
350 %{_datadir}/%{name}/http
351 %{_datadir}/%{name}/osdmenu
352 %{_mandir}/man1/vlc.1*
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_bindir}/vlc-config
357 %dir %{_includedir}/%{name}
358 %{_includedir}/%{name}/*
361 %defattr(644,root,root,755)
363 %{_libdir}/%{name}/*.a
366 %defattr(644,root,root,755)
367 %attr(755,root,root) %{_bindir}/svlc
368 %attr(755,root,root) %{_bindir}/wxvlc
369 %attr(755,root,root) %{_libdir}/vlc/gui/libskins2_plugin.so
370 %attr(755,root,root) %{_libdir}/vlc/gui/libwxwidgets_plugin.so
371 %attr(755,root,root) %{_libdir}/vlc/access/libscreen_plugin.so
372 %attr(755,root,root) %{_libdir}/vlc/video_output
373 %{?with_ggi:%exclude %{_libdir}/%{name}/video_output/libggi_plugin.so}
374 %exclude %{_libdir}/%{name}/video_output/libvout_sdl_plugin.so
375 %exclude %{_libdir}/%{name}/video_output/libfb_plugin.so
376 %attr(755,root,root) %{_libdir}/vlc/visualization/libxosd_plugin.so
377 %{_datadir}/%{name}/skins2
378 %{_datadir}/%{name}/vlc*.xpm
379 %{_datadir}/%{name}/pda*.xpm
380 %{_datadir}/%{name}/vlc*.png
381 %{_datadir}/%{name}/vlc*.ico
382 %{_desktopdir}/*.desktop
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/%{name}/video_output/libggi_plugin.so
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/%{name}/video_output/libvout_sdl_plugin.so
393 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libaout_sdl_plugin.so
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_libdir}/%{name}/video_output/libfb_plugin.so
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libesd_plugin.so
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libalsa_plugin.so