]> git.pld-linux.org Git - packages/vlc.git/blob - vlc.spec
- bcond speex (default build with speex)
[packages/vlc.git] / vlc.spec
1 #
2 # TODO:
3 # - check the altivec patch 
4 # - add proper package descriptions/translations
5 #
6 # Conditional build:
7 %bcond_without  alsa    # don't build alsa plugin
8 %bcond_without  arts    # don't build arts plugin
9 %bcond_without  ggi     # don't build ggi plugin
10 %bcond_without  live    # build without live.com support
11 %bcond_without  speex   # don't build speex plugin
12 %bcond_with     mozilla # build mozilla plugin
13 %bcond_with     slp     # build with slp, broken
14 %bcond_with     svgalib # build with svgalib video_output
15 %bcond_with     hal     # build with hal support
16 #
17 Summary:        VLC - a multimedia player and stream server
18 Summary(pl):    VLC - odtwarzacz multimedialny oraz serwer strumieni
19 Name:           vlc
20 Version:        0.8.2
21 Release:        0.2
22 License:        GPL
23 Group:          X11/Applications/Multimedia
24 Source0:        http://download.videolan.org/pub/videolan/vlc/%{version}/%{name}-%{version}.tar.gz
25 # Source0-md5:  0e56141a54055686c28e3de4dbed5990
26 Source1:        %{name}.desktop
27 Patch0:         %{name}-altivec.patch
28 Patch1:         %{name}-buildflags.patch
29 Patch2:         %{name}-defaultfont.patch
30 Patch3:         %{name}-live.patch
31 Patch4:         %{name}-x8864.patch
32 URL:            http://www.videolan.org/vlc/
33 BuildRequires:  OpenGL-devel
34 BuildRequires:  SDL-devel >= 1.2
35 BuildRequires:  a52dec-libs-devel
36 BuildRequires:  aalib-devel
37 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9}
38 %{?with_arts:BuildRequires:     artsc-devel}
39 BuildRequires:  autoconf
40 BuildRequires:  automake
41 BuildRequires:  esound-devel
42 BuildRequires:  faad2-devel
43 BuildRequires:  ffmpeg-devel >= 0.4.9
44 BuildRequires:  flac-devel
45 BuildRequires:  fribidi-devel
46 BuildRequires:  gettext-devel
47 %{?with_hal:BuildRequires:      hal-devel >= 0.2.97}
48 BuildRequires:  libcaca-devel
49 BuildRequires:  libcdio-devel
50 BuildRequires:  libcddb-devel
51 BuildRequires:  libdts-devel
52 BuildRequires:  libdv-devel
53 BuildRequires:  libdvbpsi-devel
54 BuildRequires:  libdvdnav-devel
55 BuildRequires:  libdvdread-devel
56 BuildRequires:  libdvdcss-devel
57 BuildRequires:  libebml-devel >= 0.7.3
58 %{?with_ggi:BuildRequires:      libggi-devel}
59 BuildRequires:  libid3tag-devel
60 BuildRequires:  libmad-devel
61 BuildRequires:  libmatroska-devel >= 0.7.5
62 BuildRequires:  libmodplug-devel
63 BuildRequires:  libogg-devel
64 BuildRequires:  libpng-devel
65 BuildRequires:  libtheora-devel
66 BuildRequires:  libvorbis-devel
67 BuildRequires:  libxml2-devel
68 BuildRequires:  lirc-devel
69 %{?with_live:BuildRequires:     live >= 2005.03.11}
70 BuildRequires:  mpeg2dec-devel
71 %{?with_mozilla:BuildRequires:  mozilla-devel}
72 BuildRequires:  ncurses-devel
73 %{?with_slp:BuildRequires:      openslp-devel}
74 BuildRequires:  pkgconfig
75 %{?with_speex:BuildRequires:    speex-devel > 1.1.0}
76 %{?with_svgalib:BuildRequires:  svgalib-devel}
77 BuildRequires:  vcdimager-devel
78 BuildRequires:  wxGTK2-devel >= 2.5.5
79 BuildRequires:  xosd-devel
80 BuildRequires:  xvid-devel
81 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82
83 %description
84 VLC (initially VideoLAN Client) is a multimedia player for various 
85 audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, MP3, Ogg, ...)
86 as well as DVDs, VCDs, and various streaming protocols. It can also 
87 be used as a server to stream in unicast or multicast in IPv4 
88 or IPv6 on a high-bandwidth network.
89
90 %description -l pl
91 VLC (wcze¶niej znany pod nazw± VideoLAN Client) jest odtwarzaczem 
92 multimedialnym dla wielu formatów wideo i d¼wiêku (MPEG-1, MPEG-2, 
93 MPEG-4, DivX, MP3, Ogg, ...), p³yt DVD, VCD oraz ró¿nych protoko³ów 
94 strumieniowych. Mo¿e byæ wykorzystany jako serwer do wysy³ania 
95 strumieni unicast lub multicast w protoko³ach IPv4 lub IPv6 
96 w wysokoprzepustowych sieciach.
97
98 %package devel
99 Summary:        VLC header files
100 Summary(pl):    Pliki nag³ówkowe VLC
101 Group:          X11/Development/Libraries
102 Requires:       %{name} = %{version}-%{release}
103
104 %description devel
105 VLC header files.
106
107 %description devel -l pl
108 Pliki nag³ówkowe VLC.
109
110 %package static
111 Summary:        VLC static libraries
112 Summary(pl):    Biblioteki statyczne VLC
113 Group:          X11/Development/Libraries
114 Requires:       %{name}-devel = %{version}-%{release}
115
116 %description static
117 VLC static libraries.
118
119 %description static -l pl
120 Biblioteki statyczne VLC.
121
122 %package X11
123 Summary:        VLC - X11 output plugin
124 Summary(pl):    Klient VLC - wtyczka wyj¶cia X11
125 Group:          X11/Applications/Multimedia
126 Requires:       %{name} = %{version}-%{release}
127 Obsoletes:      vlc-gnome
128 Obsoletes:      vlc-gtk
129
130 %description X11
131 X11 output plugin for VLC. Contains GUI image/icon resources.
132
133 %description X11 -l pl
134 Wtyczka wyj¶cia X11 dla klienta VLC. Zawiera zasoby interfejsu 
135 GUI (obrazy/ikony).
136
137 %package GGI
138 Summary:        VLC - GGI output plugin
139 Summary(pl):    Klient VLC - wtyczka wyj¶cia GGI
140 Group:          X11/Applications/Multimedia
141 Requires:       %{name} = %{version}-%{release}
142
143 %description GGI
144 GGI output plugin for VLC.
145
146 %description GGI -l pl
147 Wtyczka wyj¶cia GGI dla klienta VLC.
148
149 %package fb
150 Summary:        VLC - fb output plugin
151 Summary(pl):    Klient VLC - wtyczka wyj¶cia fb
152 Group:          X11/Applications/Multimedia
153 Requires:       %{name} = %{version}-%{release}
154
155 %description fb
156 fb output plugin for VLC.
157
158 %description fb -l pl
159 Wtyczka wyj¶cia fb dla klienta VLC.
160
161 %package SDL
162 Summary:        VLC - SDL output plugin
163 Summary(pl):    Klient VLC - wtyczka wyj¶cia SDL
164 Group:          X11/Applications/Multimedia
165 Requires:       %{name} = %{version}-%{release}
166
167 %description SDL
168 SDL output plugin for VLC.
169
170 %description SDL -l pl
171 Wtyczka wyj¶cia SDL dla klienta VLC.
172
173 %package esd
174 Summary:        VLC - EsounD audio output plugin
175 Summary(pl):    Klient VLC - wtyczka wyj¶cia d¼wiêku EsounD
176 Group:          X11/Applications/Multimedia
177 Requires:       %{name} = %{version}-%{release}
178
179 %description esd
180 EsounD audio output plugin for VLC.
181
182 %description esd -l pl
183 Wtyczka wyj¶cia d¼wiêku EsounD dla klienta VLC.
184
185 %package alsa
186 Summary:        VLC - ALSA audio output plugin
187 Summary(pl):    Klient VLC - wtyczka wyj¶cia d¼wiêku ALSA
188 Group:          X11/Applications/Multimedia
189 Requires:       %{name} = %{version}-%{release}
190
191 %description alsa
192 ALSA audio output plugin for VLC.
193
194 %description alsa -l pl
195 Wtyczka wyj¶cia d¼wiêku ALSA dla klienta VLC.
196
197 %prep
198 %setup -q
199 ## %patch0 -p1
200 %patch1 -p0
201 %patch2 -p1
202 %patch3 -p1
203 %patch4 -p1
204
205 %build
206 cp -f /usr/share/automake/config.* .
207 %{__gettextize}
208 %{__aclocal} -I m4
209 %{__autoconf}
210 CFLAGS="%{rpmcflags} -DALSA_PCM_OLD_HW_PARAMS_API"
211 %configure \
212 %ifarch ppc
213         --disable-altivec \
214 %endif
215         --enable-aa \
216         %{?with_alsa:--enable-alsa} \
217         %{?with_arts:--enable-arts} \
218         %{!?with_arts:--disable-arts} \
219         --enable-caca \
220         --enable-dsp \
221         --enable-dummy \
222         --enable-dv \
223         --enable-dvb \
224         --enable-dvbpsi \
225         --with-dvdcss \
226         --enable-dvdnav \
227         --enable-dvdread \
228         --enable-esd \
229         --enable-faad \
230         --enable-fb \
231         --enable-freetype \
232         --enable-fribidi \
233         --enable-ffmpeg \
234         --enable-flac \
235         %{?with_ggi:--enable-ggi} \
236         %{?with_ggi:--with-ggi} \
237         %{!?with_ggi:--disable-ggi} \
238         %{!?with_speex:--disable-speex} \
239         --disable-glide \
240         --enable-lirc \
241         --enable-mad \
242         --enable-mga \
243         %{?with_mozilla:--enable-mozilla } \
244         %{?with_live:--enable-livedotcom } \
245         %{!?with_live:--disable-livedotcom } \
246         --with-livedotcom-tree=%{_libdir}/liveMedia \
247         --enable-ncurses \
248         --enable-pvr \
249         --enable-sdl \
250         --with-sdl=/usr \
251         --enable-skins2 \
252         %{?with_slp:--enable-slp} \
253         %{!?with_slp:--disable-slp} \
254         %{?with_svgalib:--enable-svgalib} \
255         --enable-tarkin \
256         --enable-theora \
257         --enable-tremor \
258         --enable-v4l\
259         --enable-x11 \
260         --enable-xosd \
261         --enable-xvid \
262         --enable-oss \
263         --disable-testsuite \
264         --with-wx-config=wx-gtk2-ansi-config \
265         %{!?with_hal:--disable-hal} \
266         --disable-optimizations # we use own RPM_OPT_FLAGS optimalizations
267
268 # echo "CFLAGS += -I/usr/include/ncurses" >> Makefile.opts
269 %{__make}
270
271 %install
272 rm -rf $RPM_BUILD_ROOT
273 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
274
275 %{__make} install \
276         DESTDIR=$RPM_BUILD_ROOT
277
278 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
279 install doc/vlc.1 $RPM_BUILD_ROOT%{_mandir}/man1
280
281 %if "%{_lib}" != "lib"
282 install -d $RPM_BUILD_ROOT%{_prefix}/lib
283 ln -sf %{_libdir}/vlc $RPM_BUILD_ROOT%{_prefix}/lib
284 %endif
285
286 %find_lang %{name}
287
288 %clean
289 rm -rf $RPM_BUILD_ROOT
290
291 %files -f %{name}.lang
292 %defattr(644,root,root,755)
293 %doc AUTHORS MAINTAINERS NEWS README THANKS
294 %doc doc/bugreport-howto.txt doc/intf-cdda.txt
295 %doc doc/intf-vcd.txt doc/translations.txt
296 %attr(755,root,root) %{_bindir}/vlc
297 %if "%{_lib}" != "lib"
298 %{_prefix}/lib/vlc
299 %endif
300 %dir %{_libdir}/vlc
301 %dir %{_libdir}/vlc/gui
302 %dir %{_libdir}/vlc/visualization
303 %attr(755,root,root) %{_libdir}/vlc/gui/libncurses_plugin.so
304 %attr(755,root,root) %{_libdir}/vlc/visualization/libvisual_plugin.so
305 %attr(755,root,root) %{_libdir}/vlc/mux
306 %attr(755,root,root) %{_libdir}/vlc/misc
307 %attr(755,root,root) %{_libdir}/vlc/control
308 %attr(755,root,root) %{_libdir}/vlc/access_output
309 %attr(755,root,root) %{_libdir}/vlc/codec
310 %attr(755,root,root) %{_libdir}/vlc/demux
311 %attr(755,root,root) %{_libdir}/vlc/access
312 %exclude %{_libdir}/vlc/access/libscreen_plugin.so
313 %attr(755,root,root) %{_libdir}/vlc/video_chroma
314 %attr(755,root,root) %{_libdir}/vlc/audio_mixer
315 %attr(755,root,root) %{_libdir}/vlc/video_filter
316 %attr(755,root,root) %{_libdir}/vlc/stream_out
317 %attr(755,root,root) %{_libdir}/vlc/audio_filter
318 %attr(755,root,root) %{_libdir}/vlc/packetizer
319 %attr(755,root,root) %{_libdir}/vlc/audio_output
320 %attr(755,root,root) %{_libdir}/vlc/access_filter
321 %attr(755,root,root) %{_libdir}/vlc/services_discovery
322 %exclude %{_libdir}/%{name}/audio_output/libaout_sdl_plugin.so
323 %{?with_alsa:%exclude %{_libdir}/%{name}/audio_output/libalsa_plugin.so}
324 %exclude %{_libdir}/%{name}/audio_output/libesd_plugin.so
325 %dir %{_datadir}/%{name}
326 %dir %{_datadir}/%{name}/http
327 %dir %{_datadir}/%{name}/http/vlm
328 %dir %{_datadir}/%{name}/http/admin
329 %dir %{_datadir}/%{name}/skins2
330 %dir %{_datadir}/%{name}/skins2/fonts
331 %{_datadir}/%{name}/http/vlm/*.html
332 %{_datadir}/%{name}/http/admin/*.html
333 %{_datadir}/%{name}/http/admin/.access
334 %{_datadir}/%{name}/http/style.css
335 %{_datadir}/%{name}/http/*.html
336 %{_datadir}/%{name}/ui.rc
337 %{_mandir}/man1/vlc.1*
338
339 %files devel
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_bindir}/vlc-config
342 %dir %{_includedir}/%{name}
343 %{_includedir}/%{name}/*
344
345 %files static
346 %defattr(644,root,root,755)
347 %{_libdir}/libvlc.a
348 %{_libdir}/%{name}/*.a
349
350 %files X11
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_bindir}/svlc
353 %attr(755,root,root) %{_bindir}/wxvlc
354 %attr(755,root,root) %{_libdir}/vlc/gui/libskins2_plugin.so
355 %attr(755,root,root) %{_libdir}/vlc/gui/libwxwindows_plugin.so
356 %attr(755,root,root) %{_libdir}/vlc/access/libscreen_plugin.so
357 %attr(755,root,root) %{_libdir}/vlc/video_output
358 %{?with_ggi:%exclude %{_libdir}/%{name}/video_output/libggi_plugin.so}
359 %exclude %{_libdir}/%{name}/video_output/libvout_sdl_plugin.so
360 %exclude %{_libdir}/%{name}/video_output/libfb_plugin.so
361 %attr(755,root,root) %{_libdir}/vlc/visualization/libxosd_plugin.so
362 %{_datadir}/%{name}/skins2/default.vlt
363 %{_datadir}/%{name}/skins2/fonts/FreeSans.ttf
364 %{_datadir}/%{name}/skins2/skin.catalog
365 %{_datadir}/%{name}/skins2/skin.dtd
366 %{_datadir}/%{name}/vlc*.xpm
367 %{_datadir}/%{name}/vlc*.png
368 %{_desktopdir}/*
369
370 %if %{with ggi}
371 %files GGI
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_libdir}/%{name}/video_output/libggi_plugin.so
374 %endif 
375
376 %files SDL
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/%{name}/video_output/libvout_sdl_plugin.so
379 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libaout_sdl_plugin.so
380
381 %files fb
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/%{name}/video_output/libfb_plugin.so
384
385 %files esd
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libesd_plugin.so
388
389 %if %{with alsa}
390 %files alsa
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libalsa_plugin.so
393 %endif
This page took 0.064091 seconds and 4 git commands to generate.