]> git.pld-linux.org Git - SPECS.git/blob - xine-ui.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / xine-ui.spec
1 #
2 # Conditional build:
3 %bcond_without  aalib           # without aaxine UI
4 %bcond_without  caca            # without cacaxine UI
5 %bcond_without  lirc            # without lirc support
6 %bcond_without  nvtv            # without nvtv support
7 %bcond_with     directfb        # with dfbxine UI [disabled in sources at the moment]
8 %bcond_with     vdr             # with vdr special keys support
9 #
10 %ifnarch alpha arm %{ix86} ia64 sh %{x8664}
11 %undefine       with_nvtv
12 %endif
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):   一个免费的视频播放器(界面)
19 Name:           xine-ui
20 Version:        0.99.9
21 Release:        3
22 License:        GPL v2+
23 Group:          X11/Applications/Multimedia
24 Source0:        http://downloads.sourceforge.net/xine/%{name}-%{version}.tar.xz
25 # Source0-md5:  a6d00381b5c8b7aec1a7a3fbf84f01ce
26 Source1:        xine.desktop
27 #Source2:       xine.png
28 Source2:        xine_logo.png
29 Patch0:         %{name}-ncurses.patch
30 Patch1:         %{name}-nolibs.patch
31 Patch2:         %{name}-pl.po.patch
32 Patch3:         %{name}-curl.patch
33 URL:            http://www.xine-project.org/
34 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.10}
35 %{?with_aalib:BuildRequires:    aalib-devel >= 1.2.0}
36 BuildRequires:  autoconf >= 2.59
37 BuildRequires:  automake >= 1:1.8.1
38 BuildRequires:  bison
39 BuildRequires:  curl-devel >= 7.10.2
40 BuildRequires:  gettext-tools >= 0.18.3
41 %{?with_caca:BuildRequires:     libcaca-devel >= 0.99}
42 %{?with_nvtv:BuildRequires:     libnvtvsimple-devel >= 0.4.6}
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
60 BuildRequires:  xz
61 Requires:       xine-lib >= %{xine_ver}
62 Requires:       xine-plugin-audio >= %{xine_ver}
63 Obsoletes:      xine
64 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65
66 %description
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.
70
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.
75
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
80 êtres ajoutés.
81
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.
86
87 %description -l ko.UTF-8
88 xine 는 GPL라이선스를 따르는 UNIX용 공개 동영상 플레이어입니다. 이
89 플레이어는 mpeg-2 와 mpeg 1 스트림을 지원하며, 현재는 지원하지 않지만
90 나중에는 mpeg-4 와 다른 형식의 동영상도 지원할 예정입니다.
91
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.
96
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.
100
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.
103
104 %package aa
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}
112
113 %description aa
114 Video player using ASCII Art library.
115
116 %description aa -l pl.UTF-8
117 Odtwarzacz filmów używający biblioteki ASCII Art.
118
119 %description aa -l pt_BR.UTF-8
120 Interface para o xine utilizando aalib (ASCII Art Library).
121
122 %package caca
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}
129
130 %description caca
131 Video player using Colour ASCII Art library.
132
133 %description caca -l pl.UTF-8
134 Odtwarzacz filmów używający biblioteki CACA.
135
136 %package dfb
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}
143
144 %description dfb
145 Video player using DirectFB library.
146
147 %description dfb -l pl.UTF-8
148 Odtwarzacz filmów używający biblioteki DirectFB.
149
150 %prep
151 %setup -q
152 %patch0 -p1
153 %patch1 -p1
154 %patch2 -p1
155 %patch3 -p1
156
157 %{__rm} po/stamp-po
158
159 %build
160 %{__aclocal} -I m4
161 %{__autoconf}
162 %{__automake}
163 %{__autoheader}
164 %configure \
165         %{!?with_lirc:--disable-lirc} \
166         %{!?with_nvtv:--disable-nvtvsimple} \
167         %{?with_vdr:--enable-vdr-keys} \
168         %{!?with_aalib:--without-aalib}
169
170 %{__make}
171
172 %install
173 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/xine/skins}
175
176 %{__make} install \
177         DESTDIR=$RPM_BUILD_ROOT \
178         docdir=$RPM_BUILD_ROOT%{_datadir}/doc/xine
179
180 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
181 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xine/skins
182
183 cp src/xitk/xine-toolkit/README doc/README.xitk
184 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/{xine-ui,xitk}
185
186 %find_lang %{name} --all-name
187
188 %clean
189 rm -rf $RPM_BUILD_ROOT
190
191 %files -f %{name}.lang
192 %defattr(644,root,root,755)
193 %doc ChangeLog doc/{README.config_en,README.en.*,README.xitk}
194 %lang(cs) %doc doc/{README.cs.*,README_cs}
195 %lang(de) %doc doc/README_de
196 %lang(es) %doc doc/README_es
197 %lang(fi) %doc doc/README_fi
198 %lang(fr) %doc doc/README_fr
199 %lang(it) %doc doc/README_it
200 %lang(pl) %doc doc/README_pl
201 %lang(uk) %doc doc/README_uk
202 %attr(755,root,root) %{_bindir}/fbxine
203 %attr(755,root,root) %{_bindir}/xine
204 %attr(755,root,root) %{_bindir}/xine-bugreport
205 %attr(755,root,root) %{_bindir}/xine-check
206 %attr(755,root,root) %{_bindir}/xine-remote
207 %dir %{_datadir}/xine
208 %{_datadir}/xine/oxine
209 %{_datadir}/xine/skins
210 %{_datadir}/xine/visuals
211 %{_mandir}/man1/xine*.1*
212 %lang(de) %{_mandir}/de/man1/xine*.1*
213 %lang(es) %{_mandir}/es/man1/xine*.1*
214 %lang(fr) %{_mandir}/fr/man1/xine*.1*
215 %lang(pl) %{_mandir}/pl/man1/xine*.1*
216 %{_datadir}/mime/packages/xine-ui.xml
217 %{_desktopdir}/xine.desktop
218 %{_iconsdir}/hicolor/*/apps/xine.png
219 %{_pixmapsdir}/xine.xpm
220
221 %if %{with aalib}
222 %files aa
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/aaxine
225 %{_mandir}/man1/aaxine.1*
226 %lang(de) %{_mandir}/de/man1/aaxine.1*
227 %lang(es) %{_mandir}/es/man1/aaxine.1*
228 %lang(pl) %{_mandir}/pl/man1/aaxine.1*
229 %endif
230
231 %if %{with caca}
232 %files caca
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_bindir}/cacaxine
235 %endif
236
237 %if %{with directfb}
238 %files dfb
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_bindir}/dfbxine
241 %endif
This page took 0.487615 seconds and 3 git commands to generate.