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