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