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