]> git.pld-linux.org Git - packages/xine-ui.git/blob - xine-ui.spec
- release 3
[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.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.5
21 Release:        3
22 License:        GPL
23 Group:          X11/Applications/Multimedia
24 Source0:        http://dl.sourceforge.net/xine/%{name}-%{version}.tar.gz
25 # Source0-md5:  e643cd1fcad4d98a5ae4eb877ce5087b
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:         install_once.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.9}
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 BuildRequires:  xorg-lib-libXt-devel
55 %{!?with_nvtv:BuildConflicts:   libnvtvsimple-devel}
56 Requires:       xine-lib >= %{xine_ver}
57 Requires:       xine-plugin-audio >= %{xine_ver}
58 Obsoletes:      xine
59 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
61 %description
62 xine is a free gpl-licensed video player for Unix-like systems. We
63 support mpeg-2 and mpeg-1 system (audio + video multiplexed) streams,
64 eventually mpeg-4 and other formats might be added.
65
66 xine plays the video and audio data of mpeg-2 videos and synchronizes
67 the playback of both. Depending on the properties of the mpeg stream,
68 playback will need more or less processor power, 100% frame rate has
69 been seen on a 400 MHz P II system.
70
71 %description -l fr.UTF-8
72 xine est un lecteur vidéo libre sous license GPL pour les systèmes de
73 type Unix. Nous supportons les flux mpeg-2 et mpeg-1 (audio + vidéo
74 multiplexés), éventuellement le mpeg-4 et d'autres formats peuvent
75 êtres ajoutés.
76
77 xine joue les données vidéo et audio de vidéo mpeg-2 et synchronise la
78 lecture des deux. En fonction des propriétes du flux mpeg, la lecture
79 aura besoin de plus ou moins de puissance du processeur, 100% de
80 restitution de trame a été vus sur un système PII 400MHz.
81
82 %description -l ko.UTF-8
83 xine 는 GPL라이선스를 따르는 UNIX용 공개 동영상 플레이어입니다. 이
84 플레이어는 mpeg-2 와 mpeg 1 스트림을 지원하며, 현재는 지원하지 않지만
85 나중에는 mpeg-4 와 다른 형식의 동영상도 지원할 예정입니다.
86
87 %description -l pl.UTF-8
88 xine jest wolnodostępnym odtwarzaczem filmów dla systemów uniksowych.
89 Obsługuje strumienie MPEG-2 i MPEG-1 (przeplatany dźwięk i obraz),
90 może być dodana obsługa MPEG-4 i innych formatów.
91
92 %description -l pt_BR.UTF-8
93 O xine é um video player GPL para sistemas unix. Lê arquivos MPEG-2 e
94 MPEG-1, além de AVIs MS MPEG4 / OpenDivX.
95
96 O xine lê o conteúdo vídeo e áudio e sincroniza-os em tempo-real. As
97 necessidades de processador dependem das propriedades de cada arquivo.
98
99 %package aa
100 Summary:        XINE - Ascii Art player
101 Summary(pl.UTF-8):      XINE - odtwarzacz Ascii Art
102 Summary(pt_BR.UTF-8):   XINE - Player em Ascii Art (aalib)
103 Group:          Applications/Multimedia
104 Requires:       xine-lib >= %{xine_ver}
105 Requires:       xine-output-video-aa >= %{xine_ver}
106 Requires:       xine-plugin-audio >= %{xine_ver}
107
108 %description aa
109 Video player using ASCII Art library.
110
111 %description aa -l pl.UTF-8
112 Odtwarzacz filmów używający biblioteki ASCII Art.
113
114 %description aa -l pt_BR.UTF-8
115 Interface para o xine utilizando aalib (ASCII Art Library).
116
117 %package caca
118 Summary:        XINE - Color ASCII Art player
119 Summary(pl.UTF-8):      XINE - odtwarzacz kolorowy ASCII Art
120 Group:          Applications/Multimedia
121 Requires:       xine-lib >= %{xine_ver}
122 Requires:       xine-output-video-caca >= %{xine_ver}
123 Requires:       xine-plugin-audio >= %{xine_ver}
124
125 %description caca
126 Video player using Colour ASCII Art library.
127
128 %description caca -l pl.UTF-8
129 Odtwarzacz filmów używający biblioteki CACA.
130
131 %package dfb
132 Summary:        XINE - player for DirectFB
133 Summary(pl.UTF-8):      XINE - odtwarzacz dla DirectFB
134 Group:          Applications/Multimedia
135 Requires:       xine-lib >= %{xine_ver}
136 Requires:       xine-output-video-directfb >= %{xine_ver}
137 Requires:       xine-plugin-audio >= %{xine_ver}
138
139 %description dfb
140 Video player using DirectFB library.
141
142 %description dfb -l pl.UTF-8
143 Odtwarzacz filmów używający biblioteki DirectFB.
144
145 %prep
146 %setup -q
147 %patch0 -p0
148 %patch1 -p1
149 %patch2 -p1
150 %patch3 -p1
151 %patch4 -p1
152 #%{?with_vdr:%patchX -p1}
153
154 rm -f po/stamp-po
155
156 %build
157 %{__libtoolize}
158 %{__aclocal} -I m4
159 %{__autoconf}
160 %{__automake}
161 %{__autoheader}
162 %configure \
163         --with-ncurses \
164 %{!?with_lirc:  --disable-lirc} \
165 %{?with_lirc:   --enable-lirc} \
166 %{?with_vdr:    --enable-vdr-keys} \
167         --with%{!?with_aalib:out}-aalib
168
169 %{__make}
170
171 %install
172 rm -rf $RPM_BUILD_ROOT
173 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/xine/skins}
174
175 %{__make} install \
176         DESTDIR=$RPM_BUILD_ROOT \
177         docdir=$RPM_BUILD_ROOT%{_datadir}/doc/xine
178
179 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
180 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
181 install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/xine/skins
182
183 cp src/xitk/xine-toolkit/README doc/README.xitk
184 rm -rf $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 doc/{README_en,README.*} ChangeLog
194 %lang(cs) %doc doc/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 %{_datadir}/xine/desktop
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 %{_desktopdir}/xine.desktop
217 %{_pixmapsdir}/*
218
219 %if %{with aalib}
220 %files aa
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_bindir}/aaxine
223 %{_mandir}/man1/aaxine.1*
224 %lang(de) %{_mandir}/de/man1/aaxine.1*
225 %lang(pl) %{_mandir}/pl/man1/aaxine.1*
226 %endif
227
228 %if %{with caca}
229 %files caca
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_bindir}/cacaxine
232 %endif
233
234 %if %{with directfb}
235 %files dfb
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_bindir}/dfbxine
238 %endif
This page took 0.078628 seconds and 3 git commands to generate.