]> git.pld-linux.org Git - packages/ClanLib.git/blob - ClanLib.spec
- assert patch
[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:        1
7 License:        LGPL
8 Group:          Libraries
9 # Source0-md5:  7115921953ef6fa45102c28622493650
10 Source0:        http://www.clanlib.org/~sphair/download/%{name}-%{version}-1.tar.gz
11 Patch0:         %{name}-OPT.patch
12 Patch1:         %{name}-GL.patch
13 Patch2:         %{name}-assert.patch
14 URL:            http://www.clanlib.org/
15 # doesn't build with 0.9.12
16 #BuildRequires: DirectFB-devel = 0.9.9
17 BuildRequires:  Hermes-devel >= 1.3.1
18 BuildRequires:  OpenGL-devel
19 BuildRequires:  XFree86-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  freetype-devel >= 2.0
23 BuildRequires:  libjpeg-devel
24 BuildRequires:  libmikmod-devel
25 BuildRequires:  libpng-devel >= 1.0.8
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libvorbis-devel >= 1:1.0
28 # If broken - don't require it....
29 #BuildRequires: lua-devel
30 BuildRequires:  perl
31 Requires:       Hermes >= 1.3.1
32 Requires:       OpenGL
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
36
37 %description
38 The ClanLib SDK is designed to provide an platform independent game
39 SDK using a lot cleaner (and object oriented) interface than the
40 traditional way it is done in DirectX, SDL and such. The goals is to
41 avoid game developers constantly reinventing the wheel by providing
42 smarter ways to eg. load surfaces.
43
44 %description -l pl
45 ClanLib SDK jest projektowany jako niezale¿ny od platformy SDK dla
46 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
47 przejrzystszy ni¿ DirectX, SDL i inne.
48
49 %description -l pt_BR
50 A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para
51 facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer
52 uma interface comum para os problemas clássicos dos jogos (carregar
53 gráficos por exemplo).
54
55 %package devel
56 Summary:        ClanLib development package
57 Summary(pl):    pakiet programistyczny dla ClanLib
58 Summary(pt_BR): Arquivos para desenvolvimento usando a Clanlib
59 Group:          Development/Libraries
60 Requires:       %{name} = %{version}
61 Requires:       %{name}-OpenGL = %{version}
62 Requires:       %{name}-MikMod = %{version}
63 Requires:       %{name}-TTF = %{version}
64 Requires:       %{name}-Vorbis = %{version}
65 Requires:       Hermes-devel
66
67 %description devel
68 This is the development add-on package that includes the header files
69 needed to compile new ClanLib applications.
70
71 %description devel -l pl
72 Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
73 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
74
75 %description devel -l pt_BR
76 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
77 a biblioteca Clanlib.
78
79 %package svgalib
80 Summary:        svgalib target for ClanLib
81 Summary(pl):    obs³uga svgalib dla ClanLib
82 Group:          Development/Libraries
83 Requires:       %{name} = %{version}
84
85 %description svgalib
86 This is the svgalib target for ClanLib.
87
88 %description svgalib -l pl
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 Requires:       %{name} = %{version}
96
97 %description OpenGL
98 This is the OpenGL target for ClanLib.
99
100 %description OpenGL -l pl
101 Obs³uga OpenGL dla ClanLib-a.
102
103 %package GGI
104 Summary:        GGI target for ClanLib
105 Summary(pl):    obs³uga GGI dla ClanLib
106 Group:          Development/Libraries
107 Requires:       %{name} = %{version}
108
109 %description GGI
110 This is the GGI target for ClanLib.
111
112 %description GGI -l pl
113 Obs³uga GGI dla ClanLib-a.
114
115 %package MikMod
116 Summary:        MikMod module for ClanLib
117 Summary(pl):    Modu³ Mikmod dla ClanLib
118 Group:          Development/Libraries
119 Requires:       %{name} = %{version}
120
121 %description MikMod
122 MikMod module for ClanLib.
123
124 %description MikMod -l pl
125 Modu³ Mikmod dla ClanLib-a.
126
127 %package Vorbis
128 Summary:        Vorbis module for ClanLib
129 Summary(pl):    Modu³ Vorbis dla ClanLib
130 Group:          Development/Libraries
131 Requires:       %{name} = %{version}
132
133 %description Vorbis
134 Vorbis module for ClanLib.
135
136 %description Vorbis -l pl
137 Modu³ Vorbis dla ClanLib-a.
138
139 %package TTF
140 Summary:        TTF module for ClanLib
141 Summary(pl):    Modu³ TTF dla ClanLib
142 Group:          Development/Libraries
143 Requires:       %{name} = %{version}
144
145 %description TTF
146 TTF module for ClanLib.
147
148 %description TTF -l pl
149 Modu³ TTF dla ClanLib-a.
150
151 %package static
152 Summary:        ClanLib development package
153 Summary(pl):    pakiet programistyczny dla ClanLib
154 Group:          Development/Libraries
155 Requires:       %{name}-devel = %{version}
156
157 %description static
158 This is the development add-on package that includes the header files
159 needed to compile new ClanLib applications.
160
161 %description static -l pl
162 Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
163 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
164
165 %prep
166 %setup -q
167 %patch0 -p1
168 %patch1 -p1
169 %patch2 -p1
170
171 %build
172 # note: rtti is needed --- ClanLib uses exceptions!
173 %{__aclocal}
174 %{__autoconf}
175 %configure \
176         --enable-static \
177         --enable-shared \
178         --%{?debug:en}%{!?debug:dis}able-debug \
179 %ifarch %{ix86}
180         --enable-asm386 \
181 %endif
182         --enable-clansound \
183         --enable-dyn \
184         --enable-fbdev \
185         --enable-gui \
186         --enable-jpeg \
187         --enable-mikmod \
188         --enable-network \
189         --enable-opengl \
190         --enable-png \
191         --enable-smalljpeg \
192         --enable-ttf \
193         --enable-vidmode \
194         --enable-vorbis \
195         --enable-x11 \
196         --disable-lua \
197         --disable-directfb
198 # lua is broken, DirectFB too fresh?
199
200 # not functional right now
201 # in fact - non existenz in actual configure...
202 #       --enable-mpeg
203
204
205 %{__make}
206 %{__make} docs
207
208 %install
209 rm -rf $RPM_BUILD_ROOT
210 %{__make} install \
211         LIB_PREFIX="$RPM_BUILD_ROOT%{_libdir}" \
212         TARGET_PREFIX="$RPM_BUILD_ROOT%{_libdir}/ClanLib" \
213         BIN_PREFIX="$RPM_BUILD_ROOT%{_bindir}" \
214         INC_PREFIX="$RPM_BUILD_ROOT%{_includedir}"
215
216 %{__make} docs_install \
217         MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
218         HTML_PREFIX="`pwd`/html"
219
220 %clean
221 rm -rf $RPM_BUILD_ROOT
222
223 %post   -p /sbin/ldconfig
224 %postun -p /sbin/ldconfig
225
226 %post   OpenGL -p /sbin/ldconfig
227 %postun OpenGL -p /sbin/ldconfig
228
229 %post   MikMod -p /sbin/ldconfig
230 %postun MikMod -p /sbin/ldconfig
231
232 %post   TTF -p /sbin/ldconfig
233 %postun TTF -p /sbin/ldconfig
234
235 %post   Vorbis -p /sbin/ldconfig
236 %postun Vorbis -p /sbin/ldconfig
237
238 %files
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/libclanApp.so.*.*
241 %attr(755,root,root) %{_libdir}/libclanCore.so.*.*
242 %attr(755,root,root) %{_libdir}/libclanDisplay.so.*.*
243 %attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
244 %attr(755,root,root) %{_libdir}/libclan*JPEG.so.*.*
245 %attr(755,root,root) %{_libdir}/libclanNetwork.so.*.*
246 #%attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
247 %attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
248 %attr(755,root,root) %{_libdir}/libclanSound.so.*.*
249
250 %files OpenGL
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/libclanGL.so.*.*
253
254 %files MikMod
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
257
258 %files Vorbis
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
261
262 %files TTF
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
265
266 %files devel
267 %defattr(644,root,root,755)
268 %doc README CREDITS html
269 %attr(755,root,root) %{_libdir}/*.so
270 %attr(755,root,root) %{_bindir}/*
271 %{_includedir}/ClanLib
272
273 %files static
274 %defattr(644,root,root,755)
275 %{_libdir}/lib*.a
This page took 0.099824 seconds and 3 git commands to generate.