]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: include GL1 stuff | |
3 | # | |
4 | %define cvmajor 2.1 | |
5 | Summary: ClanLib, the platform independent game SDK | |
6 | Summary(pl.UTF-8): ClanLib, niezależny od platformy SDK do gier | |
7 | Summary(pt_BR.UTF-8): SDK Clanlib | |
8 | Name: ClanLib | |
9 | Version: 2.1.1 | |
10 | Release: 1 | |
11 | License: BSD-like (see COPYING) | |
12 | Group: Libraries | |
13 | #Source0Download: http://www.clanlib.org/download.html | |
14 | Source0: http://www.clanlib.org/download/releases-2.0/%{name}-%{version}.tgz | |
15 | # Source0-md5: 8fc5afb0cc9fe7fc75536fab56da7f75 | |
16 | Patch0: %{name}-build.patch | |
17 | URL: http://www.clanlib.org/ | |
18 | BuildRequires: OpenGL-GLU-devel | |
19 | BuildRequires: alsa-lib-devel | |
20 | BuildRequires: autoconf >= 2.59-9 | |
21 | BuildRequires: automake >= 1.6 | |
22 | BuildRequires: doxygen | |
23 | BuildRequires: libjpeg-devel | |
24 | BuildRequires: libmikmod-devel | |
25 | BuildRequires: libpng-devel >= 1.%{cvmajor} | |
26 | BuildRequires: libstdc++-devel | |
27 | BuildRequires: libtool >= 2:1.4d-3 | |
28 | BuildRequires: libvorbis-devel >= 1:1.0 | |
29 | BuildRequires: libxslt-progs | |
30 | BuildRequires: perl-base | |
31 | BuildRequires: pkgconfig | |
32 | BuildRequires: sqlite3-devel | |
33 | BuildRequires: xorg-lib-libXi-devel | |
34 | BuildRequires: xorg-lib-libXxf86vm-devel | |
35 | Obsoletes: ClanLib-TTF | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
39 | ||
40 | %description | |
41 | The ClanLib SDK is designed to provide an platform independent game | |
42 | SDK using a lot cleaner (and object oriented) interface than the | |
43 | traditional way it is done in DirectX, SDL and such. The goal is to | |
44 | avoid game developers constantly reinventing the wheel by providing | |
45 | smarter ways to eg. load surfaces. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | ClanLib SDK jest projektowany jako niezależny od platformy SDK dla | |
49 | gier. Stosuje prosty (i zorientowany obiektowo) interfejs, | |
50 | przejrzystszy niż DirectX, SDL i inne. | |
51 | ||
52 | %description -l pt_BR.UTF-8 | |
53 | A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para | |
54 | facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer | |
55 | uma interface comum para os problemas clássicos dos jogos (carregar | |
56 | gráficos por exemplo). | |
57 | ||
58 | %package devel | |
59 | Summary: ClanLib development package | |
60 | Summary(pl.UTF-8): Pakiet programistyczny dla ClanLib | |
61 | Summary(pt_BR.UTF-8): Arquivos para desenvolvimento usando a Clanlib | |
62 | Group: Development/Libraries | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | Requires: libstdc++-devel | |
65 | # for libclanDisplay | |
66 | Requires: xorg-lib-libXxf86vm-devel | |
67 | Obsoletes: ClanLib-TTF-devel | |
68 | ||
69 | %description devel | |
70 | This is the development add-on package that includes the header files | |
71 | needed to compile new ClanLib applications. | |
72 | ||
73 | %description devel -l pl.UTF-8 | |
74 | Programistyczne dodatki do ClanLiba, zawierają pliki nagłówkowe | |
75 | potrzebne do kompilacji programów korzystających z ClanLib. | |
76 | ||
77 | %description devel -l pt_BR.UTF-8 | |
78 | Arquivos que possibilitam o desenvolvimento de aplicativos utilizando | |
79 | a biblioteca Clanlib. | |
80 | ||
81 | %package static | |
82 | Summary: ClanLib static libraries | |
83 | Summary(pl.UTF-8): Statyczne biblioteki ClanLib | |
84 | Group: Development/Libraries | |
85 | Requires: %{name}-devel = %{version}-%{release} | |
86 | Obsoletes: ClanLib-TTF-static | |
87 | ||
88 | %description static | |
89 | This package contains static versions of ClanLib libraries. | |
90 | ||
91 | %description static -l pl.UTF-8 | |
92 | Ten pakiet zawiera statyczne wersje bibliotek ClanLib. | |
93 | ||
94 | %package doc | |
95 | Summary: ClanLib reference documentation for programmers | |
96 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki ClanLib | |
97 | Group: Documentation | |
98 | ||
99 | %description doc | |
100 | ClanLib reference documentation for programmers. | |
101 | ||
102 | %description doc -l pl.UTF-8 | |
103 | Dokumentacja programisty do biblioteki ClanLib | |
104 | ||
105 | %package OpenGL | |
106 | Summary: OpenGL ClanLib library | |
107 | Summary(pl.UTF-8): Biblioteka OpenGL dla ClanLiba | |
108 | Group: Libraries | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description OpenGL | |
112 | OpenGL ClanLib library. | |
113 | ||
114 | %description OpenGL -l pl.UTF-8 | |
115 | Biblioteka OpenGL dla ClanLiba. | |
116 | ||
117 | %package OpenGL-devel | |
118 | Summary: Header files for OpenGL ClanLib library | |
119 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenGL dla ClanLiba | |
120 | Group: Development/Libraries | |
121 | Requires: %{name}-OpenGL = %{version}-%{release} | |
122 | Requires: %{name}-devel = %{version}-%{release} | |
123 | Requires: OpenGL-GLU-devel | |
124 | Requires: xorg-lib-libXi-devel | |
125 | Requires: xorg-lib-libXxf86vm-devel | |
126 | ||
127 | %description OpenGL-devel | |
128 | Header files for OpenGL ClanLib library. | |
129 | ||
130 | %description OpenGL-devel -l pl.UTF-8 | |
131 | Pliki nagłówkowe biblioteki OpenGL dla ClanLiba. | |
132 | ||
133 | %package OpenGL-static | |
134 | Summary: Static OpenGL ClanLib library | |
135 | Summary(pl.UTF-8): Statyczna biblioteka OpenGL dla ClanLiba | |
136 | Group: Development/Libraries | |
137 | Requires: %{name}-OpenGL-devel = %{version}-%{release} | |
138 | ||
139 | %description OpenGL-static | |
140 | Static OpenGL ClanLib library. | |
141 | ||
142 | %description OpenGL-static -l pl.UTF-8 | |
143 | Statyczna biblioteka OpenGL dla ClanLiba. | |
144 | ||
145 | %package MikMod | |
146 | Summary: MikMod ClanLib library | |
147 | Summary(pl.UTF-8): Biblioteka MikMod dla ClanLiba | |
148 | Group: Libraries | |
149 | Requires: %{name} = %{version}-%{release} | |
150 | ||
151 | %description MikMod | |
152 | MikMod ClanLib library. | |
153 | ||
154 | %description MikMod -l pl.UTF-8 | |
155 | Biblioteka MikMod dla ClanLiba. | |
156 | ||
157 | %package MikMod-devel | |
158 | Summary: Header files for MikMod ClanLib library | |
159 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MikMod dla ClanLiba | |
160 | Group: Development/Libraries | |
161 | Requires: %{name}-MikMod = %{version}-%{release} | |
162 | Requires: %{name}-devel = %{version}-%{release} | |
163 | Requires: libmikmod-devel | |
164 | ||
165 | %description MikMod-devel | |
166 | Header files for MikMod ClanLib library. | |
167 | ||
168 | %description MikMod-devel -l pl.UTF-8 | |
169 | Pliki nagłówkowe biblioteki MikMod dla ClanLiba. | |
170 | ||
171 | %package MikMod-static | |
172 | Summary: Static MikMod ClanLib library | |
173 | Summary(pl.UTF-8): Statyczna biblioteka MikMod dla ClanLiba | |
174 | Group: Development/Libraries | |
175 | Requires: %{name}-MikMod-devel = %{version}-%{release} | |
176 | ||
177 | %description MikMod-static | |
178 | Static MikMod ClanLib library. | |
179 | ||
180 | %description MikMod-static -l pl.UTF-8 | |
181 | Statyczna biblioteka MikMod dla ClanLiba. | |
182 | ||
183 | %package Vorbis | |
184 | Summary: Vorbis ClanLib library | |
185 | Summary(pl.UTF-8): Biblioteka Vorbis dla ClanLiba | |
186 | Group: Libraries | |
187 | Requires: %{name} = %{version}-%{release} | |
188 | ||
189 | %description Vorbis | |
190 | Vorbis ClanLib library. | |
191 | ||
192 | %description Vorbis -l pl.UTF-8 | |
193 | Biblioteka Vorbis dla ClanLiba. | |
194 | ||
195 | %package Vorbis-devel | |
196 | Summary: Header files for Vorbis ClanLib library | |
197 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Vorbis dla ClanLiba | |
198 | Group: Development/Libraries | |
199 | Requires: %{name}-Vorbis = %{version}-%{release} | |
200 | Requires: %{name}-devel = %{version}-%{release} | |
201 | Requires: libvorbis-devel | |
202 | ||
203 | %description Vorbis-devel | |
204 | Header files for Vorbis ClanLib library. | |
205 | ||
206 | %description Vorbis-devel -l pl.UTF-8 | |
207 | Pliki nagłówkowe biblioteki Vorbis dla ClanLiba. | |
208 | ||
209 | %package Vorbis-static | |
210 | Summary: Static Vorbis ClanLib library | |
211 | Summary(pl.UTF-8): Statyczna biblioteka Vorbis dla ClanLiba | |
212 | Group: Development/Libraries | |
213 | Requires: %{name}-Vorbis-devel = %{version}-%{release} | |
214 | ||
215 | %description Vorbis-static | |
216 | Static Vorbis ClanLib library. | |
217 | ||
218 | %description Vorbis-static -l pl.UTF-8 | |
219 | Statyczna biblioteka Vorbis dla ClanLiba. | |
220 | ||
221 | %prep | |
222 | %setup -q | |
223 | %patch0 -p1 | |
224 | ||
225 | rm -rf autom4te.cache | |
226 | echo "dnl" >> acinclude.m4 | |
227 | ||
228 | %build | |
229 | # note: rtti is needed --- ClanLib uses exceptions! | |
230 | %{__libtoolize} | |
231 | %{__aclocal} | |
232 | %{__automake} | |
233 | %{__autoconf} | |
234 | %configure \ | |
235 | --enable-static \ | |
236 | --enable-shared \ | |
237 | --enable-docs \ | |
238 | %ifarch %{ix86} | |
239 | --enable-asm386 \ | |
240 | %endif | |
241 | --%{?debug:en}%{!?debug:dis}able-debug | |
242 | # directfb disabled now | |
243 | ||
244 | %{__make} | |
245 | ||
246 | (cd Documentation/Utilities/ReferenceDocs; ln -s ../../../Sources/API ClanLib) | |
247 | export PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig | |
248 | %{__make} html | |
249 | ||
250 | %install | |
251 | rm -rf $RPM_BUILD_ROOT | |
252 | ||
253 | %{__make} install install-html \ | |
254 | DESTDIR=$RPM_BUILD_ROOT | |
255 | ||
256 | # missing from make install | |
257 | install -d $RPM_BUILD_ROOT%{_aclocaldir} | |
258 | install Setup/Unix/clanlib.m4 $RPM_BUILD_ROOT%{_aclocaldir} | |
259 | ||
260 | %clean | |
261 | rm -rf $RPM_BUILD_ROOT | |
262 | ||
263 | %post -p /sbin/ldconfig | |
264 | %postun -p /sbin/ldconfig | |
265 | ||
266 | %post OpenGL -p /sbin/ldconfig | |
267 | %postun OpenGL -p /sbin/ldconfig | |
268 | ||
269 | %post MikMod -p /sbin/ldconfig | |
270 | %postun MikMod -p /sbin/ldconfig | |
271 | ||
272 | %post Vorbis -p /sbin/ldconfig | |
273 | %postun Vorbis -p /sbin/ldconfig | |
274 | ||
275 | %files | |
276 | %defattr(644,root,root,755) | |
277 | %doc COPYING CREDITS README | |
278 | %attr(755,root,root) %{_libdir}/libclan21App-%{cvmajor}.so.*.*.* | |
279 | %attr(755,root,root) %ghost %{_libdir}/libclan21App-%{cvmajor}.so.1 | |
280 | %attr(755,root,root) %{_libdir}/libclan21Core-%{cvmajor}.so.*.*.* | |
281 | %attr(755,root,root) %ghost %{_libdir}/libclan21Core-%{cvmajor}.so.1 | |
282 | %attr(755,root,root) %{_libdir}/libclan21Database-%{cvmajor}.so.*.*.* | |
283 | %attr(755,root,root) %ghost %{_libdir}/libclan21Database-%{cvmajor}.so.1 | |
284 | %attr(755,root,root) %{_libdir}/libclan21Display-%{cvmajor}.so.*.*.* | |
285 | %attr(755,root,root) %ghost %{_libdir}/libclan21Display-%{cvmajor}.so.1 | |
286 | %attr(755,root,root) %{_libdir}/libclan21GDI-%{cvmajor}.so.*.*.* | |
287 | %attr(755,root,root) %ghost %{_libdir}/libclan21GDI-%{cvmajor}.so.1 | |
288 | %attr(755,root,root) %{_libdir}/libclan21GUI-%{cvmajor}.so.*.*.* | |
289 | %attr(755,root,root) %ghost %{_libdir}/libclan21GUI-%{cvmajor}.so.1 | |
290 | %attr(755,root,root) %{_libdir}/libclan21Network-%{cvmajor}.so.*.*.* | |
291 | %attr(755,root,root) %ghost %{_libdir}/libclan21Network-%{cvmajor}.so.1 | |
292 | %attr(755,root,root) %{_libdir}/libclan21RegExp-%{cvmajor}.so.*.*.* | |
293 | %attr(755,root,root) %ghost %{_libdir}/libclan21RegExp-%{cvmajor}.so.1 | |
294 | %attr(755,root,root) %{_libdir}/libclan21Sound-%{cvmajor}.so.*.*.* | |
295 | %attr(755,root,root) %ghost %{_libdir}/libclan21Sound-%{cvmajor}.so.1 | |
296 | %attr(755,root,root) %{_libdir}/libclan21Sqlite-%{cvmajor}.so.*.*.* | |
297 | %attr(755,root,root) %ghost %{_libdir}/libclan21Sqlite-%{cvmajor}.so.1 | |
298 | ||
299 | %files devel | |
300 | %defattr(644,root,root,755) | |
301 | %doc README.kdevelop UPGRADE.txt | |
302 | %attr(755,root,root) %{_libdir}/libclan21App.so | |
303 | %attr(755,root,root) %{_libdir}/libclan21Core.so | |
304 | %attr(755,root,root) %{_libdir}/libclan21Database.so | |
305 | %attr(755,root,root) %{_libdir}/libclan21Display.so | |
306 | %attr(755,root,root) %{_libdir}/libclan21GDI.so | |
307 | %attr(755,root,root) %{_libdir}/libclan21GUI.so | |
308 | %attr(755,root,root) %{_libdir}/libclan21Network.so | |
309 | %attr(755,root,root) %{_libdir}/libclan21RegExp.so | |
310 | %attr(755,root,root) %{_libdir}/libclan21Sound.so | |
311 | %attr(755,root,root) %{_libdir}/libclan21Sqlite.so | |
312 | %{_libdir}/libclan21App.la | |
313 | %{_libdir}/libclan21Core.la | |
314 | %{_libdir}/libclan21Database.la | |
315 | %{_libdir}/libclan21Display.la | |
316 | %{_libdir}/libclan21GDI.la | |
317 | %{_libdir}/libclan21GUI.la | |
318 | %{_libdir}/libclan21Network.la | |
319 | %{_libdir}/libclan21RegExp.la | |
320 | %{_libdir}/libclan21Sound.la | |
321 | %{_libdir}/libclan21Sqlite.la | |
322 | %dir %{_includedir}/ClanLib-%{cvmajor} | |
323 | %dir %{_includedir}/ClanLib-%{cvmajor}/ClanLib | |
324 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/App | |
325 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/application.h | |
326 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Core | |
327 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/core.h | |
328 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Database | |
329 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/database.h | |
330 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Display | |
331 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/display.h | |
332 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GDI | |
333 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gdi.h | |
334 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GUI* | |
335 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gui*.h | |
336 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Network | |
337 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/network.h | |
338 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/RegExp | |
339 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/regexp.h | |
340 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sound | |
341 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sound.h | |
342 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sqlite | |
343 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sqlite.h | |
344 | %{_aclocaldir}/*.m4 | |
345 | %{_pkgconfigdir}/clanApp-%{cvmajor}.pc | |
346 | %{_pkgconfigdir}/clanCore-%{cvmajor}.pc | |
347 | %{_pkgconfigdir}/clanDatabase-%{cvmajor}.pc | |
348 | %{_pkgconfigdir}/clanDisplay-%{cvmajor}.pc | |
349 | %{_pkgconfigdir}/clanGDI-%{cvmajor}.pc | |
350 | %{_pkgconfigdir}/clanGUI*-%{cvmajor}.pc | |
351 | %{_pkgconfigdir}/clanNetwork-%{cvmajor}.pc | |
352 | %{_pkgconfigdir}/clanRegExp-%{cvmajor}.pc | |
353 | %{_pkgconfigdir}/clanSound-%{cvmajor}.pc | |
354 | %{_pkgconfigdir}/clanSqlite-%{cvmajor}.pc | |
355 | ||
356 | %files doc | |
357 | %defattr(644,root,root,755) | |
358 | %{_docdir}/clanlib-* | |
359 | ||
360 | %files static | |
361 | %defattr(644,root,root,755) | |
362 | %{_libdir}/libclan21App.a | |
363 | %{_libdir}/libclan21Core.a | |
364 | %{_libdir}/libclan21Database.a | |
365 | %{_libdir}/libclan21Display.a | |
366 | %{_libdir}/libclan21GDI.a | |
367 | %{_libdir}/libclan21GUI.a | |
368 | %{_libdir}/libclan21Network.a | |
369 | %{_libdir}/libclan21RegExp.a | |
370 | %{_libdir}/libclan21Sound.a | |
371 | %{_libdir}/libclan21Sqlite.a | |
372 | ||
373 | %files OpenGL | |
374 | %defattr(644,root,root,755) | |
375 | %attr(755,root,root) %{_libdir}/libclan21GL-%{cvmajor}.so.*.*.* | |
376 | %attr(755,root,root) %ghost %{_libdir}/libclan21GL-%{cvmajor}.so.1 | |
377 | ||
378 | %files OpenGL-devel | |
379 | %defattr(644,root,root,755) | |
380 | %attr(755,root,root) %{_libdir}/libclan21GL.so | |
381 | %{_libdir}/libclan21GL.la | |
382 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GL | |
383 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gl.h | |
384 | %{_pkgconfigdir}/clanGL-%{cvmajor}.pc | |
385 | ||
386 | %files OpenGL-static | |
387 | %defattr(644,root,root,755) | |
388 | %{_libdir}/libclan21GL.a | |
389 | ||
390 | %files MikMod | |
391 | %defattr(644,root,root,755) | |
392 | %attr(755,root,root) %{_libdir}/libclan21MikMod-%{cvmajor}.so.*.*.* | |
393 | %attr(755,root,root) %ghost %{_libdir}/libclan21MikMod-%{cvmajor}.so.1 | |
394 | ||
395 | %files MikMod-devel | |
396 | %defattr(644,root,root,755) | |
397 | %attr(755,root,root) %{_libdir}/libclan21MikMod.so | |
398 | %{_libdir}/libclan21MikMod.la | |
399 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/MikMod | |
400 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/mikmod.h | |
401 | %{_pkgconfigdir}/clanMikMod-%{cvmajor}.pc | |
402 | ||
403 | %files MikMod-static | |
404 | %defattr(644,root,root,755) | |
405 | %{_libdir}/libclan21MikMod.a | |
406 | ||
407 | %files Vorbis | |
408 | %defattr(644,root,root,755) | |
409 | %attr(755,root,root) %{_libdir}/libclan21Vorbis-%{cvmajor}.so.*.*.* | |
410 | %attr(755,root,root) %ghost %{_libdir}/libclan21Vorbis-%{cvmajor}.so.1 | |
411 | ||
412 | %files Vorbis-devel | |
413 | %defattr(644,root,root,755) | |
414 | %attr(755,root,root) %{_libdir}/libclan21Vorbis.so | |
415 | %{_libdir}/libclan21Vorbis.la | |
416 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Vorbis | |
417 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/vorbis.h | |
418 | %{_pkgconfigdir}/clanVorbis-%{cvmajor}.pc | |
419 | ||
420 | %files Vorbis-static | |
421 | %defattr(644,root,root,755) | |
422 | %{_libdir}/libclan21Vorbis.a |