]> git.pld-linux.org Git - packages/ClanLib.git/blob - ClanLib.spec
- obsolete
[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.6.5
6 Release:        2
7 License:        LGPL
8 Group:          Libraries
9 #Source0Download: http://www.clanlib.org/download.html
10 Source0:        http://www.clanlib.org/download/files/%{name}-%{version}-1.tar.gz
11 # Source0-md5:  7115921953ef6fa45102c28622493650
12 Patch0:         %{name}-OPT.patch
13 Patch1:         %{name}-GL.patch
14 Patch2:         %{name}-assert.patch
15 Patch3:         %{name}-ft2build_h.patch
16 URL:            http://www.clanlib.org/
17 # doesn't build with 0.9.12
18 #BuildRequires: DirectFB-devel = 0.9.9
19 BuildRequires:  Hermes-devel >= 1.3.1
20 BuildRequires:  OpenGL-devel
21 BuildRequires:  XFree86-devel
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  freetype-devel >= 2.0
25 BuildRequires:  libjpeg-devel
26 BuildRequires:  libmikmod-devel
27 BuildRequires:  libpng-devel >= 1.0.8
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  libvorbis-devel >= 1:1.0
30 # If broken - don't require it....
31 #BuildRequires: lua-devel
32 BuildRequires:  perl
33 Requires:       Hermes >= 1.3.1
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
37
38 %description
39 The ClanLib SDK is designed to provide an platform independent game
40 SDK using a lot cleaner (and object oriented) interface than the
41 traditional way it is done in DirectX, SDL and such. The goal is to
42 avoid game developers constantly reinventing the wheel by providing
43 smarter ways to eg. load surfaces.
44
45 %description -l pl
46 ClanLib SDK jest projektowany jako niezale¿ny od platformy SDK dla
47 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
48 przejrzystszy ni¿ DirectX, SDL i inne.
49
50 %description -l pt_BR
51 A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para
52 facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer
53 uma interface comum para os problemas clássicos dos jogos (carregar
54 gráficos por exemplo).
55
56 %package devel
57 Summary:        ClanLib development package
58 Summary(pl):    Pakiet programistyczny dla ClanLib
59 Summary(pt_BR): Arquivos para desenvolvimento usando a Clanlib
60 Group:          Development/Libraries
61 Requires:       %{name} = %{version}-%{release}
62 Requires:       Hermes-devel
63
64 %description devel
65 This is the development add-on package that includes the header files
66 needed to compile new ClanLib applications.
67
68 %description devel -l pl
69 Programistyczne dodatki do ClanLiba, zawieraj± pliki nag³ówkowe
70 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
71
72 %description devel -l pt_BR
73 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
74 a biblioteca Clanlib.
75
76 %package static
77 Summary:        ClanLib static libraries
78 Summary(pl):    Biblioteki statyczne ClanLib
79 Group:          Development/Libraries
80 Requires:       %{name}-devel = %{version}-%{release}
81
82 %description static
83 ClanLib static libraries.
84
85 %description static -l pl
86 Biblioteki statyczne ClanLib.
87
88 %package OpenGL
89 Summary:        OpenGL ClanLib library
90 Summary(pl):    Biblioteka OpenGL dla ClanLiba
91 Group:          Libraries
92 Requires:       %{name} = %{version}-%{release}
93 Requires:       OpenGL
94
95 %description OpenGL
96 OpenGL ClanLib library.
97
98 %description OpenGL -l pl
99 Biblioteka OpenGL dla ClanLiba.
100
101 %package OpenGL-devel
102 Summary:        Headers files for OpenGL ClanLib library
103 Summary(pl):    Pliki nag³ówkowe biblioteki OpenGL dla ClanLiba
104 Group:          Development/Libraries
105 Requires:       %{name}-OpenGL = %{version}-%{release}
106 Requires:       %{name}-devel = %{version}-%{release}
107 Requires:       OpenGL-devel
108
109 %description OpenGL-devel
110 Headers files for OpenGL ClanLib library.
111
112 %description OpenGL-devel -l pl
113 Pliki nag³ówkowe biblioteki OpenGL dla ClanLiba.
114
115 %package OpenGL-static
116 Summary:        Static OpenGL ClanLib library
117 Summary(pl):    Statyczna biblioteka OpenGL dla ClanLiba
118 Group:          Development/Libraries
119 Requires:       %{name}-OpenGL-devel = %{version}-%{release}
120
121 %description OpenGL-static
122 Static OpenGL ClanLib library.
123
124 %description OpenGL-static -l pl
125 Statyczna biblioteka OpenGL dla ClanLiba.
126
127 %package MikMod
128 Summary:        MikMod ClanLib library
129 Summary(pl):    Biblioteka MikMod dla ClanLiba
130 Group:          Libraries
131 Requires:       %{name} = %{version}-%{release}
132
133 %description MikMod
134 MikMod ClanLib library.
135
136 %description MikMod -l pl
137 Biblioteka MikMod dla ClanLiba.
138
139 %package MikMod-devel
140 Summary:        Headers files for MikMod ClanLib library
141 Summary(pl):    Pliki nag³ówkowe biblioteki MikMod dla ClanLiba
142 Group:          Development/Libraries
143 Requires:       %{name}-MikMod = %{version}-%{release}
144 Requires:       %{name}-devel = %{version}-%{release}
145 Requires:       libmikmod-devel
146
147 %description MikMod-devel
148 Headers files for MikMod ClanLib library.
149
150 %description MikMod-devel -l pl
151 Pliki nag³ówkowe biblioteki MikMod dla ClanLiba.
152
153 %package MikMod-static
154 Summary:        Static MikMod ClanLib library
155 Summary(pl):    Statyczna biblioteka MikMod dla ClanLiba
156 Group:          Development/Libraries
157 Requires:       %{name}-MikMod-devel = %{version}-%{release}
158
159 %description MikMod-static
160 Static MikMod ClanLib library.
161
162 %description MikMod-static -l pl
163 Statyczna biblioteka MikMod dla ClanLiba.
164
165 %package Vorbis
166 Summary:        Vorbis ClanLib library
167 Summary(pl):    Biblioteka Vorbis dla ClanLiba
168 Group:          Libraries
169 Requires:       %{name} = %{version}-%{release}
170
171 %description Vorbis
172 Vorbis ClanLib library.
173
174 %description Vorbis -l pl
175 Biblioteka Vorbis dla ClanLiba.
176
177 %package Vorbis-devel
178 Summary:        Headers files for Vorbis ClanLib library
179 Summary(pl):    Pliki nag³ówkowe biblioteki Vorbis dla ClanLiba
180 Group:          Development/Libraries
181 Requires:       %{name}-Vorbis = %{version}-%{release}
182 Requires:       %{name}-devel = %{version}-%{release}
183
184 %description Vorbis-devel
185 Headers files for Vorbis ClanLib library.
186
187 %description Vorbis-devel -l pl
188 Pliki nag³ówkowe biblioteki Vorbis dla ClanLiba.
189
190 %package Vorbis-static
191 Summary:        Static Vorbis ClanLib library
192 Summary(pl):    Statyczna biblioteka Vorbis dla ClanLiba
193 Group:          Development/Libraries
194 Requires:       %{name}-Vorbis-devel = %{version}-%{release}
195
196 %description Vorbis-static
197 Static Vorbis ClanLib library.
198
199 %description Vorbis-static -l pl
200 Statyczna biblioteka Vorbis dla ClanLiba.
201
202 %package TTF
203 Summary:        TTF ClanLib library
204 Summary(pl):    Biblioteka TTF dla ClanLiba
205 Group:          Libraries
206 Requires:       %{name} = %{version}-%{release}
207
208 %description TTF
209 TTF ClanLib library.
210
211 %description TTF -l pl
212 Biblioteka TTF dla ClanLiba.
213
214 %package TTF-devel
215 Summary:        Headers files for TTF ClanLib library
216 Summary(pl):    Pliki nag³ówkowe biblioteki TTF dla ClanLiba
217 Group:          Development/Libraries
218 Requires:       %{name}-TTF = %{version}-%{release}
219 Requires:       %{name}-devel = %{version}-%{release}
220
221 %description TTF-devel
222 Headers files for TTF ClanLib library.
223
224 %description TTF-devel -l pl
225 Pliki nag³ówkowe biblioteki TTF dla ClanLiba.
226
227 %package TTF-static
228 Summary:        Static TTF ClanLib library
229 Summary(pl):    Statyczna biblioteka TTF dla ClanLiba
230 Group:          Development/Libraries
231 Requires:       %{name}-TTF-devel = %{version}-%{release}
232
233 %description TTF-static
234 Static TTF ClanLib library.
235
236 %description TTF-static -l pl
237 Statyczna biblioteka TTF dla ClanLiba.
238
239 %prep
240 %setup -q
241 %patch0 -p1
242 %patch1 -p1
243 %patch2 -p1
244 %patch3 -p1
245
246 %build
247 # note: rtti is needed --- ClanLib uses exceptions!
248 cp /usr/share/automake/config.sub .
249 %{__aclocal}
250 %{__autoconf}
251 %configure \
252         --enable-static \
253         --enable-shared \
254         --%{?debug:en}%{!?debug:dis}able-debug \
255 %ifarch %{ix86}
256         --enable-asm386 \
257 %endif
258         --enable-clansound \
259         --enable-dyn \
260         --enable-fbdev \
261         --enable-gui \
262         --enable-jpeg \
263         --enable-mikmod \
264         --enable-network \
265         --enable-opengl \
266         --enable-png \
267         --enable-smalljpeg \
268         --enable-ttf \
269         --enable-vidmode \
270         --enable-vorbis \
271         --enable-x11 \
272         --disable-lua \
273         --disable-directfb
274 # lua is broken, DirectFB too fresh?
275
276 %{__make}
277 %{__make} docs
278
279 %install
280 rm -rf $RPM_BUILD_ROOT
281 %{__make} install \
282         LIB_PREFIX="$RPM_BUILD_ROOT%{_libdir}" \
283         TARGET_PREFIX="$RPM_BUILD_ROOT%{_libdir}/ClanLib" \
284         BIN_PREFIX="$RPM_BUILD_ROOT%{_bindir}" \
285         INC_PREFIX="$RPM_BUILD_ROOT%{_includedir}"
286
287 %{__make} docs_install \
288         MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
289         HTML_PREFIX="`pwd`/html"
290
291 %clean
292 rm -rf $RPM_BUILD_ROOT
293
294 %post   -p /sbin/ldconfig
295 %postun -p /sbin/ldconfig
296
297 %post   OpenGL -p /sbin/ldconfig
298 %postun OpenGL -p /sbin/ldconfig
299
300 %post   MikMod -p /sbin/ldconfig
301 %postun MikMod -p /sbin/ldconfig
302
303 %post   TTF -p /sbin/ldconfig
304 %postun TTF -p /sbin/ldconfig
305
306 %post   Vorbis -p /sbin/ldconfig
307 %postun Vorbis -p /sbin/ldconfig
308
309 %files
310 %defattr(644,root,root,755)
311 %doc CREDITS
312 %attr(755,root,root) %{_libdir}/libclanApp.so.*.*
313 %attr(755,root,root) %{_libdir}/libclanCore.so.*.*
314 %attr(755,root,root) %{_libdir}/libclanDisplay.so.*.*
315 %attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
316 %attr(755,root,root) %{_libdir}/libclan*JPEG.so.*.*
317 %attr(755,root,root) %{_libdir}/libclanNetwork.so.*.*
318 %attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
319 %attr(755,root,root) %{_libdir}/libclanSound.so.*.*
320
321 %files devel
322 %defattr(644,root,root,755)
323 %doc README html
324 %attr(755,root,root) %{_bindir}/clanlib-config
325 %attr(755,root,root) %{_libdir}/libclanApp.so
326 %attr(755,root,root) %{_libdir}/libclanCore.so
327 %attr(755,root,root) %{_libdir}/libclanDisplay.so
328 %attr(755,root,root) %{_libdir}/libclanGUI.so
329 %attr(755,root,root) %{_libdir}/libclan*JPEG.so
330 %attr(755,root,root) %{_libdir}/libclanNetwork.so
331 %attr(755,root,root) %{_libdir}/libclanPNG.so
332 %attr(755,root,root) %{_libdir}/libclanSound.so
333 %dir %{_includedir}/ClanLib
334 %{_includedir}/ClanLib/Application
335 %{_includedir}/ClanLib/Core
336 %{_includedir}/ClanLib/Display
337 %{_includedir}/ClanLib/GUI
338 %{_includedir}/ClanLib/*JPEG
339 %{_includedir}/ClanLib/Network
340 %{_includedir}/ClanLib/PNG
341 %{_includedir}/ClanLib/Signals
342 %{_includedir}/ClanLib/Sound
343 %{_includedir}/ClanLib/application.h
344 %{_includedir}/ClanLib/core.h
345 %{_includedir}/ClanLib/display.h
346 %{_includedir}/ClanLib/efence.h
347 %{_includedir}/ClanLib/gui.h
348 %{_includedir}/ClanLib/jpeg.h
349 %{_includedir}/ClanLib/network.h
350 %{_includedir}/ClanLib/png.h
351 %{_includedir}/ClanLib/signals.h
352 %{_includedir}/ClanLib/sound.h
353
354 %files static
355 %defattr(644,root,root,755)
356 %{_libdir}/libclanApp.a
357 %{_libdir}/libclanCore.a
358 %{_libdir}/libclanDisplay.a
359 %{_libdir}/libclanGUI.a
360 %{_libdir}/libclan*JPEG.a
361 %{_libdir}/libclanNetwork.a
362 %{_libdir}/libclanPNG.a
363 %{_libdir}/libclanSound.a
364
365 %files OpenGL
366 %defattr(644,root,root,755)
367 %attr(755,root,root) %{_libdir}/libclanGL.so.*.*
368
369 %files OpenGL-devel
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/libclanGL.so
372 %{_includedir}/ClanLib/GL
373 %{_includedir}/ClanLib/gl.h
374
375 %files OpenGL-static
376 %defattr(644,root,root,755)
377 %{_libdir}/libclanGL.a
378
379 %files MikMod
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
382
383 %files MikMod-devel
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_libdir}/libclanMikMod.so
386 %{_includedir}/ClanLib/MikMod
387 %{_includedir}/ClanLib/mikmod.h
388
389 %files MikMod-static
390 %defattr(644,root,root,755)
391 %{_libdir}/libclanMikMod.a
392
393 %files Vorbis
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
396
397 %files Vorbis-devel
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_libdir}/libclanVorbis.so
400 %{_includedir}/ClanLib/Vorbis
401 %{_includedir}/ClanLib/vorbis.h
402
403 %files Vorbis-static
404 %defattr(644,root,root,755)
405 %{_libdir}/libclanVorbis.a
406
407 %files TTF
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
410
411 %files TTF-devel
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_libdir}/libclanTTF.so
414 %{_includedir}/ClanLib/TTF
415 %{_includedir}/ClanLib/ttf.h
416
417 %files TTF-static
418 %defattr(644,root,root,755)
419 %{_libdir}/libclanTTF.a
This page took 0.078695 seconds and 3 git commands to generate.