]>
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] |
503bc2ae | 8 | %bcond_with vdr # with vdr support |
6296ad9f | 9 | # |
9aa0c46e | 10 | %ifnarch alpha arm %{ix86} ia64 sh %{x8664} |
e49d4aba JB |
11 | %undefine with_nvtv |
12 | %endif | |
d69d22bb | 13 | %define xine_ver 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 |
a4421097 | 20 | Version: 0.99.5 |
2be13b84 | 21 | Release: 1 |
796226cc PG |
22 | License: GPL |
23 | Group: X11/Applications/Multimedia | |
03c1cbf4 | 24 | Source0: http://dl.sourceforge.net/xine/%{name}-%{version}.tar.gz |
a4421097 | 25 | # Source0-md5: e643cd1fcad4d98a5ae4eb877ce5087b |
796226cc | 26 | Source1: xine.desktop |
5be1a25a | 27 | Source2: xine.png |
28 | Source3: 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 | |
441e248c | 33 | #PatchX: %{name}-vdr.patch |
6296ad9f | 34 | URL: http://xine.sourceforge.net/ |
d69d22bb JB |
35 | %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.10} |
36 | %{?with_aalib:BuildRequires: aalib-devel >= 1.2.0} | |
6296ad9f | 37 | BuildRequires: autoconf >= 2.53 |
c454a20f | 38 | BuildRequires: automake >= 1:1.8.1 |
94d3efde | 39 | BuildRequires: bison |
7c11d1e7 | 40 | BuildRequires: curl-devel >= 7.10.2 |
94d3efde | 41 | BuildRequires: gettext-devel |
a4421097 | 42 | %{?with_caca:BuildRequires: libcaca-devel >= 0.9} |
e49d4aba | 43 | %{?with_nvtv:BuildRequires: libnvtvsimple-devel >= 0.4.6} |
94d3efde | 44 | BuildRequires: libpng-devel |
796226cc | 45 | BuildRequires: libtool |
d69d22bb | 46 | %{?with_lirc:BuildRequires: lirc-devel} |
97f9434c | 47 | BuildRequires: ncurses-devel |
97f9434c | 48 | BuildRequires: pkgconfig |
9ab02642 | 49 | BuildRequires: readline-devel >= 4.2a |
9aa0c46e | 50 | BuildRequires: rpmbuild(macros) >= 1.213 |
d69d22bb | 51 | BuildRequires: xine-lib-devel >= %{xine_ver} |
4541f15e | 52 | BuildRequires: xorg-lib-libXft-devel |
e49d4aba | 53 | %{!?with_nvtv:BuildConflicts: libnvtvsimple-devel} |
d69d22bb JB |
54 | Requires: xine-lib >= %{xine_ver} |
55 | Requires: xine-plugin-audio >= %{xine_ver} | |
796226cc PG |
56 | Obsoletes: xine |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
58 | ||
796226cc PG |
59 | %description |
60 | xine is a free gpl-licensed video player for unix-like systems. We | |
61 | support mpeg-2 and mpeg-1 system (audio + video multiplexed) streams, | |
62 | eventually mpeg-4 and other formats might be added. | |
63 | ||
64 | xine plays the video and audio data of mpeg-2 videos and synchronizes | |
65 | the playback of both. Depending on the properties of the mpeg stream, | |
66 | playback will need more or less processor power, 100% frame rate has | |
67 | been seen on a 400 MHz P II system. | |
68 | ||
632099cb JR |
69 | %description -l fr.UTF-8 |
70 | xine est un lecteur vidéo libre sous license GPL pour les systèmes de | |
71 | type unix. Nous supportons les flux mpeg-2 et mpeg-1 (audio + vidéo | |
72 | multiplexés), éventuellement le mpeg-4 et d'autres formats peuvent | |
73 | êtres ajoutés. | |
796226cc | 74 | |
632099cb JR |
75 | xine joue les données vidéo et audio de vidéo mpeg-2 et synchronise la |
76 | lecture des deux. En fonction des propriétes du flux mpeg, la lecture | |
796226cc | 77 | aura besoin de plus ou moins de puissance du processeur, 100% de |
632099cb | 78 | restitution de trame a été vus sur un système PII 400MHz. |
796226cc | 79 | |
632099cb JR |
80 | %description -l ko.UTF-8 |
81 | xine 는 GPL라이선스를 따르는 UNIX용 공개 동영상 플레이어입니다. 이 | |
82 | 플레이어는 mpeg-2 와 mpeg 1 스트림을 지원하며, 현재는 지원하지 않지만 | |
83 | 나중에는 mpeg-4 와 다른 형식의 동영상도 지원할 예정입니다. | |
796226cc | 84 | |
632099cb JR |
85 | %description -l pl.UTF-8 |
86 | xine jest wolnodostępnym odtwarzaczem filmów dla systemów uniksowych. | |
87 | Obsługuje strumienie MPEG-2 i MPEG-1 (przeplatany dźwięk i obraz), | |
88 | może być dodana obsługa MPEG-4 i innych formatów. | |
796226cc | 89 | |
632099cb JR |
90 | %description -l pt_BR.UTF-8 |
91 | O xine é um video player GPL para sistemas unix. Lê arquivos MPEG-2 e | |
92 | MPEG-1, além de AVIs MS MPEG4 / OpenDivX. | |
d90e3a32 | 93 | |
632099cb | 94 | O xine lê o conteúdo vídeo e áudio e sincroniza-os em tempo-real. As |
d90e3a32 | 95 | necessidades de processador dependem das propriedades de cada arquivo. |
96 | ||
01b24efa | 97 | %package aa |
2dcc5099 | 98 | Summary: XINE - Ascii Art player |
c7af9d5d ER |
99 | Summary(pl.UTF-8): XINE - odtwarzacz Ascii Art |
100 | Summary(pt_BR.UTF-8): XINE - Player em Ascii Art (aalib) | |
c366d8c0 | 101 | Group: Applications/Multimedia |
d69d22bb JB |
102 | Requires: xine-lib >= %{xine_ver} |
103 | Requires: xine-output-video-aa >= %{xine_ver} | |
104 | Requires: xine-plugin-audio >= %{xine_ver} | |
796226cc | 105 | |
01b24efa | 106 | %description aa |
107 | Video player using Ascii Art library. | |
796226cc | 108 | |
632099cb JR |
109 | %description aa -l pl.UTF-8 |
110 | Odtwarzacz filmów używający biblioteki Ascii Art. | |
5a7b9f94 | 111 | |
632099cb | 112 | %description aa -l pt_BR.UTF-8 |
d90e3a32 | 113 | Interface para o xine utilizando aalib (Ascii Art Library). |
114 | ||
7c11d1e7 JB |
115 | %package caca |
116 | Summary: XINE - Color AsCii Art player | |
c7af9d5d | 117 | Summary(pl.UTF-8): XINE - odtwarzacz kolorowy Ascii Art |
7c11d1e7 JB |
118 | Group: Applications/Multimedia |
119 | Requires: xine-lib >= %{xine_ver} | |
120 | Requires: xine-output-video-caca >= %{xine_ver} | |
121 | Requires: xine-plugin-audio >= %{xine_ver} | |
122 | ||
123 | %description caca | |
124 | Video player using Colour AsCii Art library. | |
125 | ||
632099cb JR |
126 | %description caca -l pl.UTF-8 |
127 | Odtwarzacz filmów używający biblioteki CACA. | |
7c11d1e7 | 128 | |
7f33fb2e | 129 | %package dfb |
130 | Summary: XINE - player for DirectFB | |
c7af9d5d | 131 | Summary(pl.UTF-8): XINE - odtwarzacz dla DirectFB |
c366d8c0 | 132 | Group: Applications/Multimedia |
d69d22bb JB |
133 | Requires: xine-lib >= %{xine_ver} |
134 | Requires: xine-output-video-directfb >= %{xine_ver} | |
135 | Requires: xine-plugin-audio >= %{xine_ver} | |
7f33fb2e | 136 | |
137 | %description dfb | |
138 | Video player using DirectFB library. | |
139 | ||
632099cb JR |
140 | %description dfb -l pl.UTF-8 |
141 | Odtwarzacz filmów używający biblioteki DirectFB. | |
7f33fb2e | 142 | |
796226cc | 143 | %prep |
6296ad9f | 144 | %setup -q |
6d92fee7 | 145 | %patch0 -p0 |
6296ad9f | 146 | %patch1 -p1 |
76a7c691 | 147 | %patch2 -p1 |
9ab02642 | 148 | %patch3 -p1 |
441e248c | 149 | #%{?with_vdr:%patchX -p1} |
796226cc | 150 | |
76a7c691 JB |
151 | rm -f po/stamp-po |
152 | ||
796226cc | 153 | %build |
29004da5 | 154 | %{__libtoolize} |
329b9339 | 155 | %{__aclocal} -I m4 |
973f1c80 | 156 | %{__autoconf} |
90e01190 | 157 | %{__automake} |
6562995b | 158 | %{__autoheader} |
0e0bb6d4 | 159 | %configure \ |
a4421097 | 160 | --with-ncurses \ |
d69d22bb | 161 | %{!?with_lirc: --disable-lirc} \ |
2ba34d6b | 162 | %{?with_lirc: --enable-lirc} \ |
a4421097 | 163 | %{?with_vdr: --enable-vdr-keys} \ |
164 | --with%{!?with_aalib:out}-aalib | |
82e92d93 | 165 | |
796226cc PG |
166 | %{__make} |
167 | ||
168 | %install | |
169 | rm -rf $RPM_BUILD_ROOT | |
f5d61ecd | 170 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/xine/skins} |
796226cc | 171 | |
2dcc5099 | 172 | %{__make} install \ |
173 | DESTDIR=$RPM_BUILD_ROOT \ | |
174 | docdir=$RPM_BUILD_ROOT%{_datadir}/doc/xine | |
796226cc | 175 | |
f5d61ecd | 176 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
5be1a25a | 177 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
178 | install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/xine/skins | |
796226cc | 179 | |
71e119af | 180 | cp src/xitk/xine-toolkit/README doc/README.xitk |
76a7c691 | 181 | rm -rf $RPM_BUILD_ROOT%{_docdir}/{xine-ui,xitk} |
71e119af | 182 | |
d8ab0302 | 183 | %find_lang %{name} --all-name |
f7d431b9 | 184 | |
796226cc PG |
185 | %clean |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
d8ab0302 | 188 | %files -f %{name}.lang |
796226cc | 189 | %defattr(644,root,root,755) |
7c7ad477 | 190 | %doc doc/{README_en,README.*} ChangeLog |
191 | %lang(cs) %doc doc/README_cs | |
192 | %lang(de) %doc doc/README_de | |
193 | %lang(es) %doc doc/README_es | |
0f0c5b0e | 194 | %lang(fi) %doc doc/README_fi |
7c7ad477 | 195 | %lang(fr) %doc doc/README_fr |
196 | %lang(it) %doc doc/README_it | |
197 | %lang(pl) %doc doc/README_pl | |
198 | %lang(uk) %doc doc/README_uk | |
80084f13 | 199 | %attr(755,root,root) %{_bindir}/fbxine |
2dcc5099 | 200 | %attr(755,root,root) %{_bindir}/xine |
2a41fb2d JK |
201 | %attr(755,root,root) %{_bindir}/xine-bugreport |
202 | %attr(755,root,root) %{_bindir}/xine-check | |
ee96bddf | 203 | %attr(755,root,root) %{_bindir}/xine-remote |
ee96bddf | 204 | %{_datadir}/xine/desktop |
db057dfb JB |
205 | %{_datadir}/xine/oxine |
206 | %{_datadir}/xine/skins | |
7c7ad477 | 207 | %{_datadir}/xine/visuals |
1be927e2 JB |
208 | %{_mandir}/man1/xine*.1* |
209 | %lang(de) %{_mandir}/de/man1/xine*.1* | |
210 | %lang(es) %{_mandir}/es/man1/xine*.1* | |
211 | %lang(fr) %{_mandir}/fr/man1/xine*.1* | |
212 | %lang(pl) %{_mandir}/pl/man1/xine*.1* | |
f5d61ecd | 213 | %{_desktopdir}/xine.desktop |
5be1a25a | 214 | %{_pixmapsdir}/* |
796226cc | 215 | |
d69d22bb | 216 | %if %{with aalib} |
1be927e2 JB |
217 | %files aa |
218 | %defattr(644,root,root,755) | |
219 | %attr(755,root,root) %{_bindir}/aaxine | |
220 | %{_mandir}/man1/aaxine.1* | |
221 | %lang(de) %{_mandir}/de/man1/aaxine.1* | |
222 | %lang(pl) %{_mandir}/pl/man1/aaxine.1* | |
223 | %endif | |
7f33fb2e | 224 | |
7c11d1e7 JB |
225 | %if %{with caca} |
226 | %files caca | |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_bindir}/cacaxine | |
229 | %endif | |
230 | ||
d69d22bb | 231 | %if %{with directfb} |
1be927e2 JB |
232 | %files dfb |
233 | %defattr(644,root,root,755) | |
234 | %attr(755,root,root) %{_bindir}/dfbxine | |
235 | %endif |