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