2 # TODO: plenty of undefined references
5 %bcond_with sse2 # use SSE2 instructions
7 %ifarch pentium4 %{x8664}
12 Summary: ClanLib, the platform independent game SDK
13 Summary(pl.UTF-8): ClanLib, niezależny od platformy SDK do gier
14 Summary(pt_BR.UTF-8): SDK Clanlib
18 License: BSD-like (see COPYING)
20 #Source0Download: http://www.clanlib.org/download.html
21 Source0: http://www.clanlib.org/download/releases-2.0/%{name}-%{version}.tgz
22 # Source0-md5: a6207ce394e60151c61aa5ad99de336d
23 Patch0: %{name}-build.patch
24 Patch1: %{name}-link.patch
25 URL: http://www.clanlib.org/
26 BuildRequires: OpenGL-GLU-devel
27 BuildRequires: alsa-lib-devel
28 BuildRequires: autoconf >= 2.59-9
29 BuildRequires: automake >= 1.6
30 BuildRequires: doxygen
31 BuildRequires: fontconfig-devel
32 BuildRequires: freetype-devel
33 BuildRequires: libjpeg-devel
34 BuildRequires: libmikmod-devel
35 BuildRequires: libpng-devel >= 1.2
36 BuildRequires: libstdc++-devel
37 BuildRequires: libtool >= 2:1.4d-3
38 BuildRequires: libvorbis-devel >= 1:1.0
39 BuildRequires: libxslt-progs
40 BuildRequires: pcre-devel
41 BuildRequires: perl-base
42 BuildRequires: pkgconfig
43 BuildRequires: sqlite3-devel
44 BuildRequires: xorg-lib-libXi-devel
45 BuildRequires: xorg-lib-libXxf86vm-devel
46 %{?with_sse2:Requires: cpuinfo(sse2)}
47 Obsoletes: ClanLib-SDL
48 Obsoletes: ClanLib-TTF
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 %define _noautoreqdep libGL.so.1 libGLU.so.1
54 The ClanLib SDK is designed to provide an platform independent game
55 SDK using a lot cleaner (and object oriented) interface than the
56 traditional way it is done in DirectX, SDL and such. The goal is to
57 avoid game developers constantly reinventing the wheel by providing
58 smarter ways to eg. load surfaces.
60 %description -l pl.UTF-8
61 ClanLib SDK jest projektowany jako niezależny od platformy SDK dla
62 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
63 przejrzystszy niż DirectX, SDL i inne.
65 %description -l pt_BR.UTF-8
66 A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para
67 facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer
68 uma interface comum para os problemas clássicos dos jogos (carregar
69 gráficos por exemplo).
72 Summary: ClanLib development package
73 Summary(pl.UTF-8): Pakiet programistyczny dla ClanLib
74 Summary(pt_BR.UTF-8): Arquivos para desenvolvimento usando a Clanlib
75 Group: Development/Libraries
76 Requires: %{name} = %{version}-%{release}
77 Requires: libstdc++-devel
79 Requires: xorg-lib-libXxf86vm-devel
80 Obsoletes: ClanLib-SDL-devel
81 Obsoletes: ClanLib-TTF-devel
84 This is the development add-on package that includes the header files
85 needed to compile new ClanLib applications.
87 %description devel -l pl.UTF-8
88 Programistyczne dodatki do ClanLiba, zawierają pliki nagłówkowe
89 potrzebne do kompilacji programów korzystających z ClanLib.
91 %description devel -l pt_BR.UTF-8
92 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
96 Summary: ClanLib static libraries
97 Summary(pl.UTF-8): Statyczne biblioteki ClanLib
98 Group: Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
100 Obsoletes: ClanLib-SDL-static
101 Obsoletes: ClanLib-TTF-static
104 This package contains static versions of ClanLib libraries.
106 %description static -l pl.UTF-8
107 Ten pakiet zawiera statyczne wersje bibliotek ClanLib.
110 Summary: OpenGL ClanLib library
111 Summary(pl.UTF-8): Biblioteka OpenGL dla ClanLiba
113 Requires: %{name} = %{version}-%{release}
116 OpenGL ClanLib library.
118 %description OpenGL -l pl.UTF-8
119 Biblioteka OpenGL dla ClanLiba.
121 %package OpenGL-devel
122 Summary: Header files for OpenGL ClanLib library
123 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenGL dla ClanLiba
124 Group: Development/Libraries
125 Requires: %{name}-OpenGL = %{version}-%{release}
126 Requires: %{name}-devel = %{version}-%{release}
127 Requires: OpenGL-GLU-devel
128 Requires: xorg-lib-libXi-devel
129 Requires: xorg-lib-libXxf86vm-devel
131 %description OpenGL-devel
132 Header files for OpenGL ClanLib library.
134 %description OpenGL-devel -l pl.UTF-8
135 Pliki nagłówkowe biblioteki OpenGL dla ClanLiba.
137 %package OpenGL-static
138 Summary: Static OpenGL ClanLib library
139 Summary(pl.UTF-8): Statyczna biblioteka OpenGL dla ClanLiba
140 Group: Development/Libraries
141 Requires: %{name}-OpenGL-devel = %{version}-%{release}
143 %description OpenGL-static
144 Static OpenGL ClanLib library.
146 %description OpenGL-static -l pl.UTF-8
147 Statyczna biblioteka OpenGL dla ClanLiba.
150 Summary: OpenGL1 ClanLib library
151 Summary(pl.UTF-8): Biblioteka OpenGL1 dla ClanLiba
153 Requires: %{name} = %{version}-%{release}
156 OpenGL1 ClanLib library.
158 %description OpenGL1 -l pl.UTF-8
159 Biblioteka OpenGL1 dla ClanLiba.
161 %package OpenGL1-devel
162 Summary: Header files for OpenGL1 ClanLib library
163 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenGL1 dla ClanLiba
164 Group: Development/Libraries
165 Requires: %{name}-OpenGL1 = %{version}-%{release}
166 Requires: %{name}-devel = %{version}-%{release}
167 Requires: OpenGL-GLU-devel
168 Requires: xorg-lib-libXi-devel
169 Requires: xorg-lib-libXxf86vm-devel
171 %description OpenGL1-devel
172 Header files for OpenGL1 ClanLib library.
174 %description OpenGL1-devel -l pl.UTF-8
175 Pliki nagłówkowe biblioteki OpenGL1 dla ClanLiba.
177 %package OpenGL1-static
178 Summary: Static OpenGL1 ClanLib library
179 Summary(pl.UTF-8): Statyczna biblioteka OpenGL1 dla ClanLiba
180 Group: Development/Libraries
181 Requires: %{name}-OpenGL1-devel = %{version}-%{release}
183 %description OpenGL1-static
184 Static OpenGL1 ClanLib library.
186 %description OpenGL1-static -l pl.UTF-8
187 Statyczna biblioteka OpenGL1 dla ClanLiba.
190 Summary: MikMod ClanLib library
191 Summary(pl.UTF-8): Biblioteka MikMod dla ClanLiba
193 Requires: %{name} = %{version}-%{release}
196 MikMod ClanLib library.
198 %description MikMod -l pl.UTF-8
199 Biblioteka MikMod dla ClanLiba.
201 %package MikMod-devel
202 Summary: Header files for MikMod ClanLib library
203 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MikMod dla ClanLiba
204 Group: Development/Libraries
205 Requires: %{name}-MikMod = %{version}-%{release}
206 Requires: %{name}-devel = %{version}-%{release}
207 Requires: libmikmod-devel
209 %description MikMod-devel
210 Header files for MikMod ClanLib library.
212 %description MikMod-devel -l pl.UTF-8
213 Pliki nagłówkowe biblioteki MikMod dla ClanLiba.
215 %package MikMod-static
216 Summary: Static MikMod ClanLib library
217 Summary(pl.UTF-8): Statyczna biblioteka MikMod dla ClanLiba
218 Group: Development/Libraries
219 Requires: %{name}-MikMod-devel = %{version}-%{release}
221 %description MikMod-static
222 Static MikMod ClanLib library.
224 %description MikMod-static -l pl.UTF-8
225 Statyczna biblioteka MikMod dla ClanLiba.
228 Summary: ClanLib SWRender (Software Rendering) library
229 Summary(pl.UTF-8): Biblioteka ClanLib SWRender (Software Rendering)
231 Requires: %{name} = %{version}-%{release}
233 %description SWRender
234 ClanLib SWRender software rendering library, utilizing SSE2
235 instructions of x86 processors.
237 %description SWRender -l pl.UTF-8
238 Biblioteka programowego renderowania ClanLib SWRender, wykorzystująca
239 instrukcje SSE2 procesorów x86.
241 %package SWRender-devel
242 Summary: Header files for ClanLib SWRender library
243 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ClanLib SWRender
244 Group: Development/Libraries
245 Requires: %{name}-SWRender = %{version}-%{release}
246 Requires: %{name}-devel = %{version}-%{release}
248 %description SWRender-devel
249 Header files for ClanLib SWRender software rendering library.
251 %description SWRender-devel -l pl.UTF_8
252 Pliki nagłówkowe biblioteki programowego renderowania ClanLib
255 %package SWRender-static
256 Summary: Static ClanLib SWRender library
257 Summary(pl.UTF-8): Statyczna biblioteka ClanLib SWRender
258 Group: Development/Libraries
259 Requires: %{name}-SWRender-devel = %{version}-%{release}
261 %description SWRender-static
262 Static ClanLib SWRender library.
264 %description SWRender-static -l pl.UTF-8
265 Statyczna biblioteka ClanLib SWRender.
268 Summary: Vorbis ClanLib library
269 Summary(pl.UTF-8): Biblioteka Vorbis dla ClanLiba
271 Requires: %{name} = %{version}-%{release}
274 Vorbis ClanLib library.
276 %description Vorbis -l pl.UTF-8
277 Biblioteka Vorbis dla ClanLiba.
279 %package Vorbis-devel
280 Summary: Header files for Vorbis ClanLib library
281 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Vorbis dla ClanLiba
282 Group: Development/Libraries
283 Requires: %{name}-Vorbis = %{version}-%{release}
284 Requires: %{name}-devel = %{version}-%{release}
285 Requires: libvorbis-devel
287 %description Vorbis-devel
288 Header files for Vorbis ClanLib library.
290 %description Vorbis-devel -l pl.UTF-8
291 Pliki nagłówkowe biblioteki Vorbis dla ClanLiba.
293 %package Vorbis-static
294 Summary: Static Vorbis ClanLib library
295 Summary(pl.UTF-8): Statyczna biblioteka Vorbis dla ClanLiba
296 Group: Development/Libraries
297 Requires: %{name}-Vorbis-devel = %{version}-%{release}
299 %description Vorbis-static
300 Static Vorbis ClanLib library.
302 %description Vorbis-static -l pl.UTF-8
303 Statyczna biblioteka Vorbis dla ClanLiba.
306 Summary: ClanLib reference documentation for programmers
307 Summary(pl.UTF-8): Dokumentacja programisty do biblioteki ClanLib
311 ClanLib reference documentation for programmers.
313 %description doc -l pl.UTF-8
314 Dokumentacja programisty do biblioteki ClanLib
321 %{__rm} -r autom4te.cache
329 %{!?with_sse2:--disable-sse2} \
331 --%{?debug:en}%{!?debug:dis}able-debug
333 export PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig
336 (cd Documentation/Utilities/ReferenceDocs; ln -s ../../../Sources/API ClanLib)
338 PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig
341 rm -rf $RPM_BUILD_ROOT
343 %{__make} install install-html \
344 DESTDIR=$RPM_BUILD_ROOT
346 # missing from make install
347 install -d $RPM_BUILD_ROOT%{_aclocaldir}
348 install Setup/Unix/clanlib.m4 $RPM_BUILD_ROOT%{_aclocaldir}
351 rm -rf $RPM_BUILD_ROOT
353 %post -p /sbin/ldconfig
354 %postun -p /sbin/ldconfig
356 %post OpenGL -p /sbin/ldconfig
357 %postun OpenGL -p /sbin/ldconfig
359 %post OpenGL1 -p /sbin/ldconfig
360 %postun OpenGL1 -p /sbin/ldconfig
362 %post MikMod -p /sbin/ldconfig
363 %postun MikMod -p /sbin/ldconfig
365 %post SWRender -p /sbin/ldconfig
366 %postun SWRender -p /sbin/ldconfig
368 %post Vorbis -p /sbin/ldconfig
369 %postun Vorbis -p /sbin/ldconfig
372 %defattr(644,root,root,755)
373 %doc COPYING CREDITS README
374 %attr(755,root,root) %{_libdir}/libclan22App-%{cvmajor}.so.*.*.*
375 %attr(755,root,root) %ghost %{_libdir}/libclan22App-%{cvmajor}.so.1
376 %attr(755,root,root) %{_libdir}/libclan22Core-%{cvmajor}.so.*.*.*
377 %attr(755,root,root) %ghost %{_libdir}/libclan22CSSLayout-%{cvmajor}.so.1
378 %attr(755,root,root) %{_libdir}/libclan22CSSLayout-%{cvmajor}.so.*.*.*
379 %attr(755,root,root) %ghost %{_libdir}/libclan22Core-%{cvmajor}.so.1
380 %attr(755,root,root) %{_libdir}/libclan22Database-%{cvmajor}.so.*.*.*
381 %attr(755,root,root) %ghost %{_libdir}/libclan22Database-%{cvmajor}.so.1
382 %attr(755,root,root) %{_libdir}/libclan22Display-%{cvmajor}.so.*.*.*
383 %attr(755,root,root) %ghost %{_libdir}/libclan22Display-%{cvmajor}.so.1
384 %attr(755,root,root) %{_libdir}/libclan22GUI-%{cvmajor}.so.*.*.*
385 %attr(755,root,root) %ghost %{_libdir}/libclan22GUI-%{cvmajor}.so.1
386 %attr(755,root,root) %{_libdir}/libclan22Network-%{cvmajor}.so.*.*.*
387 %attr(755,root,root) %ghost %{_libdir}/libclan22Network-%{cvmajor}.so.1
388 %attr(755,root,root) %{_libdir}/libclan22RegExp-%{cvmajor}.so.*.*.*
389 %attr(755,root,root) %ghost %{_libdir}/libclan22RegExp-%{cvmajor}.so.1
390 %attr(755,root,root) %{_libdir}/libclan22Sound-%{cvmajor}.so.*.*.*
391 %attr(755,root,root) %ghost %{_libdir}/libclan22Sound-%{cvmajor}.so.1
392 %attr(755,root,root) %{_libdir}/libclan22Sqlite-%{cvmajor}.so.*.*.*
393 %attr(755,root,root) %ghost %{_libdir}/libclan22Sqlite-%{cvmajor}.so.1
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_libdir}/libclan22App.so
398 %attr(755,root,root) %{_libdir}/libclan22CSSLayout.so
399 %attr(755,root,root) %{_libdir}/libclan22Core.so
400 %attr(755,root,root) %{_libdir}/libclan22Database.so
401 %attr(755,root,root) %{_libdir}/libclan22Display.so
402 %attr(755,root,root) %{_libdir}/libclan22GUI.so
403 %attr(755,root,root) %{_libdir}/libclan22Network.so
404 %attr(755,root,root) %{_libdir}/libclan22RegExp.so
405 %attr(755,root,root) %{_libdir}/libclan22Sound.so
406 %attr(755,root,root) %{_libdir}/libclan22Sqlite.so
407 %{_libdir}/libclan22App.la
408 %{_libdir}/libclan22CSSLayout.la
409 %{_libdir}/libclan22Core.la
410 %{_libdir}/libclan22Database.la
411 %{_libdir}/libclan22Display.la
412 %{_libdir}/libclan22GUI.la
413 %{_libdir}/libclan22Network.la
414 %{_libdir}/libclan22RegExp.la
415 %{_libdir}/libclan22Sound.la
416 %{_libdir}/libclan22Sqlite.la
417 %dir %{_includedir}/ClanLib-%{cvmajor}
418 %dir %{_includedir}/ClanLib-%{cvmajor}/ClanLib
419 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/App
420 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/application.h
421 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/CSSLayout
422 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/csslayout.h
423 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Core
424 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/core.h
425 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Database
426 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/database.h
427 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Display
428 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/display.h
429 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GUI*
430 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gui*.h
431 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Network
432 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/network.h
433 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/RegExp
434 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/regexp.h
435 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sound
436 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sound.h
437 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sqlite
438 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sqlite.h
439 %{_aclocaldir}/clanlib.m4
440 %{_pkgconfigdir}/clanApp-%{cvmajor}.pc
441 %{_pkgconfigdir}/clanCSSLayout-%{cvmajor}.pc
442 %{_pkgconfigdir}/clanCore-%{cvmajor}.pc
443 %{_pkgconfigdir}/clanDatabase-%{cvmajor}.pc
444 %{_pkgconfigdir}/clanDisplay-%{cvmajor}.pc
445 %{_pkgconfigdir}/clanGUI*-%{cvmajor}.pc
446 %{_pkgconfigdir}/clanNetwork-%{cvmajor}.pc
447 %{_pkgconfigdir}/clanRegExp-%{cvmajor}.pc
448 %{_pkgconfigdir}/clanSound-%{cvmajor}.pc
449 %{_pkgconfigdir}/clanSqlite-%{cvmajor}.pc
452 %defattr(644,root,root,755)
453 %{_libdir}/libclan22App.a
454 %{_libdir}/libclan22CSSLayout.a
455 %{_libdir}/libclan22Core.a
456 %{_libdir}/libclan22Database.a
457 %{_libdir}/libclan22Display.a
458 %{_libdir}/libclan22GUI.a
459 %{_libdir}/libclan22Network.a
460 %{_libdir}/libclan22RegExp.a
461 %{_libdir}/libclan22Sound.a
462 %{_libdir}/libclan22Sqlite.a
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_libdir}/libclan22GL-%{cvmajor}.so.*.*.*
467 %attr(755,root,root) %ghost %{_libdir}/libclan22GL-%{cvmajor}.so.1
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_libdir}/libclan22GL.so
472 %{_libdir}/libclan22GL.la
473 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GL
474 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gl.h
475 %{_pkgconfigdir}/clanGL-%{cvmajor}.pc
478 %defattr(644,root,root,755)
479 %{_libdir}/libclan22GL.a
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_libdir}/libclan22GL1-%{cvmajor}.so.*.*.*
484 %attr(755,root,root) %ghost %{_libdir}/libclan22GL1-%{cvmajor}.so.1
487 %defattr(644,root,root,755)
488 %attr(755,root,root) %{_libdir}/libclan22GL1.so
489 %{_libdir}/libclan22GL1.la
490 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GL1
491 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gl1.h
492 %{_pkgconfigdir}/clanGL1-%{cvmajor}.pc
494 %files OpenGL1-static
495 %defattr(644,root,root,755)
496 %{_libdir}/libclan22GL1.a
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{_libdir}/libclan22MikMod-%{cvmajor}.so.*.*.*
501 %attr(755,root,root) %ghost %{_libdir}/libclan22MikMod-%{cvmajor}.so.1
504 %defattr(644,root,root,755)
505 %attr(755,root,root) %{_libdir}/libclan22MikMod.so
506 %{_libdir}/libclan22MikMod.la
507 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/MikMod
508 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/mikmod.h
509 %{_pkgconfigdir}/clanMikMod-%{cvmajor}.pc
512 %defattr(644,root,root,755)
513 %{_libdir}/libclan22MikMod.a
517 %defattr(644,root,root,755)
518 %attr(755,root,root) %{_libdir}/libclan22SWRender-%{cvmajor}.so.*.*.*
519 %attr(755,root,root) %ghost %{_libdir}/libclan22SWRender-%{cvmajor}.so.1
521 %files SWRender-devel
522 %defattr(644,root,root,755)
523 %attr(755,root,root) %{_libdir}/libclan22SWRender.so
524 %{_libdir}/libclan22SWRender.la
525 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/SWRender
526 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/swrender.h
527 %{_pkgconfigdir}/clanSWRender-%{cvmajor}.pc
529 %files SWRender-static
530 %defattr(644,root,root,755)
531 %{_libdir}/libclan22SWRender.a
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_libdir}/libclan22Vorbis-%{cvmajor}.so.*.*.*
537 %attr(755,root,root) %ghost %{_libdir}/libclan22Vorbis-%{cvmajor}.so.1
540 %defattr(644,root,root,755)
541 %attr(755,root,root) %{_libdir}/libclan22Vorbis.so
542 %{_libdir}/libclan22Vorbis.la
543 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Vorbis
544 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/vorbis.h
545 %{_pkgconfigdir}/clanVorbis-%{cvmajor}.pc
548 %defattr(644,root,root,755)
549 %{_libdir}/libclan22Vorbis.a
552 %defattr(644,root,root,755)
553 %{_docdir}/clanlib-%{cvmajor}