3 %bcond_without aalib # aaxine UI
4 %bcond_with caca # cacaxine UI
5 %bcond_without lirc # lirc support
6 %bcond_without nvtv # nvtv support
7 %bcond_with directfb # dfbxine UI [disabled in sources at the moment]
8 %bcond_with vdr # vdr special keys support
10 %ifnarch alpha %{arm} %{ix86} ia64 sh %{x8664}
13 %define xine_ver 1:1.1.0
14 Summary: A Free Video Player
15 Summary(ko.UTF-8): 공개 동영상 플레이어
16 Summary(pl.UTF-8): Odtwarzacz video
17 Summary(pt_BR.UTF-8): Xine, um player de video
18 Summary(zh_CN.UTF-8): 一个免费的视频播放器(界面)
23 Group: X11/Applications/Multimedia
24 Source0: https://downloads.sourceforge.net/xine/%{name}-%{version}.tar.xz
25 # Source0-md5: 86a4db9050405a91fcc33b7ad85274f5
26 Source1: xine_logo.png
27 Patch0: %{name}-ncurses.patch
28 Patch1: %{name}-nolibs.patch
29 Patch2: %{name}-pl.po.patch
30 Patch3: %{name}-build.patch
31 Patch4: %{name}-desktop.patch
32 URL: http://www.xine-project.org/
33 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.10}
34 %{?with_aalib:BuildRequires: aalib-devel >= 1.2.0}
35 BuildRequires: autoconf >= 2.59
36 BuildRequires: automake >= 1:1.8.1
38 BuildRequires: curl-devel >= 7.10.2
39 BuildRequires: gettext-tools >= 0.19.8
40 %{?with_caca:BuildRequires: libcaca-devel >= 0.99-0.beta19}
41 %{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.6}
42 BuildRequires: libjpeg-devel
43 BuildRequires: libpng-devel >= 2:1.4.0
44 %{?with_lirc:BuildRequires: lirc-devel}
45 BuildRequires: ncurses-devel
46 BuildRequires: pkgconfig
47 BuildRequires: readline-devel >= 4.2a
48 BuildRequires: rpmbuild(macros) >= 1.213
49 BuildRequires: tar >= 1:1.24
50 BuildRequires: xine-lib-devel >= %{xine_ver}
51 BuildRequires: xorg-lib-libX11-devel
52 BuildRequires: xorg-lib-libXScrnSaver-devel
53 BuildRequires: xorg-lib-libXext-devel
54 BuildRequires: xorg-lib-libXft-devel
55 BuildRequires: xorg-lib-libXinerama-devel
56 BuildRequires: xorg-lib-libXt-devel
57 BuildRequires: xorg-lib-libXtst-devel
58 BuildRequires: xorg-lib-libXv-devel
59 BuildRequires: xorg-lib-libXxf86vm-devel
61 Requires: xine-lib >= %{xine_ver}
62 Requires: xine-plugin-audio >= %{xine_ver}
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 xine is a free gpl-licensed video player for Unix-like systems. We
68 support mpeg-2 and mpeg-1 system (audio + video multiplexed) streams,
69 eventually mpeg-4 and other formats might be added.
71 xine plays the video and audio data of mpeg-2 videos and synchronizes
72 the playback of both. Depending on the properties of the mpeg stream,
73 playback will need more or less processor power, 100% frame rate has
74 been seen on a 400 MHz P II system.
76 %description -l fr.UTF-8
77 xine est un lecteur vidéo libre sous license GPL pour les systèmes de
78 type Unix. Nous supportons les flux mpeg-2 et mpeg-1 (audio + vidéo
79 multiplexés), éventuellement le mpeg-4 et d'autres formats peuvent
82 xine joue les données vidéo et audio de vidéo mpeg-2 et synchronise la
83 lecture des deux. En fonction des propriétes du flux mpeg, la lecture
84 aura besoin de plus ou moins de puissance du processeur, 100% de
85 restitution de trame a été vus sur un système PII 400MHz.
87 %description -l ko.UTF-8
88 xine 는 GPL라이선스를 따르는 UNIX용 공개 동영상 플레이어입니다. 이
89 플레이어는 mpeg-2 와 mpeg 1 스트림을 지원하며, 현재는 지원하지 않지만
90 나중에는 mpeg-4 와 다른 형식의 동영상도 지원할 예정입니다.
92 %description -l pl.UTF-8
93 xine jest wolnodostępnym odtwarzaczem filmów dla systemów uniksowych.
94 Obsługuje strumienie MPEG-2 i MPEG-1 (przeplatany dźwięk i obraz),
95 może być dodana obsługa MPEG-4 i innych formatów.
97 %description -l pt_BR.UTF-8
98 O xine é um video player GPL para sistemas unix. Lê arquivos MPEG-2 e
99 MPEG-1, além de AVIs MS MPEG4 / OpenDivX.
101 O xine lê o conteúdo vídeo e áudio e sincroniza-os em tempo-real. As
102 necessidades de processador dependem das propriedades de cada arquivo.
105 Summary: XINE - Ascii Art player
106 Summary(pl.UTF-8): XINE - odtwarzacz Ascii Art
107 Summary(pt_BR.UTF-8): XINE - Player em Ascii Art (aalib)
108 Group: Applications/Multimedia
109 Requires: xine-lib >= %{xine_ver}
110 Requires: xine-output-video-aa >= %{xine_ver}
111 Requires: xine-plugin-audio >= %{xine_ver}
114 Video player using ASCII Art library.
116 %description aa -l pl.UTF-8
117 Odtwarzacz filmów używający biblioteki ASCII Art.
119 %description aa -l pt_BR.UTF-8
120 Interface para o xine utilizando aalib (ASCII Art Library).
123 Summary: XINE - Color ASCII Art player
124 Summary(pl.UTF-8): XINE - odtwarzacz kolorowy ASCII Art
125 Group: Applications/Multimedia
126 Requires: xine-lib >= %{xine_ver}
127 Requires: xine-output-video-caca >= %{xine_ver}
128 Requires: xine-plugin-audio >= %{xine_ver}
131 Video player using Colour ASCII Art library.
133 %description caca -l pl.UTF-8
134 Odtwarzacz filmów używający biblioteki CACA.
137 Summary: XINE - player for DirectFB
138 Summary(pl.UTF-8): XINE - odtwarzacz dla DirectFB
139 Group: Applications/Multimedia
140 Requires: xine-lib >= %{xine_ver}
141 Requires: xine-output-video-directfb >= %{xine_ver}
142 Requires: xine-plugin-audio >= %{xine_ver}
145 Video player using DirectFB library.
147 %description dfb -l pl.UTF-8
148 Odtwarzacz filmów używający biblioteki DirectFB.
166 %{!?with_lirc:--disable-lirc} \
167 %{!?with_nvtv:--disable-nvtvsimple} \
168 --disable-silent-rules \
169 %{?with_vdr:--enable-vdr-keys} \
170 %{!?with_aalib:--without-aalib} \
171 %{!?with_caca:--without-caca}
176 rm -rf $RPM_BUILD_ROOT
177 install -d $RPM_BUILD_ROOT%{_datadir}/xine/skins
180 DESTDIR=$RPM_BUILD_ROOT \
181 docdir=$RPM_BUILD_ROOT%{_datadir}/doc/xine
183 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xine/skins
185 cp src/xitk/xine-toolkit/README doc/README.xitk
186 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/{xine-ui,xitk}
188 %find_lang %{name} --all-name
191 rm -rf $RPM_BUILD_ROOT
193 %files -f %{name}.lang
194 %defattr(644,root,root,755)
195 %doc ChangeLog doc/{README.config_en,README.en.*,README.xitk}
196 %lang(cs) %doc doc/{README.cs.*,README_cs}
197 %lang(de) %doc doc/README_de
198 %lang(es) %doc doc/README_es
199 %lang(fi) %doc doc/README_fi
200 %lang(fr) %doc doc/README_fr
201 %lang(it) %doc doc/README_it
202 %lang(pl) %doc doc/README_pl
203 %lang(uk) %doc doc/README_uk
204 %attr(755,root,root) %{_bindir}/fbxine
205 %attr(755,root,root) %{_bindir}/xine
206 %attr(755,root,root) %{_bindir}/xine-bugreport
207 %attr(755,root,root) %{_bindir}/xine-check
208 %attr(755,root,root) %{_bindir}/xine-remote
209 %dir %{_datadir}/xine
210 %{_datadir}/xine/oxine
211 %{_datadir}/xine/skins
212 %{_datadir}/xine/visuals
213 %{_mandir}/man1/xine*.1*
214 %lang(de) %{_mandir}/de/man1/xine*.1*
215 %lang(es) %{_mandir}/es/man1/xine*.1*
216 %lang(fr) %{_mandir}/fr/man1/xine*.1*
217 %lang(nl) %{_mandir}/nl/man1/xine*.1*
218 %lang(pl) %{_mandir}/pl/man1/xine*.1*
219 %{_datadir}/mime/packages/xine-ui.xml
220 %{_desktopdir}/xine.desktop
221 %{_iconsdir}/hicolor/*/apps/xine.png
222 %{_iconsdir}/hicolor/scalable/apps/xine.svgz
223 %{_pixmapsdir}/xine.xpm
224 %{_pixmapsdir}/xine_32.xpm
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_bindir}/aaxine
230 %{_mandir}/man1/aaxine.1*
231 %lang(de) %{_mandir}/de/man1/aaxine.1*
232 %lang(es) %{_mandir}/es/man1/aaxine.1*
233 %lang(nl) %{_mandir}/nl/man1/aaxine.1*
234 %lang(pl) %{_mandir}/pl/man1/aaxine.1*
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_bindir}/cacaxine
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_bindir}/dfbxine