]> git.pld-linux.org Git - packages/vlc.git/blob - vlc.spec
- more portable lib64 condition
[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_with     mozilla # build mozilla plugin
12 %bcond_with     slp     # build with slp, broken
13 %bcond_with     svgalib # build with svgalib video_output
14 %bcond_with     hal     # build with hal support
15 #
16 Summary:        VLC - a multimedia player and stream server
17 Summary(pl):    VLC - odtwarzacz multimedialny oraz serwer strumieni
18 Name:           vlc
19 Version:        0.8.2
20 Release:        0.2
21 License:        GPL
22 Group:          X11/Applications/Multimedia
23 Source0:        http://download.videolan.org/pub/videolan/vlc/%{version}/%{name}-%{version}.tar.gz
24 # Source0-md5:  0e56141a54055686c28e3de4dbed5990
25 Source1:        %{name}.desktop
26 Patch0:         %{name}-altivec.patch
27 Patch1:         %{name}-buildflags.patch
28 Patch2:         %{name}-defaultfont.patch
29 Patch3:         %{name}-live.patch
30 Patch4:         %{name}-x8864.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 %{?with_arts: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 %{?with_hal: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 %{?with_svgalib: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 -p0
200 %patch2 -p1
201 %patch3 -p1
202 %patch4 -p1
203
204 %build
205 cp -f /usr/share/automake/config.* .
206 %{__gettextize}
207 %{__aclocal} -I m4
208 %{__autoconf}
209 CFLAGS="%{rpmcflags} -DALSA_PCM_OLD_HW_PARAMS_API"
210 %configure \
211 %ifarch ppc
212         --disable-altivec \
213 %endif
214         --enable-aa \
215         %{?with_alsa:--enable-alsa} \
216         %{?with_arts:--enable-arts} \
217         %{!?with_arts:--disable-arts} \
218         --enable-caca \
219         --enable-dsp \
220         --enable-dummy \
221         --enable-dv \
222         --enable-dvb \
223         --enable-dvbpsi \
224         --with-dvdcss \
225         --enable-dvdnav \
226         --enable-dvdread \
227         --enable-esd \
228         --enable-faad \
229         --enable-fb \
230         --enable-freetype \
231         --enable-fribidi \
232         --enable-ffmpeg \
233         --enable-flac \
234         %{?with_ggi:--enable-ggi} \
235         %{?with_ggi:--with-ggi} \
236         %{!?with_ggi:--disable-ggi} \
237         --disable-glide \
238         --enable-lirc \
239         --enable-mad \
240         --enable-mga \
241         %{?with_mozilla:--enable-mozilla } \
242         %{?with_live:--enable-livedotcom } \
243         %{!?with_live:--disable-livedotcom } \
244         --with-livedotcom-tree=%{_libdir}/liveMedia \
245         --enable-ncurses \
246         --enable-pvr \
247         --enable-sdl \
248         --with-sdl=/usr \
249         --enable-skins2 \
250         %{?with_slp:--enable-slp} \
251         %{!?with_slp:--disable-slp} \
252         %{?with_svgalib:--enable-svgalib} \
253         --enable-tarkin \
254         --enable-theora \
255         --enable-tremor \
256         --enable-v4l\
257         --enable-x11 \
258         --enable-xosd \
259         --enable-xvid \
260         --enable-oss \
261         --disable-testsuite \
262         --with-wx-config=wx-gtk2-ansi-config \
263         %{!?with_hal:--disable-hal} \
264         --disable-optimizations # we use own RPM_OPT_FLAGS optimalizations
265
266 # echo "CFLAGS += -I/usr/include/ncurses" >> Makefile.opts
267 %{__make}
268
269 %install
270 rm -rf $RPM_BUILD_ROOT
271 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
272
273 %{__make} install \
274         DESTDIR=$RPM_BUILD_ROOT
275
276 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
277 install doc/vlc.1 $RPM_BUILD_ROOT%{_mandir}/man1
278
279 %if "%{_lib}" != "lib"
280 install -d $RPM_BUILD_ROOT%{_prefix}/lib
281 ln -sf %{_libdir}/vlc $RPM_BUILD_ROOT%{_prefix}/lib
282 %endif
283
284 %find_lang %{name}
285
286 %clean
287 rm -rf $RPM_BUILD_ROOT
288
289 %files -f %{name}.lang
290 %defattr(644,root,root,755)
291 %doc AUTHORS MAINTAINERS NEWS README THANKS
292 %doc doc/bugreport-howto.txt doc/intf-cdda.txt
293 %doc doc/intf-vcd.txt doc/translations.txt
294 %attr(755,root,root) %{_bindir}/vlc
295 %if "%{_lib}" != "lib"
296 %{_prefix}/lib/vlc
297 %endif
298 %dir %{_libdir}/vlc
299 %dir %{_libdir}/vlc/gui
300 %dir %{_libdir}/vlc/visualization
301 %attr(755,root,root) %{_libdir}/vlc/gui/libncurses_plugin.so
302 %attr(755,root,root) %{_libdir}/vlc/visualization/libvisual_plugin.so
303 %attr(755,root,root) %{_libdir}/vlc/mux
304 %attr(755,root,root) %{_libdir}/vlc/misc
305 %attr(755,root,root) %{_libdir}/vlc/control
306 %attr(755,root,root) %{_libdir}/vlc/access_output
307 %attr(755,root,root) %{_libdir}/vlc/codec
308 %attr(755,root,root) %{_libdir}/vlc/demux
309 %attr(755,root,root) %{_libdir}/vlc/access
310 %exclude %{_libdir}/vlc/access/libscreen_plugin.so
311 %attr(755,root,root) %{_libdir}/vlc/video_chroma
312 %attr(755,root,root) %{_libdir}/vlc/audio_mixer
313 %attr(755,root,root) %{_libdir}/vlc/video_filter
314 %attr(755,root,root) %{_libdir}/vlc/stream_out
315 %attr(755,root,root) %{_libdir}/vlc/audio_filter
316 %attr(755,root,root) %{_libdir}/vlc/packetizer
317 %attr(755,root,root) %{_libdir}/vlc/audio_output
318 %attr(755,root,root) %{_libdir}/vlc/access_filter
319 %attr(755,root,root) %{_libdir}/vlc/services_discovery
320 %exclude %{_libdir}/%{name}/audio_output/libaout_sdl_plugin.so
321 %{?with_alsa:%exclude %{_libdir}/%{name}/audio_output/libalsa_plugin.so}
322 %exclude %{_libdir}/%{name}/audio_output/libesd_plugin.so
323 %dir %{_datadir}/%{name}
324 %dir %{_datadir}/%{name}/http
325 %dir %{_datadir}/%{name}/http/vlm
326 %dir %{_datadir}/%{name}/http/admin
327 %dir %{_datadir}/%{name}/skins2
328 %dir %{_datadir}/%{name}/skins2/fonts
329 %{_datadir}/%{name}/http/vlm/*.html
330 %{_datadir}/%{name}/http/admin/*.html
331 %{_datadir}/%{name}/http/admin/.access
332 %{_datadir}/%{name}/http/style.css
333 %{_datadir}/%{name}/http/*.html
334 %{_datadir}/%{name}/ui.rc
335 %{_mandir}/man1/vlc.1*
336
337 %files devel
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_bindir}/vlc-config
340 %dir %{_includedir}/%{name}
341 %{_includedir}/%{name}/*
342
343 %files static
344 %defattr(644,root,root,755)
345 %{_libdir}/libvlc.a
346 %{_libdir}/%{name}/*.a
347
348 %files X11
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_bindir}/svlc
351 %attr(755,root,root) %{_bindir}/wxvlc
352 %attr(755,root,root) %{_libdir}/vlc/gui/libskins2_plugin.so
353 %attr(755,root,root) %{_libdir}/vlc/gui/libwxwindows_plugin.so
354 %attr(755,root,root) %{_libdir}/vlc/access/libscreen_plugin.so
355 %attr(755,root,root) %{_libdir}/vlc/video_output
356 %{?with_ggi:%exclude %{_libdir}/%{name}/video_output/libggi_plugin.so}
357 %exclude %{_libdir}/%{name}/video_output/libvout_sdl_plugin.so
358 %exclude %{_libdir}/%{name}/video_output/libfb_plugin.so
359 %attr(755,root,root) %{_libdir}/vlc/visualization/libxosd_plugin.so
360 %{_datadir}/%{name}/skins2/default.vlt
361 %{_datadir}/%{name}/skins2/fonts/FreeSans.ttf
362 %{_datadir}/%{name}/skins2/skin.catalog
363 %{_datadir}/%{name}/skins2/skin.dtd
364 %{_datadir}/%{name}/vlc*.xpm
365 %{_datadir}/%{name}/vlc*.png
366 %{_desktopdir}/*
367
368 %if %{with ggi}
369 %files GGI
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/%{name}/video_output/libggi_plugin.so
372 %endif 
373
374 %files SDL
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_libdir}/%{name}/video_output/libvout_sdl_plugin.so
377 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libaout_sdl_plugin.so
378
379 %files fb
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/%{name}/video_output/libfb_plugin.so
382
383 %files esd
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libesd_plugin.so
386
387 %if %{with alsa}
388 %files alsa
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_libdir}/%{name}/audio_output/libalsa_plugin.so
391 %endif
This page took 0.070787 seconds and 4 git commands to generate.