3 %bcond_with sse2 # use SSE2 instructions
5 %ifarch pentium4 %{x8664}
10 Summary: ClanLib, the platform independent game SDK
11 Summary(pl.UTF-8): ClanLib, niezależny od platformy SDK do gier
12 Summary(pt_BR.UTF-8): SDK Clanlib
16 License: BSD-like (see COPYING)
18 #Source0Download: http://www.clanlib.org/download.html
19 Source0: http://www.clanlib.org/download/releases-2.0/%{name}-%{version}.tgz
20 # Source0-md5: 7c26fa5513c078a4db1b0de9035b535a
21 Patch0: %{name}-build.patch
22 Patch1: %{name}-link.patch
23 URL: http://www.clanlib.org/
24 BuildRequires: OpenGL-GLU-devel
25 BuildRequires: alsa-lib-devel
26 BuildRequires: autoconf >= 2.59-9
27 BuildRequires: automake >= 1.6
28 BuildRequires: doxygen
29 BuildRequires: fontconfig-devel
30 BuildRequires: freetype-devel >= 2
31 BuildRequires: libjpeg-devel
32 BuildRequires: libmikmod-devel
33 BuildRequires: libpng-devel >= 1.2
34 BuildRequires: libstdc++-devel
35 BuildRequires: libtool >= 2:1.4d-3
36 BuildRequires: libvorbis-devel >= 1:1.0
37 BuildRequires: libxslt-progs
38 BuildRequires: pcre-devel
39 BuildRequires: perl-base
40 BuildRequires: pkgconfig
41 BuildRequires: sqlite3-devel
42 BuildRequires: xorg-lib-libXi-devel
43 BuildRequires: xorg-lib-libXxf86vm-devel
44 BuildRequires: zlib-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
320 %{__rm} -r autom4te.cache
328 %{!?with_sse2:--disable-sse2} \
330 --%{?debug:en}%{!?debug:dis}able-debug
332 export PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig
335 (cd Documentation/Utilities/ReferenceDocs; ln -s ../../../Sources/API ClanLib)
337 PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig
340 rm -rf $RPM_BUILD_ROOT
342 %{__make} install install-html \
343 DESTDIR=$RPM_BUILD_ROOT
345 # missing from make install
346 install -d $RPM_BUILD_ROOT%{_aclocaldir}
347 install Setup/Unix/clanlib.m4 $RPM_BUILD_ROOT%{_aclocaldir}
350 rm -rf $RPM_BUILD_ROOT
352 %post -p /sbin/ldconfig
353 %postun -p /sbin/ldconfig
355 %post OpenGL -p /sbin/ldconfig
356 %postun OpenGL -p /sbin/ldconfig
358 %post OpenGL1 -p /sbin/ldconfig
359 %postun OpenGL1 -p /sbin/ldconfig
361 %post MikMod -p /sbin/ldconfig
362 %postun MikMod -p /sbin/ldconfig
364 %post SWRender -p /sbin/ldconfig
365 %postun SWRender -p /sbin/ldconfig
367 %post Vorbis -p /sbin/ldconfig
368 %postun Vorbis -p /sbin/ldconfig
371 %defattr(644,root,root,755)
372 %doc COPYING CREDITS README
373 %attr(755,root,root) %{_libdir}/libclan23App-%{cvmajor}.so.*.*.*
374 %attr(755,root,root) %ghost %{_libdir}/libclan23App-%{cvmajor}.so.1
375 %attr(755,root,root) %{_libdir}/libclan23Core-%{cvmajor}.so.*.*.*
376 %attr(755,root,root) %ghost %{_libdir}/libclan23CSSLayout-%{cvmajor}.so.1
377 %attr(755,root,root) %{_libdir}/libclan23CSSLayout-%{cvmajor}.so.*.*.*
378 %attr(755,root,root) %ghost %{_libdir}/libclan23Core-%{cvmajor}.so.1
379 %attr(755,root,root) %{_libdir}/libclan23Database-%{cvmajor}.so.*.*.*
380 %attr(755,root,root) %ghost %{_libdir}/libclan23Database-%{cvmajor}.so.1
381 %attr(755,root,root) %{_libdir}/libclan23Display-%{cvmajor}.so.*.*.*
382 %attr(755,root,root) %ghost %{_libdir}/libclan23Display-%{cvmajor}.so.1
383 %attr(755,root,root) %{_libdir}/libclan23GUI-%{cvmajor}.so.*.*.*
384 %attr(755,root,root) %ghost %{_libdir}/libclan23GUI-%{cvmajor}.so.1
385 %attr(755,root,root) %{_libdir}/libclan23Network-%{cvmajor}.so.*.*.*
386 %attr(755,root,root) %ghost %{_libdir}/libclan23Network-%{cvmajor}.so.1
387 %attr(755,root,root) %{_libdir}/libclan23RegExp-%{cvmajor}.so.*.*.*
388 %attr(755,root,root) %ghost %{_libdir}/libclan23RegExp-%{cvmajor}.so.1
389 %attr(755,root,root) %{_libdir}/libclan23Sound-%{cvmajor}.so.*.*.*
390 %attr(755,root,root) %ghost %{_libdir}/libclan23Sound-%{cvmajor}.so.1
391 %attr(755,root,root) %{_libdir}/libclan23Sqlite-%{cvmajor}.so.*.*.*
392 %attr(755,root,root) %ghost %{_libdir}/libclan23Sqlite-%{cvmajor}.so.1
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/libclan23App.so
397 %attr(755,root,root) %{_libdir}/libclan23CSSLayout.so
398 %attr(755,root,root) %{_libdir}/libclan23Core.so
399 %attr(755,root,root) %{_libdir}/libclan23Database.so
400 %attr(755,root,root) %{_libdir}/libclan23Display.so
401 %attr(755,root,root) %{_libdir}/libclan23GUI.so
402 %attr(755,root,root) %{_libdir}/libclan23Network.so
403 %attr(755,root,root) %{_libdir}/libclan23RegExp.so
404 %attr(755,root,root) %{_libdir}/libclan23Sound.so
405 %attr(755,root,root) %{_libdir}/libclan23Sqlite.so
406 %{_libdir}/libclan23App.la
407 %{_libdir}/libclan23CSSLayout.la
408 %{_libdir}/libclan23Core.la
409 %{_libdir}/libclan23Database.la
410 %{_libdir}/libclan23Display.la
411 %{_libdir}/libclan23GUI.la
412 %{_libdir}/libclan23Network.la
413 %{_libdir}/libclan23RegExp.la
414 %{_libdir}/libclan23Sound.la
415 %{_libdir}/libclan23Sqlite.la
416 %dir %{_includedir}/ClanLib-%{cvmajor}
417 %dir %{_includedir}/ClanLib-%{cvmajor}/ClanLib
418 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/App
419 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/application.h
420 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/CSSLayout
421 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/csslayout.h
422 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Core
423 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/core.h
424 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Database
425 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/database.h
426 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Display
427 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/display.h
428 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GUI*
429 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gui*.h
430 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Network
431 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/network.h
432 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/RegExp
433 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/regexp.h
434 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sound
435 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sound.h
436 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sqlite
437 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sqlite.h
438 %{_aclocaldir}/clanlib.m4
439 %{_pkgconfigdir}/clanApp-%{cvmajor}.pc
440 %{_pkgconfigdir}/clanCSSLayout-%{cvmajor}.pc
441 %{_pkgconfigdir}/clanCore-%{cvmajor}.pc
442 %{_pkgconfigdir}/clanDatabase-%{cvmajor}.pc
443 %{_pkgconfigdir}/clanDisplay-%{cvmajor}.pc
444 %{_pkgconfigdir}/clanGUI*-%{cvmajor}.pc
445 %{_pkgconfigdir}/clanNetwork-%{cvmajor}.pc
446 %{_pkgconfigdir}/clanRegExp-%{cvmajor}.pc
447 %{_pkgconfigdir}/clanSound-%{cvmajor}.pc
448 %{_pkgconfigdir}/clanSqlite-%{cvmajor}.pc
451 %defattr(644,root,root,755)
452 %{_libdir}/libclan23App.a
453 %{_libdir}/libclan23CSSLayout.a
454 %{_libdir}/libclan23Core.a
455 %{_libdir}/libclan23Database.a
456 %{_libdir}/libclan23Display.a
457 %{_libdir}/libclan23GUI.a
458 %{_libdir}/libclan23Network.a
459 %{_libdir}/libclan23RegExp.a
460 %{_libdir}/libclan23Sound.a
461 %{_libdir}/libclan23Sqlite.a
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_libdir}/libclan23GL-%{cvmajor}.so.*.*.*
466 %attr(755,root,root) %ghost %{_libdir}/libclan23GL-%{cvmajor}.so.1
469 %defattr(644,root,root,755)
470 %attr(755,root,root) %{_libdir}/libclan23GL.so
471 %{_libdir}/libclan23GL.la
472 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GL
473 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gl.h
474 %{_pkgconfigdir}/clanGL-%{cvmajor}.pc
477 %defattr(644,root,root,755)
478 %{_libdir}/libclan23GL.a
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_libdir}/libclan23GL1-%{cvmajor}.so.*.*.*
483 %attr(755,root,root) %ghost %{_libdir}/libclan23GL1-%{cvmajor}.so.1
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_libdir}/libclan23GL1.so
488 %{_libdir}/libclan23GL1.la
489 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GL1
490 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gl1.h
491 %{_pkgconfigdir}/clanGL1-%{cvmajor}.pc
493 %files OpenGL1-static
494 %defattr(644,root,root,755)
495 %{_libdir}/libclan23GL1.a
498 %defattr(644,root,root,755)
499 %attr(755,root,root) %{_libdir}/libclan23MikMod-%{cvmajor}.so.*.*.*
500 %attr(755,root,root) %ghost %{_libdir}/libclan23MikMod-%{cvmajor}.so.1
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_libdir}/libclan23MikMod.so
505 %{_libdir}/libclan23MikMod.la
506 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/MikMod
507 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/mikmod.h
508 %{_pkgconfigdir}/clanMikMod-%{cvmajor}.pc
511 %defattr(644,root,root,755)
512 %{_libdir}/libclan23MikMod.a
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/libclan23SWRender-%{cvmajor}.so.*.*.*
518 %attr(755,root,root) %ghost %{_libdir}/libclan23SWRender-%{cvmajor}.so.1
520 %files SWRender-devel
521 %defattr(644,root,root,755)
522 %attr(755,root,root) %{_libdir}/libclan23SWRender.so
523 %{_libdir}/libclan23SWRender.la
524 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/SWRender
525 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/swrender.h
526 %{_pkgconfigdir}/clanSWRender-%{cvmajor}.pc
528 %files SWRender-static
529 %defattr(644,root,root,755)
530 %{_libdir}/libclan23SWRender.a
534 %defattr(644,root,root,755)
535 %attr(755,root,root) %{_libdir}/libclan23Vorbis-%{cvmajor}.so.*.*.*
536 %attr(755,root,root) %ghost %{_libdir}/libclan23Vorbis-%{cvmajor}.so.1
539 %defattr(644,root,root,755)
540 %attr(755,root,root) %{_libdir}/libclan23Vorbis.so
541 %{_libdir}/libclan23Vorbis.la
542 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Vorbis
543 %{_includedir}/ClanLib-%{cvmajor}/ClanLib/vorbis.h
544 %{_pkgconfigdir}/clanVorbis-%{cvmajor}.pc
547 %defattr(644,root,root,755)
548 %{_libdir}/libclan23Vorbis.a
551 %defattr(644,root,root,755)
552 %{_docdir}/clanlib-%{cvmajor}