]> git.pld-linux.org Git - packages/DirectFB.git/blob - DirectFB.spec
- removed TODO, looks fixed upstream
[packages/DirectFB.git] / DirectFB.spec
1 #
2 # Conditional build:
3 %bcond_with     multi           # build Multi-application core (requires working /dev/fusion*)
4 #
5 Summary:        DirectFB - Hardware graphics acceleration
6 Summary(pl.UTF-8):      DirectFB - Wspomaganie grafiki
7 Name:           DirectFB
8 Version:        1.0.1
9 Release:        1
10 Epoch:          1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://www.directfb.org/downloads/Core/%{name}-%{version}.tar.gz
14 # Source0-md5:  539e4b304d08bb0a2080c7b3f321d96f
15 Source1:        http://www.directfb.org/downloads/Extras/DFBTutorials-0.5.0.tar.gz
16 # Source1-md5:  13e443a64bddd68835b574045d9025e9
17 Patch0:         %{name}-am.patch
18 Patch1:         %{name}-pmake.patch
19 Patch2:         %{name}-fix.patch
20 Patch3:         %{name}-gcc4.patch
21 Patch4:         %{name}-llh-ppc.patch
22 Patch5:         %{name}-link.patch
23 URL:            http://www.directfb.org/
24 BuildRequires:  SDL-devel
25 BuildRequires:  autoconf >= 2.52
26 BuildRequires:  automake
27 BuildRequires:  freetype-devel >= 2.0.2
28 BuildRequires:  libjpeg-devel >= 6b
29 BuildRequires:  libpng-devel >= 1.0
30 BuildRequires:  libtool
31 BuildRequires:  libvncserver-devel
32 %{?with_multi:BuildRequires:    linux-fusion-devel >= 3.0}
33 BuildRequires:  sed >= 4.0
34 BuildRequires:  sysfsutils-devel >= 1.3.0-3
35 BuildRequires:  xorg-lib-libXext-devel
36 BuildRequires:  zlib-devel >= 1.1.3
37 %{?with_multi:Provides: DirectFB(multi)}
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %define         dfbdir  %{_libdir}/directfb-1.0-0
41
42 %define         specflags       -fno-strict-aliasing
43
44 %ifarch %{ix86}
45 # gcc running out of registers with -O0 in generic_mmx.h
46 %define         debugcflags     -O1 -g
47 %endif
48
49 %description
50 DirectFB hardware graphics acceleration - libraries.
51
52 %description -l pl.UTF-8
53 Wspomaganie grafiki DirectFB - biblioteki.
54
55 %package devel
56 Summary:        DirectFB - development package
57 Summary(pl.UTF-8):      DirectFB - pliki nagłówkowe
58 Group:          Development/Libraries
59 Requires:       %{name} = %{epoch}:%{version}-%{release}
60 Requires:       zlib-devel >= 1.1.3
61
62 %description devel
63 DirectFB header files.
64
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe dla DirectFB.
67
68 %package static
69 Summary:        DirectFB static libraries
70 Summary(pl.UTF-8):      Statyczne biblioteki DirectFB
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
73
74 %description static
75 DirectFB static libraries.
76
77 %description static -l pl.UTF-8
78 Statyczne biblioteki DirectFB.
79
80 %package doc
81 Summary:        DirectFB - documentation
82 Summary(pl.UTF-8):      DirectFB - dokumentacja
83 Group:          Documentation
84
85 %description doc
86 DirectFB documentation and tutorials.
87
88 %description doc -l pl.UTF-8
89 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
90
91 %package core-sdl
92 Summary:        SDL core system for DirectFB
93 Summary(pl.UTF-8):      System SDL dla DirectFB
94 Group:          Libraries
95 Requires:       %{name} = %{epoch}:%{version}-%{release}
96
97 %description core-sdl
98 This package contains SDL core system module for DirectFB.
99
100 %description core-sdl -l pl.UTF-8
101 Ten pakiet zawiera moduł systemu SDL dla DirectFB.
102
103 %package core-vnc
104 Summary:        VNC core system for DirectFB
105 Summary(pl.UTF-8):      System VNC dla DirectFB
106 Group:          Libraries
107 Requires:       %{name} = %{epoch}:%{version}-%{release}
108
109 %description core-vnc
110 This package contains VNC core system module for DirectFB.
111
112 %description core-vnc -l pl.UTF-8
113 Ten pakiet zawiera moduł systemu VNC dla DirectFB.
114
115 %package core-x11
116 Summary:        X11 core system for DirectFB
117 Summary(pl.UTF-8):      System X11 dla DirectFB
118 Group:          Libraries
119 Requires:       %{name} = %{epoch}:%{version}-%{release}
120
121 %description core-x11
122 This package contains X11 core system module for DirectFB.
123
124 %description core-x11 -l pl.UTF-8
125 Ten pakiet zawiera moduł systemu X11 dla DirectFB.
126
127 %package font-ft2
128 Summary:        FreeType2 font provider for DirectFB
129 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca fonty poprzez FreeType2
130 Group:          Libraries
131 Requires:       %{name} = %{epoch}:%{version}-%{release}
132
133 %description font-ft2
134 This package contains FreeType2 font provider for DirectFB.
135
136 %description font-ft2 -l pl.UTF-8
137 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą fonty poprzez
138 bibliotekę FreeType2.
139
140 %package image-jpeg
141 Summary:        JPEG image provider for DirectFB
142 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca grafikę JPEG
143 Group:          Libraries
144 Requires:       %{name} = %{epoch}:%{version}-%{release}
145
146 %description image-jpeg
147 This package contains JPEG image provider for DirectFB.
148
149 %description image-jpeg -l pl.UTF-8
150 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę JPEG.
151
152 %package image-png
153 Summary:        PNG image provider for DirectFB
154 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca grafikę PNG
155 Group:          Libraries
156 Requires:       %{name} = %{epoch}:%{version}-%{release}
157
158 %description image-png
159 This package contains PNG image provider for DirectFB.
160
161 %description image-png -l pl.UTF-8
162 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNG.
163
164 %package input-dynapro
165 Summary:        Dynapro touchscreen input driver for DirectFB
166 Summary(pl.UTF-8):      Sterownik wejściowy do touchscreenów Dynapro dla DirectFB
167 Group:          Libraries
168 Requires:       %{name} = %{epoch}:%{version}-%{release}
169
170 %description input-dynapro
171 Dynapro touchscreen input driver for DirectFB.
172
173 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
174 unless you don't have Dynapro device connected to this port. It can
175 mess with other devices connected to this port (mouse, modem etc.).
176
177 %description input-dynapro -l pl.UTF-8
178 Sterownik wejściowy do touchscreenów Dynapro dla DirectFB.
179
180 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
181 nie należy go instalować, jeśli urządzenie Dynapro nie jest podłączone
182 do tego portu. Sterownik może utrudnić współpracę z innymi
183 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
184
185 %package input-elo
186 Summary:        ELO touchscreen input driver for DirectFB
187 Summary(pl.UTF-8):      Sterownik wejściowy do touchscreenów ELO dla DirectFB
188 Group:          Libraries
189 Requires:       %{name} = %{epoch}:%{version}-%{release}
190
191 %description input-elo
192 ELO touchscreen input driver for DirectFB.
193
194 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
195 unless you have ELO device connected to this port. It can mess with
196 other devices connected to this port (mouse, modem etc.).
197
198 %description input-elo -l pl.UTF-8
199 Sterownik wejściowy do touchscreenów ELO dla DirectFB.
200
201 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
202 nie należy go instalować, jeśli urządzenie ELO nie jest podłączone do
203 tego portu. Sterownik może utrudnić współpracę z innymi urządzeniami
204 podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
205
206 %package input-gunze
207 Summary:        Gunze touchscreen input driver for DirectFB
208 Summary(pl.UTF-8):      Sterownik wejściowy do touchscreenów Gunze dla DirectFB
209 Group:          Libraries
210 Requires:       %{name} = %{epoch}:%{version}-%{release}
211
212 %description input-gunze
213 Gunze touchscreen input driver for DirectFB.
214
215 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
216 unless you don't have Gunze device connected to this port. It can mess
217 with other devices connected to this port (mouse, modem etc.).
218
219 %description input-gunze -l pl.UTF-8
220 Sterownik wejściowy do touchscreenów Gunze dla DirectFB.
221
222 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
223 nie należy go instalować, jeśli urządzenie Gunze nie jest podłączone
224 do tego portu. Sterownik może utrudnić współpracę z innymi
225 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
226
227 %package input-mutouch
228 Summary:        MuTouch touchscreen input driver for DirectFB
229 Summary(pl.UTF-8):      Sterownik wejściowy do touchscreenów MuTouch dla DirectFB
230 Group:          Libraries
231 Requires:       %{name} = %{epoch}:%{version}-%{release}
232
233 %description input-mutouch
234 MuTouch touchscreen input driver for DirectFB.
235
236 NOTE: it needs "mut-device" setting in directfbrc in order to work.
237
238 %description input-mutouch -l pl.UTF-8
239 Sterownik wejściowy do touchscreenów MuTouch dla DirectFB.
240
241 UWAGA: do działania potrzebuje ustawienia "mut-device" w directfbrc.
242
243 %package input-ucb1x00
244 Summary:        UCB1x00 touchscreen input driver for DirectFB
245 Summary(pl.UTF-8):      Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB
246 Group:          Libraries
247 Requires:       %{name} = %{epoch}:%{version}-%{release}
248
249 %description input-ucb1x00
250 UCB1x00 touchscreen input driver for DirectFB.
251
252 %description input-ucb1x00 -l pl.UTF-8
253 Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB.
254
255 %package input-wm97xx
256 Summary:        WM97xx touchscreen input driver for DirectFB
257 Summary(pl.UTF-8):      Sterownik wejściowy do touchscreenów WM97xx dla DirectFB
258 Group:          Libraries
259 Requires:       %{name} = %{epoch}:%{version}-%{release}
260
261 %description input-wm97xx
262 WM97xx touchscreen input driver for DirectFB.
263
264 %description input-wm97xx -l pl.UTF-8
265 Sterownik wejściowy do touchscreenów WM97xx dla DirectFB.
266
267 %prep
268 %setup -q -a1
269 %patch0 -p1
270 %patch1 -p1
271 %patch2 -p1
272 %patch3 -p1
273 %patch4 -p1
274 %patch5 -p1
275
276 %build
277 %{__libtoolize}
278 %{__aclocal}
279 %{__autoconf}
280 %{__automake}
281 # MMX and SSE are detected at runtime, so it's safe to enable
282 %configure \
283         %{!?debug:--disable-debug} \
284         --disable-maintainer-mode \
285         --enable-fast-install \
286         %{?with_multi:--enable-multi} \
287         --enable-sdl \
288         --enable-shared \
289         --enable-static \
290         --enable-unique \
291         --enable-video4linux2 \
292         --enable-voodoo \
293         --enable-x11 \
294         --enable-zlib \
295 %ifarch %{ix86} %{x8664}
296 %ifnarch i386 i486
297         --enable-mmx \
298 %endif
299 %ifnarch i386 i486 i586
300         --enable-sse \
301 %endif
302 %endif
303         --with-inputdrivers=dynapro,elo-input,gunze,joystick,keyboard,linuxinput,lirc,mutouch,penmount,ps2mouse,serialmouse,sonypijogdial,ucb1x00,wm97xx
304
305 %{__make} \
306         X11_CFLAGS= \
307         X11_LIBS="-lX11 -lXext"
308
309 %install
310 rm -rf $RPM_BUILD_ROOT
311 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}}
312
313 %{__make} install \
314         DESTDIR=$RPM_BUILD_ROOT
315
316 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
317
318 touch $RPM_BUILD_ROOT%{_sysconfdir}/directfbrc
319
320 %clean
321 rm -rf $RPM_BUILD_ROOT
322
323 %post   -p /sbin/ldconfig
324 %postun -p /sbin/ldconfig
325
326 %files
327 %defattr(644,root,root,755)
328 %doc AUTHORS ChangeLog NEWS README TODO
329 %attr(755,root,root) %{_bindir}/dfbdump
330 %attr(755,root,root) %{_bindir}/dfbg
331 %attr(755,root,root) %{_bindir}/dfbinfo
332 %attr(755,root,root) %{_bindir}/dfbinput
333 %attr(755,root,root) %{_bindir}/dfblayer
334 %attr(755,root,root) %{_bindir}/dfbpenmount
335 %attr(755,root,root) %{_bindir}/dfbproxy
336 %attr(755,root,root) %{_bindir}/dfbscreen
337 %attr(755,root,root) %{_bindir}/dfbsummon
338 %attr(755,root,root) %{_bindir}/mkdfiff
339 %attr(755,root,root) %{_bindir}/mkdgiff
340 %attr(755,root,root) %{_bindir}/uwmdump
341 %attr(755,root,root) %{_libdir}/libdirect-*.so.*.*.*
342 %attr(755,root,root) %{_libdir}/libdirectfb-*.so.*.*.*
343 %attr(755,root,root) %{_libdir}/libfusion-*.so.*.*.*
344 %attr(755,root,root) %{_libdir}/libuniquewm-*.so.*.*.*
345 %attr(755,root,root) %{_libdir}/libvoodoo-*.so.*.*.*
346 %dir %{dfbdir}
347 %dir %{dfbdir}/gfxdrivers
348 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
349 %dir %{dfbdir}/inputdrivers
350 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so
351 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so
352 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_linux_input.so
353 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so
354 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_penmount.so
355 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so
356 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so
357 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so
358 %dir %{dfbdir}/interfaces
359 %dir %{dfbdir}/interfaces/IDirectFB
360 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFB/lib*.so
361 %dir %{dfbdir}/interfaces/IDirectFBDataBuffer
362 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDataBuffer/lib*.so
363 %dir %{dfbdir}/interfaces/IDirectFBDisplayLayer
364 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDisplayLayer/lib*.so
365 %dir %{dfbdir}/interfaces/IDirectFBEventBuffer
366 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBEventBuffer/lib*.so
367 %dir %{dfbdir}/interfaces/IDirectFBFont
368 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.so
369 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so
370 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dispatcher.so
371 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_requestor.so
372 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
373 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dfiff.so
374 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dispatcher.so
375 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
376 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
377 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_requestor.so
378 %dir %{dfbdir}/interfaces/IDirectFBInputDevice
379 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBInputDevice/lib*.so
380 %dir %{dfbdir}/interfaces/IDirectFBPalette
381 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBPalette/lib*.so
382 %dir %{dfbdir}/interfaces/IDirectFBScreen
383 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBScreen/lib*.so
384 %dir %{dfbdir}/interfaces/IDirectFBSurface
385 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBSurface/lib*.so
386 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
387 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.so
388 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so
389 %dir %{dfbdir}/interfaces/IDirectFBWindow
390 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBWindow/lib*.so
391 %dir %{dfbdir}/systems
392 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so
393 %dir %{dfbdir}/wm
394 %attr(755,root,root) %{dfbdir}/wm/*.so
395 %{_datadir}/directfb-%{version}
396 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/directfbrc
397 %{_mandir}/man1/dfbg.1*
398 %{_mandir}/man5/*
399
400 %files devel
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_bindir}/directfb-config
403 %attr(755,root,root) %{_bindir}/directfb-csource
404 %attr(755,root,root) %{_libdir}/libdirect.so
405 %attr(755,root,root) %{_libdir}/libdirectfb.so
406 %attr(755,root,root) %{_libdir}/libfusion.so
407 %attr(755,root,root) %{_libdir}/libuniquewm.so
408 %attr(755,root,root) %{_libdir}/libvoodoo.so
409 %{_libdir}/libdirect.la
410 %{_libdir}/libdirectfb.la
411 %{_libdir}/libfusion.la
412 %{_libdir}/libuniquewm.la
413 %{_libdir}/libvoodoo.la
414 %{_includedir}/directfb
415 %{_includedir}/directfb-internal
416 %{_pkgconfigdir}/*.pc
417 %{_mandir}/man1/directfb-csource.1*
418
419 %files static
420 %defattr(644,root,root,755)
421 %{_libdir}/lib*.a
422 %{dfbdir}/gfxdrivers/*.[alo]*
423 %{dfbdir}/inputdrivers/*.[alo]*
424 %{dfbdir}/interfaces/*/*.[alo]*
425 %{dfbdir}/systems/*.[alo]*
426 %{dfbdir}/wm/*.[alo]*
427
428 %files doc
429 %defattr(644,root,root,755)
430 %doc docs/html/*.{html,png}
431 %{_examplesdir}/%{name}-%{version}
432
433 %files core-sdl
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so
436 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so
437
438 %files core-vnc
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_vncinput.so
441 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_vnc.so
442
443 %files core-x11
444 %defattr(644,root,root,755)
445 %doc systems/x11/README
446 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_x11input.so
447 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_x11.so
448
449 %files font-ft2
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
452
453 %files image-jpeg
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
456
457 %files image-png
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
460
461 %files input-dynapro
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_dynapro.so
464
465 %files input-elo
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_elo.so
468
469 %files input-gunze
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_gunze.so
472
473 %files input-mutouch
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_mutouch.so
476
477 %files input-ucb1x00
478 %defattr(644,root,root,755)
479 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ucb1x00_ts.so
480
481 %files input-wm97xx
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_wm97xx_ts.so
This page took 0.122443 seconds and 3 git commands to generate.