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 URL: http://www.clanlib.org/
25 BuildRequires: OpenGL-GLU-devel
26 BuildRequires: alsa-lib-devel
27 BuildRequires: autoconf >= 2.59-9
28 BuildRequires: automake >= 1.6
29 BuildRequires: doxygen
30 BuildRequires: fontconfig-devel
31 BuildRequires: freetype-devel
32 BuildRequires: libjpeg-devel
33 BuildRequires: libmikmod-devel
34 BuildRequires: libpng-devel >= 1.2
35 BuildRequires: libstdc++-devel
36 BuildRequires: libtool >= 2:1.4d-3
37 BuildRequires: libvorbis-devel >= 1:1.0
38 BuildRequires: libxslt-progs
39 BuildRequires: pcre-devel
40 BuildRequires: perl-base
41 BuildRequires: pkgconfig
42 BuildRequires: sqlite3-devel
43 BuildRequires: xorg-lib-libXi-devel
44 BuildRequires: xorg-lib-libXxf86vm-devel
45 %{?with_sse2:Requires: cpuinfo(sse2)}
46 Obsoletes: ClanLib-SDL
47 Obsoletes: ClanLib-TTF
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %define _noautoreqdep libGL.so.1 libGLU.so.1
53 The ClanLib SDK is designed to provide an platform independent game
54 SDK using a lot cleaner (and object oriented) interface than the
55 traditional way it is done in DirectX, SDL and such. The goal is to
56 avoid game developers constantly reinventing the wheel by providing
57 smarter ways to eg. load surfaces.
59 %description -l pl.UTF-8
60 ClanLib SDK jest projektowany jako niezależny od platformy SDK dla
61 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
62 przejrzystszy niż DirectX, SDL i inne.
64 %description -l pt_BR.UTF-8
65 A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para
66 facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer
67 uma interface comum para os problemas clássicos dos jogos (carregar
68 gráficos por exemplo).
71 Summary: ClanLib development package
72 Summary(pl.UTF-8): Pakiet programistyczny dla ClanLib
73 Summary(pt_BR.UTF-8): Arquivos para desenvolvimento usando a Clanlib
74 Group: Development/Libraries
75 Requires: %{name} = %{version}-%{release}
76 Requires: libstdc++-devel
78 Requires: xorg-lib-libXxf86vm-devel
79 Obsoletes: ClanLib-SDL-devel
80 Obsoletes: ClanLib-TTF-devel
83 This is the development add-on package that includes the header files
84 needed to compile new ClanLib applications.
86 %description devel -l pl.UTF-8
87 Programistyczne dodatki do ClanLiba, zawierają pliki nagłówkowe
88 potrzebne do kompilacji programów korzystających z ClanLib.
90 %description devel -l pt_BR.UTF-8
91 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
95 Summary: ClanLib static libraries
96 Summary(pl.UTF-8): Statyczne biblioteki ClanLib
97 Group: Development/Libraries
98 Requires: %{name}-devel = %{version}-%{release}
99 Obsoletes: ClanLib-SDL-static
100 Obsoletes: ClanLib-TTF-static
103 This package contains static versions of ClanLib libraries.
105 %description static -l pl.UTF-8
106 Ten pakiet zawiera statyczne wersje bibliotek ClanLib.
109 Summary: OpenGL ClanLib library
110 Summary(pl.UTF-8): Biblioteka OpenGL dla ClanLiba
112 Requires: %{name} = %{version}-%{release}
115 OpenGL ClanLib library.
117 %description OpenGL -l pl.UTF-8
118 Biblioteka OpenGL dla ClanLiba.
120 %package OpenGL-devel
121 Summary: Header files for OpenGL ClanLib library
122 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenGL dla ClanLiba
123 Group: Development/Libraries
124 Requires: %{name}-OpenGL = %{version}-%{release}
125 Requires: %{name}-devel = %{version}-%{release}
126 Requires: OpenGL-GLU-devel
127 Requires: xorg-lib-libXi-devel
128 Requires: xorg-lib-libXxf86vm-devel
130 %description OpenGL-devel
131 Header files for OpenGL ClanLib library.
133 %description OpenGL-devel -l pl.UTF-8
134 Pliki nagłówkowe biblioteki OpenGL dla ClanLiba.
136 %package OpenGL-static
137 Summary: Static OpenGL ClanLib library
138 Summary(pl.UTF-8): Statyczna biblioteka OpenGL dla ClanLiba
139 Group: Development/Libraries
140 Requires: %{name}-OpenGL-devel = %{version}-%{release}
142 %description OpenGL-static
143 Static OpenGL ClanLib library.
145 %description OpenGL-static -l pl.UTF-8
146 Statyczna biblioteka OpenGL dla ClanLiba.
149 Summary: OpenGL1 ClanLib library
150 Summary(pl.UTF-8): Biblioteka OpenGL1 dla ClanLiba
152 Requires: %{name} = %{version}-%{release}
155 OpenGL1 ClanLib library.
157 %description OpenGL1 -l pl.UTF-8
158 Biblioteka OpenGL1 dla ClanLiba.
160 %package OpenGL1-devel
161 Summary: Header files for OpenGL1 ClanLib library
162 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenGL1 dla ClanLiba
163 Group: Development/Libraries
164 Requires: %{name}-OpenGL1 = %{version}-%{release}
165 Requires: %{name}-devel = %{version}-%{release}
166 Requires: OpenGL-GLU-devel
167 Requires: xorg-lib-libXi-devel
168 Requires: xorg-lib-libXxf86vm-devel
170 %description OpenGL1-devel
171 Header files for OpenGL1 ClanLib library.
173 %description OpenGL1-devel -l pl.UTF-8
174 Pliki nagłówkowe biblioteki OpenGL1 dla ClanLiba.
176 %package OpenGL1-static
177 Summary: Static OpenGL1 ClanLib library
178 Summary(pl.UTF-8): Statyczna biblioteka OpenGL1 dla ClanLiba
179 Group: Development/Libraries
180 Requires: %{name}-OpenGL1-devel = %{version}-%{release}
182 %description OpenGL1-static
183 Static OpenGL1 ClanLib library.
185 %description OpenGL1-static -l pl.UTF-8
186 Statyczna biblioteka OpenGL1 dla ClanLiba.
189 Summary: MikMod ClanLib library
190 Summary(pl.UTF-8): Biblioteka MikMod dla ClanLiba
192 Requires: %{name} = %{version}-%{release}
195 MikMod ClanLib library.
197 %description MikMod -l pl.UTF-8
198 Biblioteka MikMod dla ClanLiba.
200 %package MikMod-devel
201 Summary: Header files for MikMod ClanLib library
202 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MikMod dla ClanLiba
203 Group: Development/Libraries
204 Requires: %{name}-MikMod = %{version}-%{release}
205 Requires: %{name}-devel = %{version}-%{release}
206 Requires: libmikmod-devel
208 %description MikMod-devel
209 Header files for MikMod ClanLib library.
211 %description MikMod-devel -l pl.UTF-8
212 Pliki nagłówkowe biblioteki MikMod dla ClanLiba.
214 %package MikMod-static
215 Summary: Static MikMod ClanLib library
216 Summary(pl.UTF-8): Statyczna biblioteka MikMod dla ClanLiba
217 Group: Development/Libraries
218 Requires: %{name}-MikMod-devel = %{version}-%{release}
220 %description MikMod-static
221 Static MikMod ClanLib library.
223 %description MikMod-static -l pl.UTF-8
224 Statyczna biblioteka MikMod dla ClanLiba.
227 Summary: ClanLib SWRender (Software Rendering) library
228 Summary(pl.UTF-8): Biblioteka ClanLib SWRender (Software Rendering)
230 Requires: %{name} = %{version}-%{release}
232 %description SWRender
233 ClanLib SWRender software rendering library, utilizing SSE2
234 instructions of x86 processors.
236 %description SWRender -l pl.UTF-8
237 Biblioteka programowego renderowania ClanLib SWRender, wykorzystująca
238 instrukcje SSE2 procesorów x86.
240 %package SWRender-devel
241 Summary: Header files for ClanLib SWRender library
242 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ClanLib SWRender
243 Group: Development/Libraries
244 Requires: %{name}-SWRender = %{version}-%{release}
245 Requires: %{name}-devel = %{version}-%{release}
247 %description SWRender-devel
248 Header files for ClanLib SWRender software rendering library.
250 %description SWRender-devel -l pl.UTF_8
251 Pliki nagłówkowe biblioteki programowego renderowania ClanLib
254 %package SWRender-static
255 Summary: Static ClanLib SWRender library
256 Summary(pl.UTF-8): Statyczna biblioteka ClanLib SWRender
257 Group: Development/Libraries
258 Requires: %{name}-SWRender-devel = %{version}-%{release}
260 %description SWRender-static
261 Static ClanLib SWRender library.
263 %description SWRender-static -l pl.UTF-8
264 Statyczna biblioteka ClanLib SWRender.
267 Summary: Vorbis ClanLib library
268 Summary(pl.UTF-8): Biblioteka Vorbis dla ClanLiba
270 Requires: %{name} = %{version}-%{release}
273 Vorbis ClanLib library.
275 %description Vorbis -l pl.UTF-8
276 Biblioteka Vorbis dla ClanLiba.
278 %package Vorbis-devel
279 Summary: Header files for Vorbis ClanLib library
280 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Vorbis dla ClanLiba
281 Group: Development/Libraries
282 Requires: %{name}-Vorbis = %{version}-%{release}
283 Requires: %{name}-devel = %{version}-%{release}
284 Requires: libvorbis-devel
286 %description Vorbis-devel
287 Header files for Vorbis ClanLib library.
289 %description Vorbis-devel -l pl.UTF-8
290 Pliki nagłówkowe biblioteki Vorbis dla ClanLiba.
292 %package Vorbis-static
293 Summary: Static Vorbis ClanLib library
294 Summary(pl.UTF-8): Statyczna biblioteka Vorbis dla ClanLiba
295 Group: Development/Libraries
296 Requires: %{name}-Vorbis-devel = %{version}-%{release}
298 %description Vorbis-static
299 Static Vorbis ClanLib library.
301 %description Vorbis-static -l pl.UTF-8
302 Statyczna biblioteka Vorbis dla ClanLiba.
305 Summary: ClanLib reference documentation for programmers
306 Summary(pl.UTF-8): Dokumentacja programisty do biblioteki ClanLib
310 ClanLib reference documentation for programmers.
312 %description doc -l pl.UTF-8
313 Dokumentacja programisty do biblioteki ClanLib
319 %{__rm} -r autom4te.cache
327 %{!?with_sse2:--disable-sse2} \
329 --%{?debug:en}%{!?debug:dis}able-debug
331 export PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig
334 (cd Documentation/Utilities/ReferenceDocs; ln -s ../../../Sources/API ClanLib)
336 PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig
339 rm -rf $RPM_BUILD_ROOT
341 %{__make} install install-html \
342 DESTDIR=$RPM_BUILD_ROOT
344 # missing from make install
345 install -d $RPM_BUILD_ROOT%{_aclocaldir}
346 install Setup/Unix/clanlib.m4 $RPM_BUILD_ROOT%{_aclocaldir}
349 rm -rf $RPM_BUILD_ROOT
351 %post -p /sbin/ldconfig
352 %postun -p /sbin/ldconfig
354 %post OpenGL -p /sbin/ldconfig
355 %postun OpenGL -p /sbin/ldconfig
357 %post OpenGL1 -p /sbin/ldconfig
358 %postun OpenGL1 -p /sbin/ldconfig
360 %post MikMod -p /sbin/ldconfig
361 %postun MikMod -p /sbin/ldconfig
363 %post SWRender -p /sbin/ldconfig
364 %postun SWRender -p /sbin/ldconfig
366 %post Vorbis -p /sbin/ldconfig
367 %postun Vorbis -p /sbin/ldconfig
370 %defattr(644,root,root,755)
371 %doc COPYING CREDITS README
372 %attr(755,root,root) %{_libdir}/libclan22App-%{cvmajor}.so.*.*.*
373 %attr(755,root,root) %ghost %{_libdir}/libclan22App-%{cvmajor}.so.1
374 %attr(755,root,root) %{_libdir}/libclan22Core-%{cvmajor}.so.*.*.*
375 %attr(755,root,root) %ghost %{_libdir}/libclan22CSSLayout-%{cvmajor}.so.1
376 %attr(755,root,root) %{_libdir}/libclan22CSSLayout-%{cvmajor}.so.*.*.*
377 %attr(755,root,root) %ghost %{_libdir}/libclan22Core-%{cvmajor}.so.1
378 %attr(755,root,root) %{_libdir}/libclan22Database-%{cvmajor}.so.*.*.*
379 %attr(755,root,root) %ghost %{_libdir}/libclan22Database-%{cvmajor}.so.1
380 %attr(755,root,root) %{_libdir}/libclan22Display-%{cvmajor}.so.*.*.*
381 %attr(755,root,root) %ghost %{_libdir}/libclan22Display-%{cvmajor}.so.1
382 %attr(755,root,root) %{_libdir}/libclan22GUI-%{cvmajor}.so.*.*.*
383 %attr(755,root,root) %ghost %{_libdir}/libclan22GUI-%{cvmajor}.so.1
384 %attr(755,root,root) %{_libdir}/libclan22Network-%{cvmajor}.so.*.*.*
385 %attr(755,root,root) %ghost %{_libdir}/libclan22Network-%{cvmajor}.so.1
386 %attr(755,root,root) %{_libdir}/libclan22RegExp-%{cvmajor}.so.*.*.*
387 %attr(755,root,root) %ghost %{_libdir}/libclan22RegExp-%{cvmajor}.so.1
388 %attr(755,root,root) %{_libdir}/libclan22Sound-%{cvmajor}.so.*.*.*
389 %attr(755,root,root) %ghost %{_libdir}/libclan22Sound-%{cvmajor}.so.1
390 %attr(755,root,root) %{_libdir}/libclan22Sqlite-%{cvmajor}.so.*.*.*
391 %attr(755,root,root) %ghost %{_libdir}/libclan22Sqlite-%{cvmajor}.so.1
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_libdir}/libclan22App.so
396 %attr(755,root,root) %{_libdir}/libclan22CSSLayout.so
397 %attr(755,root,root) %{_libdir}/libclan22Core.so
398 %attr(755,root,root) %{_libdir}/libclan22Database.so
399 %attr(755,root,root) %{_libdir}/libclan22Display.so
400 %attr(755,root,root) %{_libdir}/libclan22GUI.so
401 %attr(755,root,root) %{_libdir}/libclan22Network.so
402 %attr(755,root,root) %{_libdir}/libclan22RegExp.so
403 %attr(755,root,root) %{_libdir}/libclan22Sound.so
404 %attr(755,root,root) %{_libdir}/libclan22Sqlite.so
405 %{_libdir}/libclan22App.la
406 %{_libdir}/libclan22CSSLayout.la
407 %{_libdir}/libclan22Core.la
408 %{_libdir}/libclan22Database.la
409 %{_libdir}/libclan22Display.la
410 %{_libdir}/libclan22GUI.la
411 %{_libdir}/libclan22Network.la
412 %{_libdir}/libclan22RegExp.la
413 %{_libdir}/libclan22Sound.la
414 %{_libdir}/libclan22Sqlite.la
415 %dir %{_includedir}/ClanLib-%{cvmajor}
416 %dir %{_includedir}/ClanLib-%{cvmajor}/ClanLib
417 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/App
418 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/application.h
419 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/CSSLayout
420 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/csslayout.h
421 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Core
422 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/core.h
423 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Database
424 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/database.h
425 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Display
426 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/display.h
427 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GUI*
428 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gui*.h
429 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Network
430 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/network.h
431 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/RegExp
432 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/regexp.h
433 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sound
434 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sound.h
435 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sqlite
436 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sqlite.h
437 %{_aclocaldir}/clanlib.m4
438 %{_pkgconfigdir}/clanApp-%{cvmajor}.pc
439 %{_pkgconfigdir}/clanCSSLayout-%{cvmajor}.pc
440 %{_pkgconfigdir}/clanCore-%{cvmajor}.pc
441 %{_pkgconfigdir}/clanDatabase-%{cvmajor}.pc
442 %{_pkgconfigdir}/clanDisplay-%{cvmajor}.pc
443 %{_pkgconfigdir}/clanGUI*-%{cvmajor}.pc
444 %{_pkgconfigdir}/clanNetwork-%{cvmajor}.pc
445 %{_pkgconfigdir}/clanRegExp-%{cvmajor}.pc
446 %{_pkgconfigdir}/clanSound-%{cvmajor}.pc
447 %{_pkgconfigdir}/clanSqlite-%{cvmajor}.pc
450 %defattr(644,root,root,755)
451 %{_libdir}/libclan22App.a
452 %{_libdir}/libclan22CSSLayout.a
453 %{_libdir}/libclan22Core.a
454 %{_libdir}/libclan22Database.a
455 %{_libdir}/libclan22Display.a
456 %{_libdir}/libclan22GUI.a
457 %{_libdir}/libclan22Network.a
458 %{_libdir}/libclan22RegExp.a
459 %{_libdir}/libclan22Sound.a
460 %{_libdir}/libclan22Sqlite.a
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_libdir}/libclan22GL-%{cvmajor}.so.*.*.*
465 %attr(755,root,root) %ghost %{_libdir}/libclan22GL-%{cvmajor}.so.1
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{_libdir}/libclan22GL.so
470 %{_libdir}/libclan22GL.la
471 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GL
472 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gl.h
473 %{_pkgconfigdir}/clanGL-%{cvmajor}.pc
476 %defattr(644,root,root,755)
477 %{_libdir}/libclan22GL.a
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_libdir}/libclan22GL1-%{cvmajor}.so.*.*.*
482 %attr(755,root,root) %ghost %{_libdir}/libclan22GL1-%{cvmajor}.so.1
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_libdir}/libclan22GL1.so
487 %{_libdir}/libclan22GL1.la
488 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GL1
489 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gl1.h
490 %{_pkgconfigdir}/clanGL1-%{cvmajor}.pc
492 %files OpenGL1-static
493 %defattr(644,root,root,755)
494 %{_libdir}/libclan22GL1.a
497 %defattr(644,root,root,755)
498 %attr(755,root,root) %{_libdir}/libclan22MikMod-%{cvmajor}.so.*.*.*
499 %attr(755,root,root) %ghost %{_libdir}/libclan22MikMod-%{cvmajor}.so.1
502 %defattr(644,root,root,755)
503 %attr(755,root,root) %{_libdir}/libclan22MikMod.so
504 %{_libdir}/libclan22MikMod.la
505 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/MikMod
506 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/mikmod.h
507 %{_pkgconfigdir}/clanMikMod-%{cvmajor}.pc
510 %defattr(644,root,root,755)
511 %{_libdir}/libclan22MikMod.a
515 %defattr(644,root,root,755)
516 %attr(755,root,root) %{_libdir}/libclan22SWRender-%{cvmajor}.so.*.*.*
517 %attr(755,root,root) %ghost %{_libdir}/libclan22SWRender-%{cvmajor}.so.1
519 %files SWRender-devel
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_libdir}/libclan22SWRender.so
522 %{_libdir}/libclan22SWRender.la
523 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/SWRender
524 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/swrender.h
525 %{_pkgconfigdir}/clanSWRender-%{cvmajor}.pc
527 %files SWRender-static
528 %defattr(644,root,root,755)
529 %{_libdir}/libclan22SWRender.a
533 %defattr(644,root,root,755)
534 %attr(755,root,root) %{_libdir}/libclan22Vorbis-%{cvmajor}.so.*.*.*
535 %attr(755,root,root) %ghost %{_libdir}/libclan22Vorbis-%{cvmajor}.so.1
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_libdir}/libclan22Vorbis.so
540 %{_libdir}/libclan22Vorbis.la
541 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Vorbis
542 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/vorbis.h
543 %{_pkgconfigdir}/clanVorbis-%{cvmajor}.pc
546 %defattr(644,root,root,755)
547 %{_libdir}/libclan22Vorbis.a
550 %defattr(644,root,root,755)
551 %{_docdir}/clanlib-%{cvmajor}