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