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