2 # - check what is happening with the documentation - possible cause: just
5 # Warning: 0.7.2 is a developement version, but considered as stable as it is:/
6 # Maybe switch to 0.6.5 ?
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
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
36 Requires: Hermes >= 1.3.1
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _noautoreqdep libGL.so.1 libGLU.so.1
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.
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.
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).
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
73 This is the development add-on package that includes the header files
74 needed to compile new ClanLib applications.
76 %description devel -l pl
77 Programistyczne dodatki do ClanLiba, zawieraj± pliki nag³ówkowe
78 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
80 %description devel -l pt_BR
81 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
85 Summary: ClanLib reference documentation for programmers
86 Summary(pl): Dokumentacja programisty do biblioteki ClanLib
90 ClanLib reference documentation for programmers.
92 %description doc -l pl
93 Dokumentacja programisty do biblioteki ClanLib
96 Summary: svgalib target for ClanLib
97 Summary(pl): Obs³uga svgalib dla ClanLib
98 Group: Development/Libraries
99 Requires: %{name} = %{version}
102 This is the svgalib target for ClanLib.
104 %description svgalib -l pl
105 Obs³uga svgalib dla ClanLiba.
108 Summary: OpenGL target for ClanLib
109 Summary(pl): Obs³uga OpenGL dla ClanLib
110 Group: Development/Libraries
111 Requires: %{name} = %{version}
115 This is the OpenGL target for ClanLib.
117 %description OpenGL -l pl
118 Obs³uga OpenGL dla ClanLiba.
121 Summary: GGI target for ClanLib
122 Summary(pl): Obs³uga GGI dla ClanLib
123 Group: Development/Libraries
124 Requires: %{name} = %{version}
127 This is the GGI target for ClanLib.
129 %description GGI -l pl
130 Obs³uga GGI dla ClanLiba.
133 Summary: MikMod module for ClanLib
134 Summary(pl): Modu³ Mikmod dla ClanLib
135 Group: Development/Libraries
136 Requires: %{name} = %{version}
139 MikMod module for ClanLib.
141 %description MikMod -l pl
142 Modu³ Mikmod dla ClanLiba.
145 Summary: Vorbis module for ClanLib
146 Summary(pl): Modu³ Vorbis dla ClanLib
147 Group: Development/Libraries
148 Requires: %{name} = %{version}
151 Vorbis module for ClanLib.
153 %description Vorbis -l pl
154 Modu³ Vorbis dla ClanLiba.
157 #Summary: TTF module for ClanLib
158 #Summary(pl): Modu³ TTF dla ClanLib
159 #Group: Development/Libraries
160 #Requires: %{name} = %{version}
163 #TTF module for ClanLib.
165 #%description TTF -l pl
166 #Modu³ TTF dla ClanLiba.
169 Summary: ClanLib static libraries
170 Summary(pl): Statyczne biblioteki ClanLib
171 Group: Development/Libraries
172 Requires: %{name}-devel = %{version}
175 This package contains static versions of ClanLib libraries.
177 %description static -l pl
178 Ten pakiet zawiera statyczne wersje bibliotek ClanLib.
185 # note: rtti is needed --- ClanLib uses exceptions!
194 --%{?debug:en}%{!?debug:dis}able-debug \
214 # lua is broken, DirectFB too fresh?
216 # not functional right now
217 # in fact - non existenz in actual configure...
222 #%{__make} docs doesn't work
225 cp -f Makefile Makefile.tmp
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
236 rm -rf $RPM_BUILD_ROOT
239 DESTDIR=$RPM_BUILD_ROOT
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
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}
257 rm -rf $RPM_BUILD_ROOT
259 %post -p /sbin/ldconfig
260 %postun -p /sbin/ldconfig
262 %post OpenGL -p /sbin/ldconfig
263 %postun OpenGL -p /sbin/ldconfig
265 %post MikMod -p /sbin/ldconfig
266 %postun MikMod -p /sbin/ldconfig
268 #%post TTF -p /sbin/ldconfig
269 #%postun TTF -p /sbin/ldconfig
271 %post Vorbis -p /sbin/ldconfig
272 %postun Vorbis -p /sbin/ldconfig
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.*.*
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{_libdir}/libclanGL.so.*.*
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
303 #%defattr(644,root,root,755)
304 #%attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_bindir}/clanlib-config
309 %attr(755,root,root) %{_libdir}/*.so
311 %{_includedir}/ClanLib
313 %{_mandir}/man1/clanlib-config.1*
316 %defattr(644,root,root,755)
317 %doc README.upgrade html
320 %defattr(644,root,root,755)