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