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: 61b7200ba8b895fc480850f4721dbc14
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
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 %{?with_sse2:Requires: cpuinfo(sse2)}
45 Obsoletes: ClanLib-SDL
46 Obsoletes: ClanLib-TTF
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 %define _noautoreqdep libGL.so.1 libGLU.so.1
52 The ClanLib SDK is designed to provide an platform independent game
53 SDK using a lot cleaner (and object oriented) interface than the
54 traditional way it is done in DirectX, SDL and such. The goal is to
55 avoid game developers constantly reinventing the wheel by providing
56 smarter ways to eg. load surfaces.
58 %description -l pl.UTF-8
59 ClanLib SDK jest projektowany jako niezależny od platformy SDK dla
60 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
61 przejrzystszy niż DirectX, SDL i inne.
63 %description -l pt_BR.UTF-8
64 A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para
65 facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer
66 uma interface comum para os problemas clássicos dos jogos (carregar
67 gráficos por exemplo).
70 Summary: ClanLib development package
71 Summary(pl.UTF-8): Pakiet programistyczny dla ClanLib
72 Summary(pt_BR.UTF-8): Arquivos para desenvolvimento usando a Clanlib
73 Group: Development/Libraries
74 Requires: %{name} = %{version}-%{release}
75 Requires: libstdc++-devel
77 Requires: xorg-lib-libXxf86vm-devel
78 Obsoletes: ClanLib-SDL-devel
79 Obsoletes: ClanLib-TTF-devel
82 This is the development add-on package that includes the header files
83 needed to compile new ClanLib applications.
85 %description devel -l pl.UTF-8
86 Programistyczne dodatki do ClanLiba, zawierają pliki nagłówkowe
87 potrzebne do kompilacji programów korzystających z ClanLib.
89 %description devel -l pt_BR.UTF-8
90 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
94 Summary: ClanLib static libraries
95 Summary(pl.UTF-8): Statyczne biblioteki ClanLib
96 Group: Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
98 Obsoletes: ClanLib-SDL-static
99 Obsoletes: ClanLib-TTF-static
102 This package contains static versions of ClanLib libraries.
104 %description static -l pl.UTF-8
105 Ten pakiet zawiera statyczne wersje bibliotek ClanLib.
108 Summary: OpenGL ClanLib library
109 Summary(pl.UTF-8): Biblioteka OpenGL dla ClanLiba
111 Requires: %{name} = %{version}-%{release}
114 OpenGL ClanLib library.
116 %description OpenGL -l pl.UTF-8
117 Biblioteka OpenGL dla ClanLiba.
119 %package OpenGL-devel
120 Summary: Header files for OpenGL ClanLib library
121 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenGL dla ClanLiba
122 Group: Development/Libraries
123 Requires: %{name}-OpenGL = %{version}-%{release}
124 Requires: %{name}-devel = %{version}-%{release}
125 Requires: OpenGL-GLU-devel
126 Requires: xorg-lib-libXi-devel
127 Requires: xorg-lib-libXxf86vm-devel
129 %description OpenGL-devel
130 Header files for OpenGL ClanLib library.
132 %description OpenGL-devel -l pl.UTF-8
133 Pliki nagłówkowe biblioteki OpenGL dla ClanLiba.
135 %package OpenGL-static
136 Summary: Static OpenGL ClanLib library
137 Summary(pl.UTF-8): Statyczna biblioteka OpenGL dla ClanLiba
138 Group: Development/Libraries
139 Requires: %{name}-OpenGL-devel = %{version}-%{release}
141 %description OpenGL-static
142 Static OpenGL ClanLib library.
144 %description OpenGL-static -l pl.UTF-8
145 Statyczna biblioteka OpenGL dla ClanLiba.
148 Summary: OpenGL1 ClanLib library
149 Summary(pl.UTF-8): Biblioteka OpenGL1 dla ClanLiba
151 Requires: %{name} = %{version}-%{release}
154 OpenGL1 ClanLib library.
156 %description OpenGL1 -l pl.UTF-8
157 Biblioteka OpenGL1 dla ClanLiba.
159 %package OpenGL1-devel
160 Summary: Header files for OpenGL1 ClanLib library
161 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenGL1 dla ClanLiba
162 Group: Development/Libraries
163 Requires: %{name}-OpenGL1 = %{version}-%{release}
164 Requires: %{name}-devel = %{version}-%{release}
165 Requires: OpenGL-GLU-devel
166 Requires: xorg-lib-libXi-devel
167 Requires: xorg-lib-libXxf86vm-devel
169 %description OpenGL1-devel
170 Header files for OpenGL1 ClanLib library.
172 %description OpenGL1-devel -l pl.UTF-8
173 Pliki nagłówkowe biblioteki OpenGL1 dla ClanLiba.
175 %package OpenGL1-static
176 Summary: Static OpenGL1 ClanLib library
177 Summary(pl.UTF-8): Statyczna biblioteka OpenGL1 dla ClanLiba
178 Group: Development/Libraries
179 Requires: %{name}-OpenGL1-devel = %{version}-%{release}
181 %description OpenGL1-static
182 Static OpenGL1 ClanLib library.
184 %description OpenGL1-static -l pl.UTF-8
185 Statyczna biblioteka OpenGL1 dla ClanLiba.
188 Summary: MikMod ClanLib library
189 Summary(pl.UTF-8): Biblioteka MikMod dla ClanLiba
191 Requires: %{name} = %{version}-%{release}
194 MikMod ClanLib library.
196 %description MikMod -l pl.UTF-8
197 Biblioteka MikMod dla ClanLiba.
199 %package MikMod-devel
200 Summary: Header files for MikMod ClanLib library
201 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MikMod dla ClanLiba
202 Group: Development/Libraries
203 Requires: %{name}-MikMod = %{version}-%{release}
204 Requires: %{name}-devel = %{version}-%{release}
205 Requires: libmikmod-devel
207 %description MikMod-devel
208 Header files for MikMod ClanLib library.
210 %description MikMod-devel -l pl.UTF-8
211 Pliki nagłówkowe biblioteki MikMod dla ClanLiba.
213 %package MikMod-static
214 Summary: Static MikMod ClanLib library
215 Summary(pl.UTF-8): Statyczna biblioteka MikMod dla ClanLiba
216 Group: Development/Libraries
217 Requires: %{name}-MikMod-devel = %{version}-%{release}
219 %description MikMod-static
220 Static MikMod ClanLib library.
222 %description MikMod-static -l pl.UTF-8
223 Statyczna biblioteka MikMod dla ClanLiba.
226 Summary: ClanLib SWRender (Software Rendering) library
227 Summary(pl.UTF-8): Biblioteka ClanLib SWRender (Software Rendering)
229 Requires: %{name} = %{version}-%{release}
231 %description SWRender
232 ClanLib SWRender software rendering library, utilizing SSE2
233 instructions of x86 processors.
235 %description SWRender -l pl.UTF-8
236 Biblioteka programowego renderowania ClanLib SWRender, wykorzystująca
237 instrukcje SSE2 procesorów x86.
239 %package SWRender-devel
240 Summary: Header files for ClanLib SWRender library
241 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ClanLib SWRender
242 Group: Development/Libraries
243 Requires: %{name}-SWRender = %{version}-%{release}
244 Requires: %{name}-devel = %{version}-%{release}
246 %description SWRender-devel
247 Header files for ClanLib SWRender software rendering library.
249 %description SWRender-devel -l pl.UTF_8
250 Pliki nagłówkowe biblioteki programowego renderowania ClanLib
253 %package SWRender-static
254 Summary: Static ClanLib SWRender library
255 Summary(pl.UTF-8): Statyczna biblioteka ClanLib SWRender
256 Group: Development/Libraries
257 Requires: %{name}-SWRender-devel = %{version}-%{release}
259 %description SWRender-static
260 Static ClanLib SWRender library.
262 %description SWRender-static -l pl.UTF-8
263 Statyczna biblioteka ClanLib SWRender.
266 Summary: Vorbis ClanLib library
267 Summary(pl.UTF-8): Biblioteka Vorbis dla ClanLiba
269 Requires: %{name} = %{version}-%{release}
272 Vorbis ClanLib library.
274 %description Vorbis -l pl.UTF-8
275 Biblioteka Vorbis dla ClanLiba.
277 %package Vorbis-devel
278 Summary: Header files for Vorbis ClanLib library
279 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Vorbis dla ClanLiba
280 Group: Development/Libraries
281 Requires: %{name}-Vorbis = %{version}-%{release}
282 Requires: %{name}-devel = %{version}-%{release}
283 Requires: libvorbis-devel
285 %description Vorbis-devel
286 Header files for Vorbis ClanLib library.
288 %description Vorbis-devel -l pl.UTF-8
289 Pliki nagłówkowe biblioteki Vorbis dla ClanLiba.
291 %package Vorbis-static
292 Summary: Static Vorbis ClanLib library
293 Summary(pl.UTF-8): Statyczna biblioteka Vorbis dla ClanLiba
294 Group: Development/Libraries
295 Requires: %{name}-Vorbis-devel = %{version}-%{release}
297 %description Vorbis-static
298 Static Vorbis ClanLib library.
300 %description Vorbis-static -l pl.UTF-8
301 Statyczna biblioteka Vorbis dla ClanLiba.
304 Summary: ClanLib reference documentation for programmers
305 Summary(pl.UTF-8): Dokumentacja programisty do biblioteki ClanLib
309 ClanLib reference documentation for programmers.
311 %description doc -l pl.UTF-8
312 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}