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