]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with sse2 # use SSE2 instructions | |
4 | # | |
5 | %ifarch pentium4 %{x8664} | |
6 | %define with_sse2 1 | |
7 | %endif | |
8 | # | |
9 | %define cvmajor 3.0 | |
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 | |
13 | Name: ClanLib | |
14 | Version: 3.0.0 | |
15 | Release: 1 | |
16 | License: BSD-like (see COPYING) | |
17 | Group: Libraries | |
18 | #Source0Download: http://www.clanlib.org/download.html | |
19 | Source0: http://www.clanlib.org/download/releases-3.0/%{name}-%{version}.tgz | |
20 | # Source0-md5: ebde34b9452a3b1d26cf81563f6ea62f | |
21 | Patch0: %{name}-build.patch | |
22 | Patch1: %{name}-link.patch | |
23 | Patch2: really-disable-sse2.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 >= 2 | |
32 | BuildRequires: libjpeg-devel | |
33 | BuildRequires: libpng-devel >= 1.2 | |
34 | BuildRequires: libstdc++-devel | |
35 | BuildRequires: libtool >= 2:1.4d-3 | |
36 | BuildRequires: libxslt-progs | |
37 | BuildRequires: pcre-devel | |
38 | BuildRequires: perl-base | |
39 | BuildRequires: pkgconfig | |
40 | BuildRequires: sqlite3-devel | |
41 | BuildRequires: xorg-lib-libXi-devel | |
42 | BuildRequires: xorg-lib-libXxf86vm-devel | |
43 | BuildRequires: zlib-devel | |
44 | %{?with_sse2:Requires: cpuinfo(sse2)} | |
45 | Obsoletes: ClanLib-SDL | |
46 | Obsoletes: ClanLib-Vorbis | |
47 | Obsoletes: ClanLib-MikMod | |
48 | Obsoletes: ClanLib-TTF | |
49 | Obsoletes: ClanLib-OpenGL1 | |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
53 | ||
54 | %description | |
55 | The ClanLib SDK is designed to provide an platform independent game | |
56 | SDK using a lot cleaner (and object oriented) interface than the | |
57 | traditional way it is done in DirectX, SDL and such. The goal is to | |
58 | avoid game developers constantly reinventing the wheel by providing | |
59 | smarter ways to eg. load surfaces. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | ClanLib SDK jest projektowany jako niezależny od platformy SDK dla | |
63 | gier. Stosuje prosty (i zorientowany obiektowo) interfejs, | |
64 | przejrzystszy niż DirectX, SDL i inne. | |
65 | ||
66 | %description -l pt_BR.UTF-8 | |
67 | A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para | |
68 | facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer | |
69 | uma interface comum para os problemas clássicos dos jogos (carregar | |
70 | gráficos por exemplo). | |
71 | ||
72 | %package devel | |
73 | Summary: ClanLib development package | |
74 | Summary(pl.UTF-8): Pakiet programistyczny dla ClanLib | |
75 | Summary(pt_BR.UTF-8): Arquivos para desenvolvimento usando a Clanlib | |
76 | Group: Development/Libraries | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | Requires: libstdc++-devel | |
79 | # for libclanDisplay | |
80 | Requires: xorg-lib-libXxf86vm-devel | |
81 | Obsoletes: ClanLib-SDL-devel | |
82 | Obsoletes: ClanLib-Vorbis-devel | |
83 | Obsoletes: ClanLib-TTF-devel | |
84 | Obsoletes: ClanLib-MikMod-devel | |
85 | Obsoletes: ClanLib-OpenGL1-devel | |
86 | ||
87 | %description devel | |
88 | This is the development add-on package that includes the header files | |
89 | needed to compile new ClanLib applications. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Programistyczne dodatki do ClanLiba, zawierają pliki nagłówkowe | |
93 | potrzebne do kompilacji programów korzystających z ClanLib. | |
94 | ||
95 | %description devel -l pt_BR.UTF-8 | |
96 | Arquivos que possibilitam o desenvolvimento de aplicativos utilizando | |
97 | a biblioteca Clanlib. | |
98 | ||
99 | %package static | |
100 | Summary: ClanLib static libraries | |
101 | Summary(pl.UTF-8): Statyczne biblioteki ClanLib | |
102 | Group: Development/Libraries | |
103 | Requires: %{name}-devel = %{version}-%{release} | |
104 | Obsoletes: ClanLib-SDL-static | |
105 | Obsoletes: ClanLib-Vorbis-static | |
106 | Obsoletes: ClanLib-TTF-static | |
107 | Obsoletes: ClanLib-MikMod-static | |
108 | Obsoletes: ClanLib-OpenGL1-static | |
109 | ||
110 | %description static | |
111 | This package contains static versions of ClanLib libraries. | |
112 | ||
113 | %description static -l pl.UTF-8 | |
114 | Ten pakiet zawiera statyczne wersje bibliotek ClanLib. | |
115 | ||
116 | %package OpenGL | |
117 | Summary: OpenGL ClanLib library | |
118 | Summary(pl.UTF-8): Biblioteka OpenGL dla ClanLiba | |
119 | Group: Libraries | |
120 | Requires: %{name} = %{version}-%{release} | |
121 | ||
122 | %description OpenGL | |
123 | OpenGL ClanLib library. | |
124 | ||
125 | %description OpenGL -l pl.UTF-8 | |
126 | Biblioteka OpenGL dla ClanLiba. | |
127 | ||
128 | %package OpenGL-devel | |
129 | Summary: Header files for OpenGL ClanLib library | |
130 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenGL dla ClanLiba | |
131 | Group: Development/Libraries | |
132 | Requires: %{name}-OpenGL = %{version}-%{release} | |
133 | Requires: %{name}-devel = %{version}-%{release} | |
134 | Requires: OpenGL-GLU-devel | |
135 | Requires: xorg-lib-libXi-devel | |
136 | Requires: xorg-lib-libXxf86vm-devel | |
137 | ||
138 | %description OpenGL-devel | |
139 | Header files for OpenGL ClanLib library. | |
140 | ||
141 | %description OpenGL-devel -l pl.UTF-8 | |
142 | Pliki nagłówkowe biblioteki OpenGL dla ClanLiba. | |
143 | ||
144 | %package OpenGL-static | |
145 | Summary: Static OpenGL ClanLib library | |
146 | Summary(pl.UTF-8): Statyczna biblioteka OpenGL dla ClanLiba | |
147 | Group: Development/Libraries | |
148 | Requires: %{name}-OpenGL-devel = %{version}-%{release} | |
149 | ||
150 | %description OpenGL-static | |
151 | Static OpenGL ClanLib library. | |
152 | ||
153 | %description OpenGL-static -l pl.UTF-8 | |
154 | Statyczna biblioteka OpenGL dla ClanLiba. | |
155 | ||
156 | %package SWRender | |
157 | Summary: ClanLib SWRender (Software Rendering) library | |
158 | Summary(pl.UTF-8): Biblioteka ClanLib SWRender (Software Rendering) | |
159 | Group: Libraries | |
160 | Requires: %{name} = %{version}-%{release} | |
161 | ||
162 | %description SWRender | |
163 | ClanLib SWRender software rendering library, utilizing SSE2 | |
164 | instructions of x86 processors. | |
165 | %if %{without sse2} | |
166 | ||
167 | Note: this package is only stub; ClanLib needs to be recompiled with | |
168 | SSE2 instructions for it to work. | |
169 | %endif | |
170 | ||
171 | %description SWRender -l pl.UTF-8 | |
172 | Biblioteka programowego renderowania ClanLib SWRender, wykorzystująca | |
173 | instrukcje SSE2 procesorów x86. | |
174 | %if %{without sse2} | |
175 | ||
176 | Uwaga: ten pakiet zawiera tylko zaślepki; żeby działał, trzeba | |
177 | przekompilować ClanLiba z użyciem instrukcji SSE2. | |
178 | %endif | |
179 | ||
180 | %package SWRender-devel | |
181 | Summary: Header files for ClanLib SWRender library | |
182 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ClanLib SWRender | |
183 | Group: Development/Libraries | |
184 | Requires: %{name}-SWRender = %{version}-%{release} | |
185 | Requires: %{name}-devel = %{version}-%{release} | |
186 | ||
187 | %description SWRender-devel | |
188 | Header files for ClanLib SWRender software rendering library. | |
189 | ||
190 | %description SWRender-devel -l pl.UTF-8 | |
191 | Pliki nagłówkowe biblioteki programowego renderowania ClanLib | |
192 | SWRender. | |
193 | ||
194 | %package SWRender-static | |
195 | Summary: Static ClanLib SWRender library | |
196 | Summary(pl.UTF-8): Statyczna biblioteka ClanLib SWRender | |
197 | Group: Development/Libraries | |
198 | Requires: %{name}-SWRender-devel = %{version}-%{release} | |
199 | ||
200 | %description SWRender-static | |
201 | Static ClanLib SWRender library. | |
202 | ||
203 | %description SWRender-static -l pl.UTF-8 | |
204 | Statyczna biblioteka ClanLib SWRender. | |
205 | ||
206 | %package doc | |
207 | Summary: ClanLib reference documentation for programmers | |
208 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki ClanLib | |
209 | Group: Documentation | |
210 | ||
211 | %description doc | |
212 | ClanLib reference documentation for programmers. | |
213 | ||
214 | %description doc -l pl.UTF-8 | |
215 | Dokumentacja programisty do biblioteki ClanLib | |
216 | ||
217 | %prep | |
218 | %setup -q | |
219 | %patch0 -p1 | |
220 | %patch1 -p1 | |
221 | %patch2 -p1 | |
222 | ||
223 | %{__rm} -r autom4te.cache | |
224 | ||
225 | %build | |
226 | %{__libtoolize} | |
227 | %{__aclocal} -I m4 | |
228 | %{__automake} | |
229 | %{__autoconf} | |
230 | %configure \ | |
231 | %{!?with_sse2:--disable-sse2} \ | |
232 | --enable-docs \ | |
233 | --%{?debug:en}%{!?debug:dis}able-debug | |
234 | ||
235 | export PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig | |
236 | %{__make} | |
237 | ||
238 | %{__make} html \ | |
239 | PKG_CONFIG_PATH=$(pwd)/Setup/pkgconfig | |
240 | ||
241 | %install | |
242 | rm -rf $RPM_BUILD_ROOT | |
243 | ||
244 | %{__make} install install-html \ | |
245 | DESTDIR=$RPM_BUILD_ROOT | |
246 | ||
247 | # missing from make install | |
248 | install -d $RPM_BUILD_ROOT%{_aclocaldir} | |
249 | install Setup/Unix/clanlib.m4 $RPM_BUILD_ROOT%{_aclocaldir} | |
250 | ||
251 | %clean | |
252 | rm -rf $RPM_BUILD_ROOT | |
253 | ||
254 | %post -p /sbin/ldconfig | |
255 | %postun -p /sbin/ldconfig | |
256 | ||
257 | %post OpenGL -p /sbin/ldconfig | |
258 | %postun OpenGL -p /sbin/ldconfig | |
259 | ||
260 | %post SWRender -p /sbin/ldconfig | |
261 | %postun SWRender -p /sbin/ldconfig | |
262 | ||
263 | %files | |
264 | %defattr(644,root,root,755) | |
265 | %doc COPYING CREDITS README | |
266 | %attr(755,root,root) %{_libdir}/libclan30App-%{cvmajor}.so.*.*.* | |
267 | %attr(755,root,root) %ghost %{_libdir}/libclan30App-%{cvmajor}.so.1 | |
268 | %attr(755,root,root) %{_libdir}/libclan30Core-%{cvmajor}.so.*.*.* | |
269 | %attr(755,root,root) %ghost %{_libdir}/libclan30CSSLayout-%{cvmajor}.so.1 | |
270 | %attr(755,root,root) %{_libdir}/libclan30CSSLayout-%{cvmajor}.so.*.*.* | |
271 | %attr(755,root,root) %ghost %{_libdir}/libclan30Core-%{cvmajor}.so.1 | |
272 | %attr(755,root,root) %{_libdir}/libclan30Database-%{cvmajor}.so.*.*.* | |
273 | %attr(755,root,root) %ghost %{_libdir}/libclan30Database-%{cvmajor}.so.1 | |
274 | %attr(755,root,root) %{_libdir}/libclan30Display-%{cvmajor}.so.*.*.* | |
275 | %attr(755,root,root) %ghost %{_libdir}/libclan30Display-%{cvmajor}.so.1 | |
276 | %attr(755,root,root) %{_libdir}/libclan30GUI-%{cvmajor}.so.*.*.* | |
277 | %attr(755,root,root) %ghost %{_libdir}/libclan30GUI-%{cvmajor}.so.1 | |
278 | %attr(755,root,root) %{_libdir}/libclan30Network-%{cvmajor}.so.*.*.* | |
279 | %attr(755,root,root) %ghost %{_libdir}/libclan30Network-%{cvmajor}.so.1 | |
280 | %attr(755,root,root) %{_libdir}/libclan30Sound-%{cvmajor}.so.*.*.* | |
281 | %attr(755,root,root) %ghost %{_libdir}/libclan30Sound-%{cvmajor}.so.1 | |
282 | %attr(755,root,root) %{_libdir}/libclan30Sqlite-%{cvmajor}.so.*.*.* | |
283 | %attr(755,root,root) %ghost %{_libdir}/libclan30Sqlite-%{cvmajor}.so.1 | |
284 | %attr(755,root,root) %{_libdir}/libclan30Compute-%{cvmajor}.so.*.*.* | |
285 | %attr(755,root,root) %ghost %{_libdir}/libclan30Compute-%{cvmajor}.so.1 | |
286 | %attr(755,root,root) %{_libdir}/libclan30GameIDE-%{cvmajor}.so.*.*.* | |
287 | %attr(755,root,root) %ghost %{_libdir}/libclan30GameIDE-%{cvmajor}.so.1 | |
288 | %attr(755,root,root) %{_libdir}/libclan30Physics2D-%{cvmajor}.so.*.*.* | |
289 | %attr(755,root,root) %ghost %{_libdir}/libclan30Physics2D-%{cvmajor}.so.1 | |
290 | %attr(755,root,root) %{_libdir}/libclan30Physics3D-%{cvmajor}.so.*.*.* | |
291 | %attr(755,root,root) %ghost %{_libdir}/libclan30Physics3D-%{cvmajor}.so.1 | |
292 | %attr(755,root,root) %{_libdir}/libclan30Scene3D-%{cvmajor}.so.*.*.* | |
293 | %attr(755,root,root) %ghost %{_libdir}/libclan30Scene3D-%{cvmajor}.so.1 | |
294 | ||
295 | %files devel | |
296 | %defattr(644,root,root,755) | |
297 | %attr(755,root,root) %{_libdir}/libclan30App.so | |
298 | %attr(755,root,root) %{_libdir}/libclan30CSSLayout.so | |
299 | %attr(755,root,root) %{_libdir}/libclan30Core.so | |
300 | %attr(755,root,root) %{_libdir}/libclan30Database.so | |
301 | %attr(755,root,root) %{_libdir}/libclan30Display.so | |
302 | %attr(755,root,root) %{_libdir}/libclan30GUI.so | |
303 | %attr(755,root,root) %{_libdir}/libclan30Network.so | |
304 | %attr(755,root,root) %{_libdir}/libclan30Sound.so | |
305 | %attr(755,root,root) %{_libdir}/libclan30Sqlite.so | |
306 | %attr(755,root,root) %{_libdir}/libclan30Compute.so | |
307 | %attr(755,root,root) %{_libdir}/libclan30GameIDE.so | |
308 | %attr(755,root,root) %{_libdir}/libclan30Physics2D.so | |
309 | %attr(755,root,root) %{_libdir}/libclan30Physics3D.so | |
310 | %attr(755,root,root) %{_libdir}/libclan30Scene3D.so | |
311 | %dir %{_includedir}/ClanLib-%{cvmajor} | |
312 | %dir %{_includedir}/ClanLib-%{cvmajor}/ClanLib | |
313 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/App | |
314 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/application.h | |
315 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/CSSLayout | |
316 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/csslayout.h | |
317 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Core | |
318 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/core.h | |
319 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Database | |
320 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/database.h | |
321 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Display | |
322 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/display.h | |
323 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GUI* | |
324 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gui*.h | |
325 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Network | |
326 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/network.h | |
327 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sound | |
328 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sound.h | |
329 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Sqlite | |
330 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/sqlite.h | |
331 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Compute | |
332 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GameIDE | |
333 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Physics2D | |
334 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Physics3D | |
335 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/Scene3D | |
336 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/compute.h | |
337 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/d3d.h | |
338 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gameide.h | |
339 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/physics2d.h | |
340 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/physics3d.h | |
341 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/scene3d.h | |
342 | %{_aclocaldir}/clanlib.m4 | |
343 | %{_pkgconfigdir}/clanApp-%{cvmajor}.pc | |
344 | %{_pkgconfigdir}/clanCSSLayout-%{cvmajor}.pc | |
345 | %{_pkgconfigdir}/clanCore-%{cvmajor}.pc | |
346 | %{_pkgconfigdir}/clanDatabase-%{cvmajor}.pc | |
347 | %{_pkgconfigdir}/clanDisplay-%{cvmajor}.pc | |
348 | %{_pkgconfigdir}/clanGUI*-%{cvmajor}.pc | |
349 | %{_pkgconfigdir}/clanNetwork-%{cvmajor}.pc | |
350 | %{_pkgconfigdir}/clanSound-%{cvmajor}.pc | |
351 | %{_pkgconfigdir}/clanSqlite-%{cvmajor}.pc | |
352 | %{_pkgconfigdir}/clanCompute-%{cvmajor}.pc | |
353 | %{_pkgconfigdir}/clanGameIDE-%{cvmajor}.pc | |
354 | %{_pkgconfigdir}/clanPhysics2D-%{cvmajor}.pc | |
355 | %{_pkgconfigdir}/clanPhysics3D-%{cvmajor}.pc | |
356 | %{_pkgconfigdir}/clanScene3D-%{cvmajor}.pc | |
357 | ||
358 | %files static | |
359 | %defattr(644,root,root,755) | |
360 | %{_libdir}/libclan30App.a | |
361 | %{_libdir}/libclan30CSSLayout.a | |
362 | %{_libdir}/libclan30Core.a | |
363 | %{_libdir}/libclan30Database.a | |
364 | %{_libdir}/libclan30Display.a | |
365 | %{_libdir}/libclan30GUI.a | |
366 | %{_libdir}/libclan30Network.a | |
367 | %{_libdir}/libclan30Sound.a | |
368 | %{_libdir}/libclan30Sqlite.a | |
369 | %{_libdir}/libclan30Compute.a | |
370 | %{_libdir}/libclan30GameIDE.a | |
371 | %{_libdir}/libclan30Physics2D.a | |
372 | %{_libdir}/libclan30Physics3D.a | |
373 | %{_libdir}/libclan30Scene3D.a | |
374 | ||
375 | %files OpenGL | |
376 | %defattr(644,root,root,755) | |
377 | %attr(755,root,root) %{_libdir}/libclan30GL-%{cvmajor}.so.*.*.* | |
378 | %attr(755,root,root) %ghost %{_libdir}/libclan30GL-%{cvmajor}.so.1 | |
379 | ||
380 | %files OpenGL-devel | |
381 | %defattr(644,root,root,755) | |
382 | %attr(755,root,root) %{_libdir}/libclan30GL.so | |
383 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/GL | |
384 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/gl.h | |
385 | %{_pkgconfigdir}/clanGL-%{cvmajor}.pc | |
386 | ||
387 | %files OpenGL-static | |
388 | %defattr(644,root,root,755) | |
389 | %{_libdir}/libclan30GL.a | |
390 | ||
391 | %files SWRender | |
392 | %defattr(644,root,root,755) | |
393 | %attr(755,root,root) %{_libdir}/libclan30SWRender-%{cvmajor}.so.*.*.* | |
394 | %attr(755,root,root) %ghost %{_libdir}/libclan30SWRender-%{cvmajor}.so.1 | |
395 | ||
396 | %files SWRender-devel | |
397 | %defattr(644,root,root,755) | |
398 | %attr(755,root,root) %{_libdir}/libclan30SWRender.so | |
399 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/SWRender | |
400 | %{_includedir}/ClanLib-%{cvmajor}/ClanLib/swrender.h | |
401 | %{_pkgconfigdir}/clanSWRender-%{cvmajor}.pc | |
402 | ||
403 | %files SWRender-static | |
404 | %defattr(644,root,root,755) | |
405 | %{_libdir}/libclan30SWRender.a | |
406 | ||
407 | %files doc | |
408 | %defattr(644,root,root,755) | |
409 | %{_docdir}/clanlib-%{cvmajor} |