]> git.pld-linux.org Git - packages/ClanLib.git/blob - ClanLib.spec
- spec adapterized.
[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 Name:           ClanLib
4 Version:        0.5.0
5 Release:        2
6 License:        LGPL
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Group(pt_BR):   Bibliotecas
13 Group(ru):      âÉÂÌÉÏÔÅËÉ
14 Group(uk):      â¦Â̦ÏÔÅËÉ
15 Source0:        http://dark.x.dtu.dk/~mbn/clanlib/download/download-sphair/%{name}-%{version}-1.tar.gz
16 Patch0:         %{name}-OPT.patch
17 URL:            http://www.clanlib.org/
18 Requires:       Hermes >= 1.3.1
19 #OpenGL is disabled in ClanLib 0.5.0 so we disable this requirement
20 #Requires:      OpenGL
21 BuildRequires:  libpng-devel >= 1.0.8
22 BuildRequires:  zlib-devel
23 BuildRequires:  Hermes-devel >= 1.3.1
24 BuildRequires:  libstdc++-devel
25 BuildRequires:  XFree86-devel
26 #BuildRequires: OpenGL-devel
27 BuildRequires:  libmikmod-devel
28 BuildRequires:  freetype-devel >= 2.0
29 BuildRequires:  libvorbis-devel
30 BuildRequires:  perl
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
34
35 %description
36 The ClanLib SDK is designed to provide an platform independent game
37 SDK using a lot cleaner (and object oriented) interface than the
38 traditional way it is done in DirectX, SDL and such. The goals is to
39 avoid game developers constantly reinventing the wheel by providing
40 smarter ways to eg. load surfaces.
41
42 %description -l pl
43 ClanLib SDK jest projektowany jako niezale¿ny od platformy SDK dla
44 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
45 przejrzystszy ni¿ DirectX, SDL i inne.
46
47 %package devel
48 Summary:        ClanLib development package
49 Summary(pl):    pakiet programistyczny dla ClanLib
50 Group:          Development/Libraries
51 Group(de):      Entwicklung/Libraries
52 Group(es):      Desarrollo/Bibliotecas
53 Group(fr):      Development/Librairies
54 Group(pl):      Programowanie/Biblioteki
55 Group(pt_BR):   Desenvolvimento/Bibliotecas
56 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
57 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
58 Requires:       %{name} = %{version}
59 #Requires:      %{name}-OpenGL = %{version}
60 Requires:       %{name}-MikMod = %{version}
61 Requires:       %{name}-TTF = %{version}
62 Requires:       %{name}-Vorbis = %{version}
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 -l pl devel
69 Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
70 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
71
72 %package svgalib
73 Summary:        svgalib target for ClanLib
74 Summary(pl):    obs³uga svgalib dla ClanLib
75 Group:          Development/Libraries
76 Group(de):      Entwicklung/Libraries
77 Group(es):      Desarrollo/Bibliotecas
78 Group(fr):      Development/Librairies
79 Group(pl):      Programowanie/Biblioteki
80 Group(pt_BR):   Desenvolvimento/Bibliotecas
81 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
82 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
83 Requires:       %{name} = %{version}
84
85 %description svgalib
86 This is the svgalib target for ClanLib.
87
88 %description -l pl svgalib
89 Obs³uga svgalib dla ClanLib-a.
90
91 %package OpenGL
92 Summary:        OpenGL target for ClanLib
93 Summary(pl):    obs³uga OpenGL dla ClanLib
94 Group:          Development/Libraries
95 Group(de):      Entwicklung/Libraries
96 Group(es):      Desarrollo/Bibliotecas
97 Group(fr):      Development/Librairies
98 Group(pl):      Programowanie/Biblioteki
99 Group(pt_BR):   Desenvolvimento/Bibliotecas
100 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
101 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
102 Requires:       %{name} = %{version}
103
104 %description OpenGL
105 This is the OpenGL target for ClanLib.
106
107 %description -l pl OpenGL
108 Obs³uga OpenGL dla ClanLib-a.
109
110 %package GGI
111 Summary:        GGI target for ClanLib
112 Summary(pl):    obs³uga GGI dla ClanLib
113 Group:          Development/Libraries
114 Group(de):      Entwicklung/Libraries
115 Group(es):      Desarrollo/Bibliotecas
116 Group(fr):      Development/Librairies
117 Group(pl):      Programowanie/Biblioteki
118 Group(pt_BR):   Desenvolvimento/Bibliotecas
119 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
120 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
121 Requires:       %{name} = %{version}
122
123 %description GGI
124 This is the GGI target for ClanLib.
125
126 %description -l pl GGI
127 Obs³uga OpenGL dla ClanLib-a.
128
129 %package MikMod
130 Summary:        MikMod module for ClanLib
131 Summary(pl):    Modu³ Mikmod dla ClanLib
132 Group:          Development/Libraries
133 Group(de):      Entwicklung/Libraries
134 Group(es):      Desarrollo/Bibliotecas
135 Group(fr):      Development/Librairies
136 Group(pl):      Programowanie/Biblioteki
137 Group(pt_BR):   Desenvolvimento/Bibliotecas
138 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
139 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
140 Requires:       %{name} = %{version}
141
142 %description MikMod
143 MikMod module for ClanLib.
144
145 %description -l pl MikMod
146 Modu³ Mikmod dla ClanLib-a.
147
148 %package Vorbis
149 Summary:        Vorbis module for ClanLib
150 Summary(pl):    Modu³ Vorbis dla ClanLib
151 Group:          Development/Libraries
152 Group(de):      Entwicklung/Libraries
153 Group(es):      Desarrollo/Bibliotecas
154 Group(fr):      Development/Librairies
155 Group(pl):      Programowanie/Biblioteki
156 Group(pt_BR):   Desenvolvimento/Bibliotecas
157 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
158 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
159 Requires:       %{name} = %{version}
160
161 %description Vorbis
162 Vorbis module for ClanLib.
163
164 %description -l pl Vorbis
165 Modu³ Vorbis dla ClanLib-a.
166
167 %package TTF
168 Summary:        TTF module for ClanLib
169 Summary(pl):    Modu³ TTF dla ClanLib
170 Group:          Development/Libraries
171 Group(de):      Entwicklung/Libraries
172 Group(es):      Desarrollo/Bibliotecas
173 Group(fr):      Development/Librairies
174 Group(pl):      Programowanie/Biblioteki
175 Group(pt_BR):   Desenvolvimento/Bibliotecas
176 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
177 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
178 Requires:       %{name} = %{version}
179
180 %description TTF
181 TTF module for ClanLib.
182
183 %description -l pl TTF
184 Modu³ TTF dla ClanLib-a.
185
186 %package static
187 Summary:        ClanLib development package
188 Summary(pl):    pakiet programistyczny dla ClanLib
189 Group:          Development/Libraries
190 Group(de):      Entwicklung/Libraries
191 Group(es):      Desarrollo/Bibliotecas
192 Group(fr):      Development/Librairies
193 Group(pl):      Programowanie/Biblioteki
194 Group(pt_BR):   Desenvolvimento/Bibliotecas
195 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
196 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
197 Requires:       %{name}-devel = %{version}
198
199 %description static
200 This is the development add-on package that includes the header files
201 needed to compile new ClanLib applications.
202
203 %description -l pl static
204 Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
205 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
206
207 %prep
208 %setup -q
209 #%patch0 -p1
210
211 %build
212 # note: rtti is needed --- ClanLib uses exceptions!
213 aclocal
214 autoconf
215 %configure \
216         --enable-static \
217         --enable-shared \
218         %{?debug:--enable-debug}%{!?debug:--disable-debug} \
219         --disable-debug \
220         --enable-x11 \
221         --enable-fbdev \
222         --enable-vidmode \
223         --enable-clansound \
224         --enable-network \
225 %ifarch %{ix86}
226         --enable-asm386 \
227 %endif
228         --enable-dyn \
229         --enable-gui \
230         --enable-vorbis \
231         --enable-mikmod \
232         --enable-png \
233         --enable-jpeg \
234         --enable-smalljpeg \
235         --enable-ttf
236
237 # not functional right now      
238 #       --enable-opengl \
239 #       --enable-mpeg
240         
241
242 %{__make}
243 %{__make} docs
244
245 %install
246 rm -rf $RPM_BUILD_ROOT
247 %{__make} install \
248         LIB_PREFIX="$RPM_BUILD_ROOT%{_libdir}" \
249         TARGET_PREFIX="$RPM_BUILD_ROOT%{_libdir}/ClanLib" \
250         BIN_PREFIX="$RPM_BUILD_ROOT%{_bindir}" \
251         INC_PREFIX="$RPM_BUILD_ROOT%{_includedir}"
252
253 %{__make} docs_install \
254         MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
255         HTML_PREFIX="`pwd`/html"
256
257 gzip -9nf README CREDITS
258
259 %post   -p /sbin/ldconfig
260 %postun -p /sbin/ldconfig
261
262 %post   OpenGL -p /sbin/ldconfig
263 %postun OpenGL -p /sbin/ldconfig
264
265 %post   MikMod -p /sbin/ldconfig
266 %postun MikMod -p /sbin/ldconfig
267
268 %post   TTF -p /sbin/ldconfig
269 %postun TTF -p /sbin/ldconfig
270
271 %post   Vorbis -p /sbin/ldconfig
272 %postun Vorbis -p /sbin/ldconfig
273
274 %clean
275 rm -rf $RPM_BUILD_ROOT
276
277 %files
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libdir}/libclanApp.so.*.*
280 %attr(755,root,root) %{_libdir}/libclanCore.so.*.*
281 %attr(755,root,root) %{_libdir}/libclanDisplay.so.*.*
282 %attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
283 %attr(755,root,root) %{_libdir}/libclan*JPEG.so.*.*
284 %attr(755,root,root) %{_libdir}/libclanNetwork.so.*.*
285 #%attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
286 %attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
287 %attr(755,root,root) %{_libdir}/libclanSound.so.*.*
288
289 #%files OpenGL
290 #%defattr(644,root,root,755)
291 #%attr(755,root,root) %{_libdir}/libclanGL.so.*.*
292 #%attr(755,root,root) %{_libdir}/ClanLib/libclan-display-glx.so*
293
294 %files MikMod
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
297
298 %files Vorbis
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
301
302 %files TTF
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
305
306 %files devel
307 %defattr(644,root,root,755)
308 %doc *gz
309 %doc html
310 %attr(755,root,root) %{_libdir}/*.so
311 %attr(755,root,root) %{_bindir}/*
312 %{_includedir}/ClanLib
313
314 %files static
315 %defattr(644,root,root,755)
316 #%{_libdir}/lib*.a
This page took 0.119949 seconds and 4 git commands to generate.