]> git.pld-linux.org Git - packages/DirectFB-extra.git/blob - DirectFB-extra.spec
- merged from AC-branch
[packages/DirectFB-extra.git] / DirectFB-extra.spec
1 #
2 # Conditional build:
3 %bcond_without  flash   # don't build FLASH video provider
4 %bcond_without  mpg     # don't build support for MPG/MPEG3
5 #
6 Summary:        Additional providers and drivers for DirectFB
7 Summary(pl.UTF-8):      DirectFB - dodatkowe wtyczki i sterowniki do DirectFB
8 Name:           DirectFB-extra
9 Version:        0.9.25
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://www.directfb.org/download/DirectFB-extra/%{name}-%{version}.tar.gz
14 # Source0-md5:  2acb95b87adf0feefd282ac29cd72ab2
15 Patch0:         %{name}-acfix.patch
16 URL:            http://www.directfb.org/
17 BuildRequires:  DirectFB-devel >= 1:%{version}
18 BuildRequires:  autoconf >= 2.52
19 BuildRequires:  automake
20 BuildRequires:  FusionSound-devel >= 0.9.25
21 BuildRequires:  ffmpeg-devel
22 %{?with_flash:BuildRequires:    gplflash-devel >= 0.4.10-5}
23 BuildRequires:  imlib2-devel
24 %{?with_mpg:BuildRequires:      libmpeg3-devel}
25 BuildRequires:  libsvg-cairo-devel >= 0.1.6
26 BuildRequires:  libtool
27 BuildRequires:  openquicktime-devel
28 BuildRequires:  pkgconfig >= 1:0.9
29 BuildRequires:  swfdec-devel >= 0.3.0
30 BuildRequires:  xine-lib-devel >= 2:1.0-0.rc3
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         dfbdir          %(pkg-config --variable=moduledir directfb-internal)
34
35 %description
36 This package contains additional image/video/font providers and
37 graphics/input drivers (currently Imlib2 image provider and
38 OpenQuicktime video provider).
39
40 %description -l pl.UTF-8
41 Ten pakiet zawiera dodatkowe wtyczki dostarczające grafikę, obraz i
42 fonty oraz sterowniki grafiki i wejściowe (aktualnie: wtyczkę
43 dostarczającą grafikę poprzez Imlib2 oraz wtyczkę dostarczającą obraz
44 OpenQuicktime).
45
46 %package -n DirectFB-image-imlib2
47 Summary:        Imlib2 image provider for DirectFB
48 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca grafikę poprzez Imlib2
49 Group:          Libraries
50 %requires_eq    DirectFB
51
52 %description -n DirectFB-image-imlib2
53 This package contains image provider based on Imlib2 for DirectFB.
54
55 %description -n DirectFB-image-imlib2 -l pl.UTF-8
56 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę poprzez
57 bibliotekę Imlib2.
58
59 %package -n DirectFB-image-pnm
60 Summary:        PNM image provider for DirectFB
61 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca grafikę PNM
62 Group:          Libraries
63 %requires_eq    DirectFB
64
65 %description -n DirectFB-image-pnm
66 This package contains PNM image provider. It supports PBM, PGM and PPM
67 formats (both ASCII and RAW).
68
69 %description -n DirectFB-image-pnm -l pl.UTF-8
70 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNM.
71 Obsługuje formaty PBM, PGM i PPM (zarówno ASCII, jak i binarne).
72
73 %package -n DirectFB-image-svg
74 Summary:        SVG image provider for DirectFB
75 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca grafikę SVG
76 Group:          Libraries
77 %requires_eq    DirectFB
78
79 %description -n DirectFB-image-svg
80 This package contains SVG image provider using Cairo library.
81
82 %description -n DirectFB-image-svg -l pl.UTF-8
83 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę SVG
84 przy użyciu biblioteki Cairo.
85
86 %package -n DirectFB-video-ffmpeg
87 Summary:        FFmpeg video provider for DirectFB
88 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz FFmpeg
89 Group:          Libraries
90 %requires_eq    DirectFB
91
92 %description -n DirectFB-video-ffmpeg
93 DirectFB video provider using FFmpeg codecs.
94
95 %description -n DirectFB-video-ffmpeg -l pl.UTF-8
96 Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz przy
97 użyciu kodeków FFmpeg.
98
99 %package -n DirectFB-video-libmpeg3
100 Summary:        MPEG video provider for DirectFB
101 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz MPEG
102 Group:          Libraries
103 %requires_eq    DirectFB
104
105 %description -n DirectFB-video-libmpeg3
106 This package contains MPEG (MPEG-1 and MPEG-2) video provider for
107 DirectFB. It uses libmpeg3 library.
108
109 %description -n DirectFB-video-libmpeg3 -l pl.UTF-8
110 Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz MPEG
111 (MPEG-1 i MPEG-2) przy użyciu biblioteki libmpeg3.
112
113 %package -n DirectFB-video-openquicktime
114 Summary:        OpenQuicktime video provider for DirectFB
115 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz OpenQuicktime
116 Group:          Libraries
117 %requires_eq    DirectFB
118
119 %description -n DirectFB-video-openquicktime
120 This package contains OpenQuicktime video provider for DirectFB. It
121 supports all RGB and YUV formats and does audio playback.
122
123 %description -n DirectFB-video-openquicktime -l pl.UTF-8
124 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz
125 OpenQuicktime. Obsługuje wszystkie formaty RGB i YUV oraz odtwarza
126 dźwięk.
127
128 %package -n DirectFB-video-swf
129 Summary:        ShockWave Flash video provider for DirectFB
130 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz ShockWave Flash
131 Group:          Libraries
132 %requires_eq    DirectFB
133
134 %description -n DirectFB-video-swf
135 This package contains SWF (ShockWave Flash) video provider for
136 DirectFB. It uses flash library.
137
138 %description -n DirectFB-video-swf -l pl.UTF-8
139 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF
140 (ShockWave Flash) przy użyciu biblioteki flash.
141
142 %package -n DirectFB-video-swfdec
143 Summary:        ShockWave Flash video provider for DirectFB
144 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz ShockWave Flash
145 Group:          Libraries
146 %requires_eq    DirectFB
147
148 %description -n DirectFB-video-swfdec
149 This package contains SWF (ShockWave Flash) video provider for
150 DirectFB. It uses swfdec library.
151
152 %description -n DirectFB-video-swfdec -l pl.UTF-8
153 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF
154 (ShockWave Flash) przy użyciu biblioteki swfdec.
155
156 %package -n DirectFB-video-xine
157 Summary:        XINE video provider for DirectFB
158 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz XINE
159 Group:          Libraries
160 %requires_eq    DirectFB
161 %requires_eq    xine-lib
162
163 %description -n DirectFB-video-xine
164 This package contains video provider for DirectFB which uses XINE
165 library and plugins. It handles a wide range of video formats.
166
167 %description -n DirectFB-video-xine -l pl.UTF-8
168 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz przy
169 użyciu biblioteki i wtyczek XINE. Obsługuje szeroki zakres formatów
170 obrazu.
171
172 %package -n xine-ui-dfb
173 Summary:        DirectFB-based XINE UI
174 Summary(pl.UTF-8):      Interfejs użytkownika XINE oparty na DirectFB
175 Group:          Applications/Multimedia
176 %requires_eq    DirectFB
177 Requires:       xine-lib >= 2:1.0-0.rc3
178
179 %description -n xine-ui-dfb
180 DirectFB-based XINE UI. This package contains also DirectFB video
181 output plugin for XINE.
182
183 %description -n xine-ui-dfb -l pl.UTF-8
184 Interfejs użytkownika XINE oparty na DirectFB. Zawiera także wtyczkę
185 wyjścia obrazu DirectFB dla XINE.
186
187 %prep
188 %setup -q
189 %patch0 -p1
190
191 %build
192 %{__libtoolize}
193 %{__aclocal}
194 %{__autoconf}
195 %{__autoheader}
196 %{__automake}
197 CPPFLAGS="-I/usr/include/libmpeg3"
198 %configure \
199         --disable-avifile \
200         %{!?with_flash:--disable-flash} \
201         %{!?with_mpg:--disable-libmpeg3} \
202         --enable-svg \
203         --enable-swfdec
204
205 %{__make} \
206         MODULEDIR=%{dfbdir}
207
208 %install
209 rm -rf $RPM_BUILD_ROOT
210
211 %{__make} install \
212         DESTDIR=$RPM_BUILD_ROOT \
213         MODULEDIR=%{dfbdir}
214
215 rm -f $RPM_BUILD_ROOT%{dfbdir}/interfaces/*/*.la \
216         $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.la
217
218 %clean
219 rm -rf $RPM_BUILD_ROOT
220
221 %files -n DirectFB-image-imlib2
222 %defattr(644,root,root,755)
223 %doc ChangeLog README
224 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.so
225
226 %files -n DirectFB-image-pnm
227 %defattr(644,root,root,755)
228 %doc ChangeLog README
229 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_pnm.so
230
231 %files -n DirectFB-image-svg
232 %defattr(644,root,root,755)
233 %doc ChangeLog README
234 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_svg.so
235
236 %files -n DirectFB-video-openquicktime
237 %defattr(644,root,root,755)
238 %doc ChangeLog README
239 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_openquicktime.so
240
241 %files -n DirectFB-video-ffmpeg
242 %defattr(644,root,root,755)
243 %doc ChangeLog README
244 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_ffmpeg.so
245
246 %if %{with mpg}
247 %files -n DirectFB-video-libmpeg3
248 %defattr(644,root,root,755)
249 %doc ChangeLog README
250 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so
251 %endif
252
253 %if %{with flash}
254 %files -n DirectFB-video-swf
255 %defattr(644,root,root,755)
256 %doc ChangeLog README
257 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.so
258 %endif
259
260 %files -n DirectFB-video-swfdec
261 %defattr(644,root,root,755)
262 %doc ChangeLog README
263 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swfdec.so
264
265 %files -n DirectFB-video-xine
266 %defattr(644,root,root,755)
267 %doc ChangeLog README
268 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_xine.so
269
270 %files -n xine-ui-dfb
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_bindir}/df_xine
273 %attr(755,root,root) %{_libdir}/xine/plugins/*/xineplug_vo_out_dfb.so
This page took 0.400168 seconds and 3 git commands to generate.