]>
Commit | Line | Data |
---|---|---|
6296ad9f | 1 | # |
e98f50d4 | 2 | # Conditional build: |
d69d22bb | 3 | %bcond_without aalib # without aaxine UI |
7c11d1e7 | 4 | %bcond_without caca # without cacaxine UI |
d69d22bb | 5 | %bcond_without lirc # without lirc support |
e49d4aba | 6 | %bcond_without nvtv # without nvtv support |
8f92895f | 7 | %bcond_with directfb # with dfbxine UI [disabled in sources at the moment] |
cc3c4dd7 | 8 | %bcond_with vdr # with vdr special keys support |
6296ad9f | 9 | # |
9aa0c46e | 10 | %ifnarch alpha arm %{ix86} ia64 sh %{x8664} |
e49d4aba JB |
11 | %undefine with_nvtv |
12 | %endif | |
4b695efd | 13 | %define xine_ver 1:1.1.0 |
2dcc5099 | 14 | Summary: A Free Video Player |
c7af9d5d ER |
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): 一个免费的视频播放器(界面) | |
796226cc | 19 | Name: xine-ui |
cc3c4dd7 | 20 | Version: 0.99.6 |
4ad96c8b | 21 | Release: 4 |
cc3c4dd7 | 22 | License: GPL v2+ |
796226cc | 23 | Group: X11/Applications/Multimedia |
cc3c4dd7 JB |
24 | Source0: http://downloads.sourceforge.net/xine/%{name}-%{version}.tar.xz |
25 | # Source0-md5: d468b4e7fe39ff19888261e1da9be914 | |
796226cc | 26 | Source1: xine.desktop |
cc3c4dd7 JB |
27 | #Source2: xine.png |
28 | Source2: xine_logo.png | |
6296ad9f JB |
29 | Patch0: %{name}-ncurses.patch |
30 | Patch1: %{name}-nolibs.patch | |
7c11d1e7 JB |
31 | Patch2: %{name}-pl.po.patch |
32 | Patch3: %{name}-curl.patch | |
cc3c4dd7 | 33 | Patch4: %{name}-lirc.patch |
4879610c | 34 | Patch5: %{name}-libpng15.patch |
cc3c4dd7 | 35 | URL: http://www.xine-project.org/ |
d69d22bb JB |
36 | %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.10} |
37 | %{?with_aalib:BuildRequires: aalib-devel >= 1.2.0} | |
6296ad9f | 38 | BuildRequires: autoconf >= 2.53 |
c454a20f | 39 | BuildRequires: automake >= 1:1.8.1 |
94d3efde | 40 | BuildRequires: bison |
7c11d1e7 | 41 | BuildRequires: curl-devel >= 7.10.2 |
94d3efde | 42 | BuildRequires: gettext-devel |
cc3c4dd7 | 43 | %{?with_caca:BuildRequires: libcaca-devel >= 0.99} |
e49d4aba | 44 | %{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.6} |
b1558e97 | 45 | BuildRequires: libpng-devel >= 2:1.4.0 |
796226cc | 46 | BuildRequires: libtool |
d69d22bb | 47 | %{?with_lirc:BuildRequires: lirc-devel} |
97f9434c | 48 | BuildRequires: ncurses-devel |
97f9434c | 49 | BuildRequires: pkgconfig |
9ab02642 | 50 | BuildRequires: readline-devel >= 4.2a |
9aa0c46e | 51 | BuildRequires: rpmbuild(macros) >= 1.213 |
cc3c4dd7 | 52 | BuildRequires: tar >= 1:1.24 |
d69d22bb | 53 | BuildRequires: xine-lib-devel >= %{xine_ver} |
cc3c4dd7 JB |
54 | BuildRequires: xorg-lib-libX11-devel |
55 | BuildRequires: xorg-lib-libXext-devel | |
4541f15e | 56 | BuildRequires: xorg-lib-libXft-devel |
cc3c4dd7 | 57 | BuildRequires: xorg-lib-libXinerama-devel |
696ee7f1 | 58 | BuildRequires: xorg-lib-libXt-devel |
cc3c4dd7 JB |
59 | BuildRequires: xorg-lib-libXtst-devel |
60 | BuildRequires: xorg-lib-libXv-devel | |
61 | BuildRequires: xorg-lib-libXxf86vm-devel | |
62 | BuildRequires: xz | |
d69d22bb JB |
63 | Requires: xine-lib >= %{xine_ver} |
64 | Requires: xine-plugin-audio >= %{xine_ver} | |
796226cc PG |
65 | Obsoletes: xine |
66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
67 | ||
796226cc | 68 | %description |
951d3475 | 69 | xine is a free gpl-licensed video player for Unix-like systems. We |
796226cc PG |
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 | ||
632099cb JR |
78 | %description -l fr.UTF-8 |
79 | xine est un lecteur vidéo libre sous license GPL pour les systèmes de | |
951d3475 | 80 | type Unix. Nous supportons les flux mpeg-2 et mpeg-1 (audio + vidéo |
632099cb JR |
81 | multiplexés), éventuellement le mpeg-4 et d'autres formats peuvent |
82 | êtres ajoutés. | |
796226cc | 83 | |
632099cb JR |
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 | |
796226cc | 86 | aura besoin de plus ou moins de puissance du processeur, 100% de |
632099cb | 87 | restitution de trame a été vus sur un système PII 400MHz. |
796226cc | 88 | |
632099cb JR |
89 | %description -l ko.UTF-8 |
90 | xine 는 GPL라이선스를 따르는 UNIX용 공개 동영상 플레이어입니다. 이 | |
91 | 플레이어는 mpeg-2 와 mpeg 1 스트림을 지원하며, 현재는 지원하지 않지만 | |
92 | 나중에는 mpeg-4 와 다른 형식의 동영상도 지원할 예정입니다. | |
796226cc | 93 | |
632099cb JR |
94 | %description -l pl.UTF-8 |
95 | xine jest wolnodostępnym odtwarzaczem filmów dla systemów uniksowych. | |
96 | Obsługuje strumienie MPEG-2 i MPEG-1 (przeplatany dźwięk i obraz), | |
97 | może być dodana obsługa MPEG-4 i innych formatów. | |
796226cc | 98 | |
632099cb JR |
99 | %description -l pt_BR.UTF-8 |
100 | O xine é um video player GPL para sistemas unix. Lê arquivos MPEG-2 e | |
101 | MPEG-1, além de AVIs MS MPEG4 / OpenDivX. | |
d90e3a32 | 102 | |
632099cb | 103 | O xine lê o conteúdo vídeo e áudio e sincroniza-os em tempo-real. As |
d90e3a32 | 104 | necessidades de processador dependem das propriedades de cada arquivo. |
105 | ||
01b24efa | 106 | %package aa |
2dcc5099 | 107 | Summary: XINE - Ascii Art player |
c7af9d5d ER |
108 | Summary(pl.UTF-8): XINE - odtwarzacz Ascii Art |
109 | Summary(pt_BR.UTF-8): XINE - Player em Ascii Art (aalib) | |
c366d8c0 | 110 | Group: Applications/Multimedia |
d69d22bb JB |
111 | Requires: xine-lib >= %{xine_ver} |
112 | Requires: xine-output-video-aa >= %{xine_ver} | |
113 | Requires: xine-plugin-audio >= %{xine_ver} | |
796226cc | 114 | |
01b24efa | 115 | %description aa |
951d3475 | 116 | Video player using ASCII Art library. |
796226cc | 117 | |
632099cb | 118 | %description aa -l pl.UTF-8 |
951d3475 | 119 | Odtwarzacz filmów używający biblioteki ASCII Art. |
5a7b9f94 | 120 | |
632099cb | 121 | %description aa -l pt_BR.UTF-8 |
951d3475 | 122 | Interface para o xine utilizando aalib (ASCII Art Library). |
d90e3a32 | 123 | |
7c11d1e7 | 124 | %package caca |
951d3475 | 125 | Summary: XINE - Color ASCII Art player |
126 | Summary(pl.UTF-8): XINE - odtwarzacz kolorowy ASCII Art | |
7c11d1e7 JB |
127 | Group: Applications/Multimedia |
128 | Requires: xine-lib >= %{xine_ver} | |
129 | Requires: xine-output-video-caca >= %{xine_ver} | |
130 | Requires: xine-plugin-audio >= %{xine_ver} | |
131 | ||
132 | %description caca | |
951d3475 | 133 | Video player using Colour ASCII Art library. |
7c11d1e7 | 134 | |
632099cb JR |
135 | %description caca -l pl.UTF-8 |
136 | Odtwarzacz filmów używający biblioteki CACA. | |
7c11d1e7 | 137 | |
7f33fb2e | 138 | %package dfb |
139 | Summary: XINE - player for DirectFB | |
c7af9d5d | 140 | Summary(pl.UTF-8): XINE - odtwarzacz dla DirectFB |
c366d8c0 | 141 | Group: Applications/Multimedia |
d69d22bb JB |
142 | Requires: xine-lib >= %{xine_ver} |
143 | Requires: xine-output-video-directfb >= %{xine_ver} | |
144 | Requires: xine-plugin-audio >= %{xine_ver} | |
7f33fb2e | 145 | |
146 | %description dfb | |
147 | Video player using DirectFB library. | |
148 | ||
632099cb JR |
149 | %description dfb -l pl.UTF-8 |
150 | Odtwarzacz filmów używający biblioteki DirectFB. | |
7f33fb2e | 151 | |
796226cc | 152 | %prep |
6296ad9f | 153 | %setup -q |
cc3c4dd7 | 154 | %patch0 -p1 |
6296ad9f | 155 | %patch1 -p1 |
76a7c691 | 156 | %patch2 -p1 |
9ab02642 | 157 | %patch3 -p1 |
a8a2efd3 | 158 | %patch4 -p1 |
4879610c | 159 | %patch5 -p1 |
796226cc | 160 | |
cc3c4dd7 | 161 | %{__rm} po/stamp-po |
76a7c691 | 162 | |
796226cc | 163 | %build |
29004da5 | 164 | %{__libtoolize} |
329b9339 | 165 | %{__aclocal} -I m4 |
973f1c80 | 166 | %{__autoconf} |
90e01190 | 167 | %{__automake} |
6562995b | 168 | %{__autoheader} |
0e0bb6d4 | 169 | %configure \ |
cc3c4dd7 JB |
170 | %{!?with_lirc:--disable-lirc} \ |
171 | %{!?with_nvtv:--disable-nvtvsimple} \ | |
172 | %{?with_vdr:--enable-vdr-keys} \ | |
173 | %{!?with_aalib:--without-aalib} | |
82e92d93 | 174 | |
796226cc PG |
175 | %{__make} |
176 | ||
177 | %install | |
178 | rm -rf $RPM_BUILD_ROOT | |
f5d61ecd | 179 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/xine/skins} |
796226cc | 180 | |
2dcc5099 | 181 | %{__make} install \ |
182 | DESTDIR=$RPM_BUILD_ROOT \ | |
183 | docdir=$RPM_BUILD_ROOT%{_datadir}/doc/xine | |
796226cc | 184 | |
f5d61ecd | 185 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
cc3c4dd7 | 186 | install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xine/skins |
796226cc | 187 | |
71e119af | 188 | cp src/xitk/xine-toolkit/README doc/README.xitk |
cc3c4dd7 | 189 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/{xine-ui,xitk} |
71e119af | 190 | |
d8ab0302 | 191 | %find_lang %{name} --all-name |
f7d431b9 | 192 | |
796226cc PG |
193 | %clean |
194 | rm -rf $RPM_BUILD_ROOT | |
195 | ||
d8ab0302 | 196 | %files -f %{name}.lang |
796226cc | 197 | %defattr(644,root,root,755) |
cc3c4dd7 JB |
198 | %doc ChangeLog doc/{README.config_en,README.en.*,README.xitk} |
199 | %lang(cs) %doc doc/{README.cs.*,README_cs} | |
7c7ad477 | 200 | %lang(de) %doc doc/README_de |
201 | %lang(es) %doc doc/README_es | |
0f0c5b0e | 202 | %lang(fi) %doc doc/README_fi |
7c7ad477 | 203 | %lang(fr) %doc doc/README_fr |
204 | %lang(it) %doc doc/README_it | |
205 | %lang(pl) %doc doc/README_pl | |
206 | %lang(uk) %doc doc/README_uk | |
80084f13 | 207 | %attr(755,root,root) %{_bindir}/fbxine |
2dcc5099 | 208 | %attr(755,root,root) %{_bindir}/xine |
2a41fb2d JK |
209 | %attr(755,root,root) %{_bindir}/xine-bugreport |
210 | %attr(755,root,root) %{_bindir}/xine-check | |
ee96bddf | 211 | %attr(755,root,root) %{_bindir}/xine-remote |
ee96bddf | 212 | %{_datadir}/xine/desktop |
db057dfb JB |
213 | %{_datadir}/xine/oxine |
214 | %{_datadir}/xine/skins | |
7c7ad477 | 215 | %{_datadir}/xine/visuals |
1be927e2 JB |
216 | %{_mandir}/man1/xine*.1* |
217 | %lang(de) %{_mandir}/de/man1/xine*.1* | |
218 | %lang(es) %{_mandir}/es/man1/xine*.1* | |
219 | %lang(fr) %{_mandir}/fr/man1/xine*.1* | |
220 | %lang(pl) %{_mandir}/pl/man1/xine*.1* | |
cc3c4dd7 | 221 | %{_datadir}/mime/packages/xine-ui.xml |
f5d61ecd | 222 | %{_desktopdir}/xine.desktop |
cc3c4dd7 JB |
223 | %{_iconsdir}/hicolor/*/apps/xine.png |
224 | %{_pixmapsdir}/xine.xpm | |
796226cc | 225 | |
d69d22bb | 226 | %if %{with aalib} |
1be927e2 JB |
227 | %files aa |
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* | |
cc3c4dd7 | 232 | %lang(es) %{_mandir}/es/man1/aaxine.1* |
1be927e2 JB |
233 | %lang(pl) %{_mandir}/pl/man1/aaxine.1* |
234 | %endif | |
7f33fb2e | 235 | |
7c11d1e7 JB |
236 | %if %{with caca} |
237 | %files caca | |
238 | %defattr(644,root,root,755) | |
239 | %attr(755,root,root) %{_bindir}/cacaxine | |
240 | %endif | |
241 | ||
d69d22bb | 242 | %if %{with directfb} |
1be927e2 JB |
243 | %files dfb |
244 | %defattr(644,root,root,755) | |
245 | %attr(755,root,root) %{_bindir}/dfbxine | |
246 | %endif |