]> git.pld-linux.org Git - packages/xine-lib.git/blob - xine-lib.spec
- ver. 0.9.11a
[packages/xine-lib.git] / xine-lib.spec
1 # Conditional build:
2 # --without     aa
3 # --without     alsa
4 # --without     arts
5 # --with        directfb
6 # --with        dxr3
7 # --without     esd
8 # --without     opengl
9 # --without     sdl
10 # --without     xvid
11
12 %ifarch alpha
13 %define         _without_arts   1
14 %endif
15 %ifarch sparc sparc64
16 %define         _without_alsa   1
17 %define         _without_xvid   1
18 %endif
19
20 Summary:        A Free Video Player
21 Summary(ko):    °ø°³ µ¿¿µ»ó Ç÷¹À̾î
22 Summary(pl):    Odtwarzacz video
23 Summary(pt_BR): Xine, um player de video
24 Name:           xine-lib
25 Version:        0.9.11a
26 Release:        1
27 License:        GPL
28 Group:          Libraries
29 Source0:        http://xine.sourceforge.net/files/%{name}-%{version}.tar.gz
30 # taken from automake 1.5
31 Source1:        ptrdiff.m4
32 Patch0:         %{name}-am_fixes.patch
33 Patch1:         %{name}-noopt.patch
34 URL:            http://xine.sourceforge.net/
35 BuildRequires:  autoconf
36 BuildRequires:  automake >= 1.5
37 %{!?_without_aa:BuildRequires:          aalib-devel}
38 %{!?_without_aa:BuildRequires:          aalib-progs}
39 %{!?_without_arts:BuildRequires:        arts-devel}
40 %{!?_without_alsa:BuildRequires:        alsa-lib-devel}
41 %{!?_without_esd:BuildRequires:         esound-devel}
42 %{!?_without_opengl:BuildRequires:      OpenGL-devel}
43 %{!?_without_sdl:BuildRequires:         SDL-devel}
44 %{?_with_directfb:BuildRequires:        DirectFB-devel}
45 %ifarch %{ix86}
46 BuildRequires:  divx4linux-devel
47 %{!?_without_xvid:BuildRequires:        xvid-devel}
48 %else
49 BuildRequires:  libdivxdecore-devel
50 %endif
51 BuildRequires:  gettext-devel
52 BuildRequires:  glut-devel
53 BuildRequires:  imlib-devel
54 BuildRequires:  libvorbis-devel
55 BuildRequires:  libtool >= 1.4.2-9
56 BuildRequires:  pkgconfig
57 BuildRequires:  zlib-devel
58 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 Obsoletes:      xine
60
61 %define         _noautoreqdep   %{!?_without_opengl:libGL.so.1 libGLU.so.1}
62
63 %define         _prefix         /usr/X11R6
64 %define         _mandir         %{_prefix}/man
65 %define         _pluginsdir     %{_libdir}/xine/plugins
66
67 %description
68 xine is a free gpl-licensed video player for unix-like systems. We
69 support mpeg-2 and mpeg-1 system (audio + video multiplexed) streams,
70 eventually mpeg-4 and other formats might be added.
71
72 xine plays the video and audio data of mpeg-2 videos and synchronizes
73 the playback of both. Depending on the properties of the mpeg stream,
74 playback will need more or less processor power, 100% frame rate has
75 been seen on a 400 MHz P II system.
76
77 %description -l fr
78 xine est un lecteur vidéo libre sous license GPL pour les systèmes de
79 type unix. Nous supportons les flux mpeg-2 et mpeg-1 (audio + vidéo
80 multiplexés), éventuellement le mpeg-4 et d'autres formats peuvent
81 êtres ajoutés.
82
83 xine joue les données vidéo et audio de vidéo mpeg-2 et synchronise la
84 lecture des deux. En fonction des propriétes du flux mpeg, la lecture
85 aura besoin de plus ou moins de puissance du processeur, 100% de
86 restitution de trame a été vus sur un système PII 400MHz.
87
88 %description -l ko
89 xine ´Â GPL¶óÀ̼±½º¸¦ µû¸£´Â UNIX¿ë °ø°³ µ¿¿µ»ó Ç÷¹À̾îÀÔ´Ï´Ù. ÀÌ
90 Ç÷¹À̾î´Â mpeg-2 ¿Í mpeg 1 ½ºÆ®¸²À» Áö¿øÇϸç, ÇöÀç´Â Áö¿øÇÏÁö ¾ÊÁö¸¸
91 ³ªÁß¿¡´Â mpeg-4 ¿Í ´Ù¸¥ Çü½ÄÀÇ µ¿¿µ»óµµ Áö¿øÇÒ ¿¹Á¤ÀÔ´Ï´Ù.
92
93 %description -l pl
94 xine jest wolnodostêpnym odtwarzaczem video dla systemów uniksowych.
95 Obs³uguje strumienie MPEG-2 i MPEG-1 (d¼wiêk oraz obraz), mo¿e byæ
96 dodana obs³uga MPEG-4 i innych formatów.
97
98 xine odczytuje obraz i d¼wiêk z filmów MPEG-2 i synchronizuje ich
99 odtwarzanie. Zale¿nie od w³a¶ciwo¶ci strumienia MPEG, odtwarzanie mo¿e
100 wymagaæ wiêcej lub mniej mocy procesora, 100% klatek mo¿e byæ widoczne
101 na P II 400MHz.
102
103 %description -l pt_BR
104 O xine é um video player GPL para sistemas unix. Lê arquivos MPEG-2 e
105 MPEG-1, além de AVIs MS MPEG4 / OpenDivX.
106
107 O xine lê o conteúdo vídeo e áudio e sincroniza-os em tempo-real. As
108 necessidades de processador dependem das propriedades de cada arquivo.
109
110 %package oss
111 Summary:        XINE - OSS/ALSA support
112 Summary(pl):    XINE - obs³uga OSS/ALSA
113 Summary(pt_BR): XINE - suporte a oss
114 Group:          Libraries
115 Requires:       %{name} = %{version}
116
117 %description oss
118 XINE audio plugins with OSS/ALSA support.
119
120 %description oss -l pl
121 Wtyczka audio do XINE z obs³ug± OSS/ALSA.
122
123 %description oss -l pt_BR
124 Plugin de audio para o xine, com suporte a oss.
125
126 %package alsa
127 Summary:        XINE - alsa support
128 Summary(pl):    XINE - obs³uga alsa
129 Summary(pt_BR): XINE - suporte a alsa
130 Group:          Libraries
131 Requires:       %{name} = %{version}
132
133 %description alsa
134 XINE audio plugin with alsa support.
135
136 %description alsa -l pl
137 Wtyczka audio do XINE z obs³ug± ALSA.
138
139 %description alsa -l pt_BR
140 Plugin de audio para o xine, com suporte a alsa.
141
142 %package arts
143 Summary:        XINE - arts support
144 Summary(pl):    XINE - obs³uga arts
145 Summary(pt_BR): XINE - suporte a arts
146 Group:          Libraries
147 Requires:       %{name} = %{version}
148
149 %description arts
150 XINE audio plugin with arts support.
151
152 %description arts -l pl
153 Wtyczka audio do XINE z obs³ug± arts.
154
155 %package esd
156 Summary:        XINE - esd support
157 Summary(pl):    XINE - obs³uga esd
158 Summary(pt_BR): XINE - suporte a esd
159 Group:          Libraries
160 Requires:       %{name} = %{version}
161
162 %description esd
163 XINE audio plugin with esd support.
164
165 %description esd -l pl
166 Wtyczka audio do XINE z obs³ug± esd.
167
168 %description esd -l pt_BR
169 Plugin de audio para o xine, com suporte a esd.
170
171 %package dxr3
172 Summary:        XINE - DXR3 support
173 Summary(pl):    XINE - obs³uga DXR3
174 Group:          Libraries
175 Requires:       %{name} = %{version}
176
177 %description dxr3
178 XINE video/decoder plugins for DXR3 card support.
179
180 %description dxr3 -l pl
181 Wtyczka odtwarzacza obrazu do XINE z obs³ug± kart DXR3.
182
183 %package xvid
184 Summary:        XINE - xvid DIVX decoding support
185 Summary(pl):    XINE - obs³uga dekodera DIVX xvid
186 Group:          Libraries
187 Requires:       %{name} = %{version}
188
189 %description xvid
190 XINE decoder plugin for DIVX decoding with xvid library.
191
192 %description xvid -l pl
193 Wtyczka dla XINE do dekodowania DIVX poprzez bibliotekê xvid.
194
195 %package xv
196 Summary:        XINE - XFree XVideo support
197 Summary(pl):    XINE - obs³uga XFree XVideo
198 Summary(pt_BR): XINE - suporte a XFree XVideo
199 Group:          Libraries
200 Requires:       %{name} = %{version}
201
202 %description xv
203 XINE video plugin using XFree XVideo extension.
204
205 %description xv -l pl
206 Wtyczka video do XINE u¿ywaj±ca rozszerzenia XVideo.
207
208 %description xv -l pt_BR
209 Plugin de video para o xine, utilizando a extensão XVideo do XFree.
210
211 %package aa
212 Summary:        XINE - Ascii Art support
213 Summary(pl):    XINE - obs³uga Ascii Art
214 Summary(pt_BR): XINE - suporte a aalib
215 Group:          Libraries
216 Requires:       %{name} = %{version}
217
218 %description aa
219 XINE video plugin using Ascii Art library.
220
221 %description aa -l pl
222 Wtyczka video do XINE z obs³ug± Ascii Art.
223
224 %description aa -l pt_BR
225 Plugin de video para o xine, utilizando a aalib.
226
227 %package xshm
228 Summary:        XINE - XFree XShm support
229 Summary(pl):    XINE - obs³uga XFree XShm
230 Group:          Libraries
231 Requires:       %{name} >= %{version}
232
233 %description xshm
234 XINE video plugin using XFree MIT shared memory.
235
236 %description xshm -l pl
237 Wtyczka video do XINE z obs³ug± XFree MIT shared memory.
238
239 %package syncfb
240 Summary:        XINE - SyncFB (Matrox G200/G400) support
241 Summary(pl):    XINE - obs³uga SyncFB (Matrox G200/G400)
242 Group:          Libraries
243 Requires:       %{name} = %{version}
244
245 %description syncfb
246 SyncFB (for Matrox G200/G400 cards) interface for xine.
247
248 %description syncfb -l pl
249 Wtyczka video do XINE obs³uguj±ca interfejs SyncFB (dla kart Matrox G200/G400).
250
251 %package fb
252 Summary:        XINE - framebuffer support
253 Summary(pl):    XINE - obs³uga framebuffera
254 Group:          Libraries
255 Requires:       %{name} = %{version}
256
257 %description fb
258 SyncFB (for Matrox G200/G400 cards) interface for xine.
259
260 %description fb -l pl
261 Wtyczka video do XINE dla framebuffera.
262
263 %package directfb
264 Summary:        XINE - accelereted framebuffer support
265 Summary(pl):    XINE - obs³uga akelereowanego framebuffera
266 Group:          Libraries
267 Requires:       %{name} = %{version}
268
269 %description directfb
270 XINE plugin for accelereted framebuffer support (with DirectFB
271 library).
272
273 %description directfb -l pl
274 Wtyczka video do XINE dla akcelerowanego framebuffera (przez
275 bibliotekê DirectFB).
276
277 %package sdl
278 Summary:        XINE - SDL output support
279 Summary(pl):    XINE - obs³uga wyj¶cia SDL
280 Group:          Libraries
281 Requires:       %{name} = %{version}
282
283 %description sdl
284 XINE plugin for output with SDL library.
285
286 %description sdl -l pl
287 Wtyczka video do XINE dla wy¶wieltania poprzez bibliotekê SDL.
288
289 %package opengl
290 Summary:        XINE - OpenGL video output
291 Summary(pl):    XINE - wy¶wietlanie OpenGL
292 Group:          Libraries
293 Requires:       %{name} = %{version}
294
295 %description opengl
296 XINE plugin using OpenGL for video output.
297
298 %description opengl -l pl
299 Wtyczka video do XINE wykorzystuj±ca OpenGL do wy¶wietlania.
300
301 %package w32dll
302 Summary:        XINE - win32dll decoder support
303 Summary(pl):    XINE - obs³uga dekodera win32dll
304 Summary(pt_BR): XINE - suporte a decoder win32dll
305 Group:          Libraries
306 Requires:       %{name} = %{version}
307 Requires:       w32codec
308
309 %description w32dll
310 XINE win32dll decoder support.
311
312 %description w32dll -l pl
313 Obs³uga dekodera win32dll do XINE.
314
315 %description w32dll -l pt_BR
316 Suporte a win32dll para o xine.
317
318 %package devel
319 Summary:        XINE - development files
320 Summary(pl):    Pliki dla programistów XINE
321 Summary(pt_BR): XINE - arquivos de desenvolvimento
322 Group:          Development/Libraries
323 Requires:       %{name} = %{version}
324 Obsoletes:      xine-devel
325
326 %description devel
327 HTML documentation of XINE API and development components.
328
329 %description devel -l pl
330 Pliki dla programistów oraz dokumentacja HTML do API XINE.
331
332 %description devel -l pt_BR
333 Arquivos include a bibliotecas estáticas necessárias para compilar
334 plugins para o xine e o xine-ui.
335
336 %prep
337 %setup -q
338 %patch0 -p1
339 %patch1 -p1
340 cat %SOURCE1 >> acinclude.m4
341
342 %build
343 rm -f missing
344 libtoolize --copy --force
345 gettextize --copy --force
346 aclocal
347 %{__autoconf}
348 %{__automake}
349 autoheader
350
351 %configure \
352 %{!?_without_aa:        --with-aalib-prefix=/usr} \
353 %{!?_without_alsa:      --enable-alsa} \
354 %{?_without_alsa:       --disable-alsa} \
355 %{!?_without_dxr3:      --enable-dxr3} \
356 %{?_without_dxr3:       --disable-dxr3}
357
358 %{__make}
359
360 %install
361 rm -rf $RPM_BUILD_ROOT
362 install -d $RPM_BUILD_ROOT%{_aclocaldir}
363
364 %{__make} install \
365         DESTDIR=$RPM_BUILD_ROOT
366
367 mv $RPM_BUILD_ROOT%{_datadir}/aclocal/*.m4 $RPM_BUILD_ROOT%{_aclocaldir}
368
369 %find_lang %{name}
370
371 %clean
372 rm -rf $RPM_BUILD_ROOT
373
374 %post   -p /sbin/ldconfig
375 %postun -p /sbin/ldconfig
376
377 %files -f %{name}.lang
378 %defattr(644,root,root,755)
379 %attr(755,root,root) %{_libdir}/libxine*.so.*.*
380 %dir %{_datadir}/xine
381 %{_datadir}/xine/fonts
382 %dir %{_datadir}/xine/skins
383 %{_datadir}/xine/skins/*.png
384 %{_datadir}/xine/skins/*.mpg
385 %dir %{_libdir}/xine
386 %dir %{_pluginsdir}
387 %doc AUTHORS ChangeLog TODO
388
389 # input plugins
390 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_cda.so
391 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_dvd.so
392 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_file.so
393 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_http.so
394 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_mms.so
395 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_net.so
396 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_rtp.so
397 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_stdin_fifo.so
398 %attr(755,root,root) %{_pluginsdir}/xineplug_inp_vcd.so
399 # demuxer plugins
400 %attr(755,root,root) %{_pluginsdir}/xineplug_dmx_asf.so
401 %attr(755,root,root) %{_pluginsdir}/xineplug_dmx_avi.so
402 %attr(755,root,root) %{_pluginsdir}/xineplug_dmx_cda.so
403 %attr(755,root,root) %{_pluginsdir}/xineplug_dmx_mpeg*.so
404 %attr(755,root,root) %{_pluginsdir}/xineplug_dmx_ogg.so
405 %attr(755,root,root) %{_pluginsdir}/xineplug_dmx_qt.so
406 # decoder plugins
407 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_a52.so
408 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_cinepak.so
409 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_cyuv.so
410 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_divx4.so
411 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_dts.so
412 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_ff.so
413 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_lpcm.so
414 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_mad.so
415 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_mpeg2.so
416 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_msvc.so
417 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_spu.so
418 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_spucc.so
419 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_sputext.so
420 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_vorbis.so
421
422 %files oss
423 %defattr(644,root,root,755)
424 %attr(755,root,root) %{_pluginsdir}/*oss.so
425
426 %if %{!?_with_directfb:0}%{?_with_directfb:1}
427 %files directfb
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_pluginsdir}/*_directfb.so
430 %endif
431
432 %if %{!?_without_sdl:1}%{?_without_sdl:0}
433 %files sdl
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_pluginsdir}/*_sdl.so
436 %endif
437
438 %if %{!?_without_xvid:1}%{?_without_xvid:0}
439 %files xvid
440 %defattr(644,root,root,755)
441 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_xvid.so
442 %endif
443
444 %if %{?_with_alsa:1}%{!?_with_alsa:0}
445 %files alsa
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_pluginsdir}/*alsa*.so
448 %endif
449
450 %if %{!?_without_arts:1}%{?_without_arts:0}
451 %files arts
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_pluginsdir}/*arts.so
454 %endif
455
456 %if %{!?_without_esd:1}%{?_without_esd:0}
457 %files esd
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_pluginsdir}/*esd.so
460 %endif
461
462 %if %{?_with_dxr3:1}%{!?_with_dxr3:0}
463 %files dxr3
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_pluginsdir}/xineplug_decode_dxr3.so
466 %attr(755,root,root) %{_pluginsdir}/xineplug_vo_out_dxr3.so
467 %endif
468
469 %files xv
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_pluginsdir}/*xv.so
472
473 %if %{!?_without_aa:1}%{?_without_aa:0}
474 %files aa
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_pluginsdir}/*aa.so
477 %endif
478
479 %files xshm
480 %defattr(644,root,root,755)
481 %attr(644,root,root) %{_pluginsdir}/*xshm.so
482
483 %files syncfb
484 %defattr(644,root,root,755)
485 %attr(644,root,root) %{_pluginsdir}/*syncfb.so
486
487 %files fb
488 %defattr(644,root,root,755)
489 %attr(644,root,root) %{_pluginsdir}/*_fb.so
490
491 %if %{!?_without_opengl:1}%{?_without_opengl:0}
492 %files opengl
493 %defattr(644,root,root,755)
494 %attr(644,root,root) %{_pluginsdir}/*opengl.so
495 %endif
496
497 %ifarch %{ix86}
498 %files w32dll
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{_pluginsdir}/*w32dll.so
501 %endif
502
503 %files devel
504 %defattr(644,root,root,755)
505 %doc doc/xine-lib-API/html/*.{html,png,gif,css}
506 %attr(755,root,root) %{_bindir}/xine-config
507 %{_includedir}/*
508 %attr(755,root,root) %{_libdir}/libxine*.la
509 %attr(755,root,root) %{_libdir}/libxine*.so
510 %attr(755,root,root) %{_pluginsdir}/*.la
511 %{_mandir}/man[13]/*
512 %{_aclocaldir}/*.m4
This page took 0.074941 seconds and 4 git commands to generate.