]>
Commit | Line | Data |
---|---|---|
1fbfdf97 JB |
1 | # |
2 | # Conditional build: | |
1a271a42 JB |
3 | %bcond_with directfb # DirectFB drivers support for fbdev [outdated, patch incomplete] |
4 | %bcond_with glide # Glide support | |
5 | %bcond_with kgicon # KGICon support | |
6 | %bcond_without aalib # aalib support | |
7 | %bcond_with svga # svgalib support | |
8 | %bcond_with static_modules # build static library AND make all modules builtin (also in shared lib) | |
1fbfdf97 | 9 | # |
44a7649f | 10 | Summary: GGI - Generic Graphics Interface |
61be9c25 | 11 | Summary(pl.UTF-8): GGI - Generic Graphics Interface |
4c95f073 | 12 | Name: libggi |
5eaeb045 | 13 | Version: 2.2.2 |
8d389a41 | 14 | Release: 8 |
386fe929 | 15 | Epoch: 1 |
aecb86e5 | 16 | License: BSD-like |
e9147e51 | 17 | Group: Libraries |
5eaeb045 SS |
18 | Source0: http://www.ggi-project.org/ftp/ggi/v2.2/%{name}-%{version}.src.tar.bz2 |
19 | # Source0-md5: 51d92ea810dad5360f6f0d02dd8b84a4 | |
9e4d15b9 | 20 | Patch0: %{name}-ppc.patch |
72164f54 SS |
21 | Patch1: ac.patch |
22 | Patch2: link.patch | |
1a271a42 | 23 | Patch3: %{name}-directfb.patch |
bd9f9bed | 24 | Patch4: %{name}-glide.patch |
8d389a41 | 25 | Patch5: %{name}-security.patch |
4c95f073 | 26 | URL: http://www.ggi-project.org/ |
1a271a42 | 27 | %{?with_directfb:BuildRequires: DirectFB-devel >= 1.4.15} |
bd9f9bed | 28 | %{?with_glide:BuildRequires: Glide2x-devel} |
5ecb640b | 29 | %{?with_aalib:BuildRequires: aalib-devel} |
1a271a42 | 30 | BuildRequires: autoconf >= 2.59 |
914155c1 | 31 | BuildRequires: automake |
9df32079 | 32 | BuildRequires: libgii-devel >= 1.0.2 |
1a271a42 | 33 | BuildRequires: libtool >= 2:2.0 |
615d2cb6 | 34 | BuildRequires: ncurses-devel |
8c2d696c | 35 | %{?with_svga:BuildRequires: svgalib-devel} |
9e4d15b9 AM |
36 | BuildRequires: xorg-lib-libX11-devel |
37 | BuildRequires: xorg-lib-libXext-devel | |
38 | BuildRequires: xorg-lib-libXxf86dga-devel | |
39 | BuildRequires: xorg-lib-libXxf86vm-devel | |
1a271a42 | 40 | Requires: libgii >= 1.0.2 |
4707c9eb | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4c95f073 AF |
42 | |
43 | %description | |
d67ebb01 | 44 | LibGGI, the dynamic GGI (General Graphics Interface) library is a |
45 | flexible drawing library. | |
4c95f073 | 46 | |
d67ebb01 | 47 | It provides an opaque interface to the display's acceleration |
48 | functions. It was originally intended to allow user programs to | |
49 | interface with KGI, the GGI Kernel Graphics Interface, but other | |
50 | display types can be easily used by loading the appropriate "display | |
51 | target" (e.g. X, memory). | |
4c95f073 | 52 | |
7e68ec21 | 53 | %description -l pl.UTF-8 |
b71df51f | 54 | LibGGI, dynamiczne GGI (General Graphics Interface - Generalny |
7e68ec21 | 55 | Interfejs Graficzny) jest biblioteką obsługi grafiki. |
0538574f AM |
56 | |
57 | Dostarcza ona jednolity interfejs do akcelerowanych funkcji | |
7e68ec21 JR |
58 | wyświetlania. Oryginalnie biblioteka została stworzona do |
59 | współdziałania z KGI (GGI Kernel Graphic Interface) ale inne | |
60 | sterowniki wyświetlania mogą być łatwo używane. | |
0538574f | 61 | |
c92bbc57 | 62 | %package X11 |
aecb86e5 | 63 | Summary: X11 targets for LibGGI |
61be9c25 | 64 | Summary(pl.UTF-8): Obsługa X11 dla LibGGI |
e9147e51 | 65 | Group: Libraries |
bc4260b0 | 66 | Requires: %{name} = %{epoch}:%{version}-%{release} |
c92bbc57 JK |
67 | |
68 | %description X11 | |
69 | LibGGI targets for displaing in X: | |
d0c853c8 | 70 | - x - graphics via X-protocol |
71 | - xlib - graphics via X-library | |
72 | - dga - graphics via XFree86 DGA extension | |
c92bbc57 | 73 | |
7e68ec21 JR |
74 | %description X11 -l pl.UTF-8 |
75 | Moduły LibGGI do obsługi grafiki w XWindow: | |
76 | - x - grafika poprzez protokół X | |
77 | - xlib - grafika poprzez bibliotekę xlib | |
0538574f AM |
78 | - dga - grafika poprzez rozszerzenie X DGA |
79 | ||
1a271a42 JB |
80 | %package aa |
81 | Summary: aalib target for LibGGI | |
82 | Summary(pl.UTF-8): Obsługa aalib dla LibGGI | |
83 | Group: Libraries | |
84 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
85 | ||
86 | %description aa | |
87 | LibGGI target for displaying graphics using ascii-art-library. | |
88 | ||
89 | %description aa -l pl.UTF-8 | |
90 | Moduł LibGGI do obsługi grafiki poprzez bibliotekę ascii-art. | |
91 | ||
92 | %package directfb | |
93 | Summary: DirectFB drivers support for LibGGI fbdev target | |
94 | Summary(pl.UTF-8): Obsługa sterowników DirectFB w sterowniku fbdev LibGGI | |
95 | Group: Libraries | |
96 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
97 | ||
98 | %description directfb | |
99 | DirectFB drivers support for LibGGI fbdev target. | |
100 | ||
101 | %description directfb -l pl.UTF-8 | |
102 | Obsługa sterowników DirectFB w sterowniku LibGGI fbdev. | |
103 | ||
fc12f4d6 | 104 | %package glide |
aecb86e5 | 105 | Summary: Glide (3DFX) target for LibGGI |
61be9c25 | 106 | Summary(pl.UTF-8): Obsługa Glide (3DFX) dla LibGGI |
fc12f4d6 | 107 | Group: Libraries |
bc4260b0 | 108 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d67ebb01 | 109 | |
fc12f4d6 | 110 | %description glide |
111 | GGI Glide target. | |
c92bbc57 | 112 | |
7e68ec21 JR |
113 | %description glide -l pl.UTF-8 |
114 | Moduł do obsługi grafiki poprzez Glide. | |
0538574f | 115 | |
1a271a42 JB |
116 | %package svgalib |
117 | Summary: SVGALib target for LibGGI | |
118 | Summary(pl.UTF-8): Obsługa SVGALib dla LibGGI | |
119 | Group: Libraries | |
120 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
121 | ||
122 | %description svgalib | |
123 | LibGGI target for displaying via SVGALib. | |
124 | ||
125 | %description svgalib -l pl.UTF-8 | |
126 | Moduł LibGGI do obsługi grafiki poprzez bibliotekę SVGALib. | |
127 | ||
c92bbc57 JK |
128 | %package programs |
129 | Summary: Utilities and demos for GGI | |
61be9c25 | 130 | Summary(pl.UTF-8): Programy narzędziowe i przykładowe dla LibGGI |
e9147e51 | 131 | Group: Development/Libraries |
bc4260b0 | 132 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2ddfe4d9 | 133 | Obsoletes: libggi-demos |
c92bbc57 JK |
134 | |
135 | %description programs | |
d0c853c8 | 136 | Various utilities and demos for GGI. |
c92bbc57 | 137 | |
7e68ec21 JR |
138 | %description programs -l pl.UTF-8 |
139 | Różne programy oraz dema dla GGI | |
0538574f | 140 | |
4c95f073 | 141 | %package devel |
aecb86e5 | 142 | Summary: Development part of LibGGI |
61be9c25 | 143 | Summary(pl.UTF-8): Część dla programistów biblioteki LibGGI |
e9147e51 | 144 | Group: Development/Libraries |
bc4260b0 | 145 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9df32079 | 146 | Requires: libgii-devel >= 1.0.2 |
1a271a42 JB |
147 | %if %{with static_modules} |
148 | %{?with_aalib:Requires: aalib-devel} | |
149 | %{?with_glide:Requires: glide-devel} | |
150 | Requires: ncurses-devel | |
151 | %{?with_svga:Requires: svgalib-devel} | |
152 | Requires: xorg-lib-libX11-devel | |
153 | Requires: xorg-lib-libXext-devel | |
154 | Requires: xorg-lib-libXxf86dga-devel | |
155 | Requires: xorg-lib-libXxf86vm-devel | |
156 | %endif | |
4c95f073 AF |
157 | |
158 | %description devel | |
aecb86e5 | 159 | Development part of LibGGI. |
4c95f073 | 160 | |
7e68ec21 | 161 | %description devel -l pl.UTF-8 |
aecb86e5 | 162 | Pliki potrzebne do programowania z wykorzystaniem LibGGI. |
4c95f073 | 163 | |
1a271a42 JB |
164 | %package static |
165 | Summary: Static libggi library | |
166 | Summary(pl.UTF-8): Statyczna biblioteka libggi | |
167 | Group: Development/Libraries | |
168 | Requires: %{name}-devel = %{version}-%{release} | |
169 | ||
170 | %description static | |
171 | Static libggi library. | |
172 | ||
173 | %description static -l pl.UTF-8 | |
174 | Statyczna biblioteka libggi. | |
175 | ||
4c95f073 | 176 | %prep |
4605cec2 | 177 | %setup -q |
9e4d15b9 | 178 | %patch0 -p1 |
72164f54 SS |
179 | %patch1 -p1 |
180 | %patch2 -p1 | |
1a271a42 | 181 | %patch3 -p1 |
bd9f9bed | 182 | %patch4 -p1 |
8d389a41 | 183 | %patch5 -p1 |
8c2d696c | 184 | |
1a271a42 | 185 | %{__rm} acinclude.m4 m4/{libtool,lt*}.m4 |
4c95f073 AF |
186 | |
187 | %build | |
1fbfdf97 | 188 | %{__libtoolize} |
8c2d696c | 189 | %{__aclocal} -I m4 |
1fbfdf97 JB |
190 | %{__autoheader} |
191 | %{__autoconf} | |
192 | %{__automake} | |
bd9f9bed | 193 | CPPFLAGS="%{rpmcppflags} %{?with_glide:-I/usr/include/glide} %{?with_directfb:-I/usr/include/directfb -I/usr/include/directfb-internal}" |
4c95f073 | 194 | %configure \ |
1a271a42 | 195 | %{!?with_aalib:--disable-aa} \ |
8c2d696c JB |
196 | %{!?debug:--disable-debug} \ |
197 | %{!?with_glide:--disable-glide} \ | |
1a271a42 JB |
198 | %{!?with_kgicon:--disable-kgi} \ |
199 | %{!?with_directfb:--disable-directfb}%{?with_directfb:--with-directfb=%{_libdir}/directfb-1.4-6/gfxdrivers} \ | |
200 | %{!?with_static_modules:--disable-static} \ | |
201 | %{!?with_svga:--disable-svga --disable-vgagl} | |
d22beb91 | 202 | %{__make} |
4c95f073 AF |
203 | |
204 | %install | |
205 | rm -rf $RPM_BUILD_ROOT | |
6b7cab6a | 206 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
4c95f073 | 207 | |
e9fb072c | 208 | %{__make} install \ |
4c95f073 AF |
209 | DESTDIR="$RPM_BUILD_ROOT" |
210 | ||
6b7cab6a | 211 | install programs/demos/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
b6b8f9d4 | 212 | install programs/demos/Makefile $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
213 | install config.h $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
c92bbc57 JK |
214 | |
215 | # demos which are nice, but not installed by make install | |
216 | install programs/demos/.libs/flying_ggis $RPM_BUILD_ROOT%{_bindir} | |
217 | install programs/demos/.libs/slimy $RPM_BUILD_ROOT%{_bindir} | |
218 | install programs/demos/.libs/stars $RPM_BUILD_ROOT%{_bindir} | |
4c95f073 | 219 | |
493f86aa | 220 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ggi/{default,default/fbdev,display,helper}/*.la |
8c2d696c | 221 | |
1a271a42 JB |
222 | # displays not supported on Linux |
223 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man7/display-{directx,quartz,vgl}.7 | |
224 | ||
4c95f073 | 225 | %clean |
b71df51f | 226 | rm -rf $RPM_BUILD_ROOT |
4c95f073 | 227 | |
405eb6f8 JB |
228 | %post -p /sbin/ldconfig |
229 | %postun -p /sbin/ldconfig | |
230 | ||
4c95f073 AF |
231 | %files |
232 | %defattr(644,root,root,755) | |
1a271a42 | 233 | %doc FAQ NEWS README doc/*.txt |
fd9c2dc2 | 234 | %dir %{_sysconfdir}/ggi |
1a271a42 | 235 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ggi/libggi.conf |
8c2d696c | 236 | %dir %{_sysconfdir}/ggi/targets |
1a271a42 JB |
237 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ggi/targets/fbdev.conf |
238 | %attr(755,root,root) %{_libdir}/libggi.so.*.*.* | |
dd635025 | 239 | %attr(755,root,root) %ghost %{_libdir}/libggi.so.2 |
1a271a42 JB |
240 | %dir %{_libdir}/ggi/default |
241 | %dir %{_libdir}/ggi/default/fbdev | |
dd635025 SS |
242 | %attr(755,root,root) %{_libdir}/ggi/default/fbdev/fbdev_m2164w.so |
243 | %attr(755,root,root) %{_libdir}/ggi/default/fbdev/fbdev_mach64.so | |
244 | %attr(755,root,root) %{_libdir}/ggi/default/fbdev/fbdev_mga_g400.so | |
245 | %attr(755,root,root) %{_libdir}/ggi/default/color.so | |
246 | %attr(755,root,root) %{_libdir}/ggi/default/ilbm.so | |
247 | %attr(755,root,root) %{_libdir}/ggi/default/iplanar_2p.so | |
248 | %attr(755,root,root) %{_libdir}/ggi/default/linear_1.so | |
249 | %attr(755,root,root) %{_libdir}/ggi/default/linear_16.so | |
250 | %attr(755,root,root) %{_libdir}/ggi/default/linear_1_r.so | |
251 | %attr(755,root,root) %{_libdir}/ggi/default/linear_2.so | |
252 | %attr(755,root,root) %{_libdir}/ggi/default/linear_24.so | |
253 | %attr(755,root,root) %{_libdir}/ggi/default/linear_32.so | |
254 | %attr(755,root,root) %{_libdir}/ggi/default/linear_4.so | |
255 | %attr(755,root,root) %{_libdir}/ggi/default/linear_4_r.so | |
256 | %attr(755,root,root) %{_libdir}/ggi/default/linear_8.so | |
257 | %attr(755,root,root) %{_libdir}/ggi/default/planar.so | |
258 | %attr(755,root,root) %{_libdir}/ggi/default/pseudo_stubs.so | |
259 | %attr(755,root,root) %{_libdir}/ggi/default/stubs.so | |
260 | %attr(755,root,root) %{_libdir}/ggi/default/text_16.so | |
261 | %attr(755,root,root) %{_libdir}/ggi/default/text_32.so | |
1a271a42 | 262 | %dir %{_libdir}/ggi/display |
f8257bc5 | 263 | %attr(755,root,root) %{_libdir}/ggi/display/auto.so |
c92bbc57 JK |
264 | %attr(755,root,root) %{_libdir}/ggi/display/fbdev.so |
265 | %attr(755,root,root) %{_libdir}/ggi/display/file.so | |
8c2d696c | 266 | %attr(755,root,root) %{_libdir}/ggi/display/ipc.so |
565c2841 JB |
267 | %ifarch ppc |
268 | %attr(755,root,root) %{_libdir}/ggi/display/lcd823.so | |
269 | %endif | |
0538574f | 270 | %attr(755,root,root) %{_libdir}/ggi/display/linvtsw.so |
c92bbc57 JK |
271 | %attr(755,root,root) %{_libdir}/ggi/display/mansync.so |
272 | %attr(755,root,root) %{_libdir}/ggi/display/memory.so | |
273 | %attr(755,root,root) %{_libdir}/ggi/display/monotext.so | |
274 | %attr(755,root,root) %{_libdir}/ggi/display/multi.so | |
275 | %attr(755,root,root) %{_libdir}/ggi/display/palemu.so | |
276 | %attr(755,root,root) %{_libdir}/ggi/display/sub.so | |
277 | %attr(755,root,root) %{_libdir}/ggi/display/tele.so | |
278 | %attr(755,root,root) %{_libdir}/ggi/display/terminfo.so | |
279 | %attr(755,root,root) %{_libdir}/ggi/display/tile.so | |
280 | %attr(755,root,root) %{_libdir}/ggi/display/trueemu.so | |
281 | %attr(755,root,root) %{_libdir}/ggi/display/vcsa.so | |
1a271a42 JB |
282 | %{_mandir}/man7/display-auto.7* |
283 | %{_mandir}/man7/display-fbdev.7* | |
284 | %{_mandir}/man7/display-file.7* | |
285 | %{_mandir}/man7/display-mansync.7* | |
286 | %{_mandir}/man7/display-memory.7* | |
287 | %{_mandir}/man7/display-monotext.7* | |
288 | %{_mandir}/man7/display-multi.7* | |
289 | %{_mandir}/man7/display-palemu.7* | |
290 | %{_mandir}/man7/display-sub.7* | |
291 | %{_mandir}/man7/display-tele.7* | |
292 | %{_mandir}/man7/display-terminfo.7* | |
293 | %{_mandir}/man7/display-tile.7* | |
294 | %{_mandir}/man7/display-trueemu.7* | |
295 | %{_mandir}/man7/display-vcsa.7* | |
296 | %{_mandir}/man7/libggi.7* | |
c92bbc57 JK |
297 | |
298 | %files X11 | |
d67ebb01 | 299 | %defattr(644,root,root,755) |
dd635025 | 300 | %attr(755,root,root) %{_libdir}/ggi/display/X.so |
1fbfdf97 | 301 | %dir %{_libdir}/ggi/helper |
dd635025 SS |
302 | %attr(755,root,root) %{_libdir}/ggi/helper/helper_x_dbe.so |
303 | %attr(755,root,root) %{_libdir}/ggi/helper/helper_x_dga.so | |
304 | %attr(755,root,root) %{_libdir}/ggi/helper/helper_x_evi.so | |
305 | %attr(755,root,root) %{_libdir}/ggi/helper/helper_x_shm.so | |
306 | %attr(755,root,root) %{_libdir}/ggi/helper/helper_x_vidmode.so | |
1a271a42 JB |
307 | %{_mandir}/man7/display-x.7* |
308 | ||
309 | %if %{with aalib} | |
310 | %files aa | |
311 | %defattr(644,root,root,755) | |
312 | %attr(755,root,root) %{_libdir}/ggi/display/aa.so | |
313 | %{_mandir}/man7/display-aa.7* | |
314 | %endif | |
315 | ||
316 | %if %{with directfb} | |
317 | %files directfb | |
318 | %defattr(644,root,root,755) | |
319 | %attr(755,root,root) %{_libdir}/ggi/default/fbdev/fbdev_directfb.so | |
320 | %attr(755,root,root) %{_libdir}/ggi/default/fbdev/fbdev_directfbglobal.so | |
321 | %endif | |
c92bbc57 | 322 | |
8c2d696c JB |
323 | %if %{with glide} |
324 | %files glide | |
2325e18c | 325 | %defattr(644,root,root,755) |
8c2d696c | 326 | %attr(755,root,root) %{_libdir}/ggi/display/glide.so |
1a271a42 JB |
327 | %{_mandir}/man7/display-glide.7* |
328 | %endif | |
329 | ||
330 | %if %{with svga} | |
331 | %files svgalib | |
332 | %defattr(644,root,root,755) | |
333 | %attr(755,root,root) %{_libdir}/ggi/display/svgalib.so | |
334 | %attr(755,root,root) %{_libdir}/ggi/display/vgagl.so | |
335 | %{_mandir}/man7/display-svgalib.7* | |
8c2d696c | 336 | %endif |
c92bbc57 JK |
337 | |
338 | %files programs | |
d0c853c8 | 339 | %defattr(644,root,root,755) |
dd635025 SS |
340 | %attr(755,root,root) %{_bindir}/cube3d |
341 | %attr(755,root,root) %{_bindir}/flying_ggis | |
342 | %attr(755,root,root) %{_bindir}/ggiteleserver | |
343 | %attr(755,root,root) %{_bindir}/monitest | |
344 | %attr(755,root,root) %{_bindir}/slimy | |
345 | %attr(755,root,root) %{_bindir}/stars | |
346 | %{_mandir}/man1/cube3d.1* | |
347 | %{_mandir}/man1/demo.1* | |
348 | %{_mandir}/man1/ggi-demo.1* | |
349 | %{_mandir}/man1/ggiteleserver.1* | |
350 | %{_mandir}/man1/monitest.1* | |
4c95f073 AF |
351 | |
352 | %files devel | |
353 | %defattr(644,root,root,755) | |
81ac03d6 | 354 | %doc ChangeLog |
1a271a42 JB |
355 | %attr(755,root,root) %{_libdir}/libggi.so |
356 | %{_libdir}/libggi.la | |
81ac03d6 | 357 | %{_includedir}/ggi/*.h |
81ac03d6 JB |
358 | %{_includedir}/ggi/display |
359 | %{_includedir}/ggi/internal/*.h | |
1a271a42 JB |
360 | %{_mandir}/man3/ggi*.3* |
361 | %{_mandir}/man7/ggidev-triple-int.7* | |
1fbfdf97 | 362 | %{_examplesdir}/%{name}-%{version} |
1a271a42 JB |
363 | |
364 | %if %{with static_modules} | |
365 | %files static | |
366 | %defattr(644,root,root,755) | |
367 | %{_libdir}/libggi.a | |
368 | %endif |