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