]> git.pld-linux.org Git - packages/ClanLib.git/blob - ClanLib.spec
- massive attack: adding Source-md5
[packages/ClanLib.git] / ClanLib.spec
1 # TODO:
2 # - check what is happening with the documentation - possible cause: just
3 #   not ready
4 # - clean-up
5 # Warning: 0.7.2 is a developement version, but considered as stable as it is:/
6 # Maybe switch to 0.6.5 ?
7 #
8 Summary:        ClanLib, the platform independent game SDK
9 Summary(pl):    ClanLib, niezale¿ny od platformy SDK do gier
10 Summary(pt_BR): SDK Clanlib
11 Name:           ClanLib
12 Version:        0.7.2
13 Release:        0.1
14 License:        LGPL v2
15 Group:          Libraries
16 Source0:        http://www.clanlib.org/~sphair/download/%{name}-%{version}-1.tar.bz2
17 # Source0-md5:  cbaa39f7de761e2cba52ddd97795150e
18 Patch0:         %{name}-OPT.patch
19 URL:            http://www.clanlib.org/
20 # doesn't build with 0.9.12
21 #BuildRequires: DirectFB-devel = 0.9.9
22 BuildRequires:  Hermes-devel >= 1.3.1
23 BuildRequires:  OpenGL-devel
24 BuildRequires:  XFree86-devel
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  freetype-devel >= 2.0
28 BuildRequires:  libjpeg-devel
29 BuildRequires:  libmikmod-devel
30 BuildRequires:  libpng-devel >= 1.0.8
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libvorbis-devel >= 1:1.0
33 # If broken - don't require it....
34 #BuildRequires: lua-devel
35 BuildRequires:  perl
36 Requires:       Hermes >= 1.3.1
37 Requires:       OpenGL
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
41
42 %description
43 The ClanLib SDK is designed to provide an platform independent game
44 SDK using a lot cleaner (and object oriented) interface than the
45 traditional way it is done in DirectX, SDL and such. The goals is to
46 avoid game developers constantly reinventing the wheel by providing
47 smarter ways to eg. load surfaces.
48
49 %description -l pl
50 ClanLib SDK jest projektowany jako niezale¿ny od platformy SDK dla
51 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
52 przejrzystszy ni¿ DirectX, SDL i inne.
53
54 %description -l pt_BR
55 A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para
56 facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer
57 uma interface comum para os problemas clássicos dos jogos (carregar
58 gráficos por exemplo).
59
60 %package devel
61 Summary:        ClanLib development package
62 Summary(pl):    Pakiet programistyczny dla ClanLib
63 Summary(pt_BR): Arquivos para desenvolvimento usando a Clanlib
64 Group:          Development/Libraries
65 Requires:       %{name} = %{version}
66 Requires:       %{name}-OpenGL = %{version}
67 Requires:       %{name}-MikMod = %{version}
68 #Requires:      %{name}-TTF = %{version}
69 Requires:       %{name}-Vorbis = %{version}
70 Requires:       Hermes-devel
71
72 %description devel
73 This is the development add-on package that includes the header files
74 needed to compile new ClanLib applications.
75
76 %description devel -l pl
77 Programistyczne dodatki do ClanLiba, zawieraj± pliki nag³ówkowe
78 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
79
80 %description devel -l pt_BR
81 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
82 a biblioteca Clanlib.
83
84 %package doc
85 Summary:        ClanLib reference documentation for programmers
86 Summary(pl):    Dokumentacja programisty do biblioteki ClanLib
87 Group:          Documentation
88
89 %description doc
90 ClanLib reference documentation for programmers.
91
92 %description doc -l pl
93 Dokumentacja programisty do biblioteki ClanLib
94
95 %package svgalib
96 Summary:        svgalib target for ClanLib
97 Summary(pl):    Obs³uga svgalib dla ClanLib
98 Group:          Development/Libraries
99 Requires:       %{name} = %{version}
100
101 %description svgalib
102 This is the svgalib target for ClanLib.
103
104 %description svgalib -l pl
105 Obs³uga svgalib dla ClanLiba.
106
107 %package OpenGL
108 Summary:        OpenGL target for ClanLib
109 Summary(pl):    Obs³uga OpenGL dla ClanLib
110 Group:          Development/Libraries
111 Requires:       %{name} = %{version}
112 Requires:       OpenGL
113
114 %description OpenGL
115 This is the OpenGL target for ClanLib.
116
117 %description OpenGL -l pl
118 Obs³uga OpenGL dla ClanLiba.
119
120 %package GGI
121 Summary:        GGI target for ClanLib
122 Summary(pl):    Obs³uga GGI dla ClanLib
123 Group:          Development/Libraries
124 Requires:       %{name} = %{version}
125
126 %description GGI
127 This is the GGI target for ClanLib.
128
129 %description GGI -l pl
130 Obs³uga GGI dla ClanLiba.
131
132 %package MikMod
133 Summary:        MikMod module for ClanLib
134 Summary(pl):    Modu³ Mikmod dla ClanLib
135 Group:          Development/Libraries
136 Requires:       %{name} = %{version}
137
138 %description MikMod
139 MikMod module for ClanLib.
140
141 %description MikMod -l pl
142 Modu³ Mikmod dla ClanLiba.
143
144 %package Vorbis
145 Summary:        Vorbis module for ClanLib
146 Summary(pl):    Modu³ Vorbis dla ClanLib
147 Group:          Development/Libraries
148 Requires:       %{name} = %{version}
149
150 %description Vorbis
151 Vorbis module for ClanLib.
152
153 %description Vorbis -l pl
154 Modu³ Vorbis dla ClanLiba.
155
156 #%package TTF
157 #Summary:       TTF module for ClanLib
158 #Summary(pl):   Modu³ TTF dla ClanLib
159 #Group:         Development/Libraries
160 #Requires:      %{name} = %{version}
161
162 #%description TTF
163 #TTF module for ClanLib.
164
165 #%description TTF -l pl
166 #Modu³ TTF dla ClanLiba.
167
168 %package static
169 Summary:        ClanLib static libraries
170 Summary(pl):    Statyczne biblioteki ClanLib
171 Group:          Development/Libraries
172 Requires:       %{name}-devel = %{version}
173
174 %description static
175 This package contains static versions of ClanLib libraries.
176
177 %description static -l pl
178 Ten pakiet zawiera statyczne wersje bibliotek ClanLib.
179
180 %prep
181 %setup -q
182 %patch0 -p1
183
184 %build
185 # note: rtti is needed --- ClanLib uses exceptions!
186 rm -f missing
187 %{__libtoolize}
188 %{__aclocal}
189 %{__automake}
190 %{__autoconf}
191 %configure \
192         --enable-static \
193         --enable-shared \
194         --%{?debug:en}%{!?debug:dis}able-debug \
195 %ifarch %{ix86}
196         --enable-asm386 \
197 %endif
198         --enable-clansound \
199         --enable-dyn \
200         --enable-fbdev \
201         --enable-gui \
202         --enable-jpeg \
203         --enable-mikmod \
204         --enable-network \
205         --enable-opengl \
206         --enable-png \
207         --enable-smalljpeg \
208         --enable-ttf \
209         --enable-vidmode \
210         --enable-vorbis \
211         --enable-x11 \
212         --disable-lua \
213         --disable-directfb
214 # lua is broken, DirectFB too fresh?
215
216 # not functional right now
217 # in fact - non existenz in actual configure...
218 #       --enable-mpeg
219
220 %{__make}
221
222 #%{__make} docs  doesn't work
223 cd Documentation
224 %{__autoconf}
225 cp -f Makefile Makefile.tmp
226 %configure
227 mv -f Makefile.tmp Makefile
228 Utilities/webbuilder.pl documentation.theme index.xml
229 Utilities/webbuilder.pl documentation.theme Tutorial/index.xml
230 # tictactoe.zip contains Win32 executable
231 rm -f Tutorial/index.xml Tutorial/TicTacToe/{.cvsignore,tictactoe.zip}
232 %{__make} -C Overview
233 %{__make} -C Reference
234
235 %install
236 rm -rf $RPM_BUILD_ROOT
237
238 %{__make} install \
239         DESTDIR=$RPM_BUILD_ROOT 
240
241 #%{__make} docs_install \
242 #       MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
243 #       HTML_PREFIX="`pwd`/html"
244 %{__make} install -C Documentation/Overview \
245         HTML_PREFIX="`pwd`/html"
246 %{__make} html_install -C Documentation/Reference \
247         HTML_PREFIX="`pwd`/html"
248 cp -rf Documentation/index.html Documentation/Tutorial html
249
250 # missing from make install
251 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_aclocaldir}}
252 install Setup/Unix/clanlib-config $RPM_BUILD_ROOT%{_bindir}
253 install Documentation/clanlib-config.1 $RPM_BUILD_ROOT%{_mandir}/man1
254 install Setup/Unix/clanlib.m4 $RPM_BUILD_ROOT%{_aclocaldir}
255
256 %clean
257 rm -rf $RPM_BUILD_ROOT
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 %files
275 %defattr(644,root,root,755)
276 %doc BUGS CREDITS NEWS README README.gui 
277 %attr(755,root,root) %{_libdir}/libclanApp.so.*.*
278 %attr(755,root,root) %{_libdir}/libclanCore.so.*.*
279 %attr(755,root,root) %{_libdir}/libclanDisplay.so.*.*
280 %attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
281 #%attr(755,root,root) %{_libdir}/libclan*JPEG.so.*.*
282 %attr(755,root,root) %{_libdir}/libclanNetwork.so.*.*
283 #%attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
284 #%attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
285 %attr(755,root,root) %{_libdir}/libclanGUIStyleBoring.so.*.*
286 %attr(755,root,root) %{_libdir}/libclanGUIStyleSilver.so.*.*
287 %attr(755,root,root) %{_libdir}/libclanSignals.so.*.*
288 %attr(755,root,root) %{_libdir}/libclanSound.so.*.*
289
290 %files OpenGL
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{_libdir}/libclanGL.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 %attr(755,root,root) %{_bindir}/clanlib-config
309 %attr(755,root,root) %{_libdir}/*.so
310 %{_libdir}/*.la
311 %{_includedir}/ClanLib
312 %{_aclocaldir}/*.m4
313 %{_mandir}/man1/clanlib-config.1*
314
315 %files doc
316 %defattr(644,root,root,755)
317 %doc README.upgrade html
318
319 %files static
320 %defattr(644,root,root,755)
321 %{_libdir}/lib*.a
This page took 0.730164 seconds and 4 git commands to generate.