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 Patch0: %{name}-OPT.patch
18 URL: http://www.clanlib.org/
19 # doesn't build with 0.9.12
20 #BuildRequires: DirectFB-devel = 0.9.9
21 BuildRequires: Hermes-devel >= 1.3.1
22 BuildRequires: OpenGL-devel
23 BuildRequires: XFree86-devel
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: freetype-devel >= 2.0
27 BuildRequires: libjpeg-devel
28 BuildRequires: libmikmod-devel
29 BuildRequires: libpng-devel >= 1.0.8
30 BuildRequires: libstdc++-devel
31 BuildRequires: libvorbis-devel >= 1:1.0
32 # If broken - don't require it....
33 #BuildRequires: lua-devel
35 Requires: Hermes >= 1.3.1
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _noautoreqdep libGL.so.1 libGLU.so.1
42 The ClanLib SDK is designed to provide an platform independent game
43 SDK using a lot cleaner (and object oriented) interface than the
44 traditional way it is done in DirectX, SDL and such. The goals is to
45 avoid game developers constantly reinventing the wheel by providing
46 smarter ways to eg. load surfaces.
49 ClanLib SDK jest projektowany jako niezale¿ny od platformy SDK dla
50 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
51 przejrzystszy ni¿ DirectX, SDL i inne.
54 A Clanlib é uma biblioteca de jogos multi-plataforma desenhada para
55 facilitar o trabalho dos desenvolvedores. A idéia principal é fornecer
56 uma interface comum para os problemas clássicos dos jogos (carregar
57 gráficos por exemplo).
60 Summary: ClanLib development package
61 Summary(pl): Pakiet programistyczny dla ClanLib
62 Summary(pt_BR): Arquivos para desenvolvimento usando a Clanlib
63 Group: Development/Libraries
64 Requires: %{name} = %{version}
65 Requires: %{name}-OpenGL = %{version}
66 Requires: %{name}-MikMod = %{version}
67 #Requires: %{name}-TTF = %{version}
68 Requires: %{name}-Vorbis = %{version}
69 Requires: Hermes-devel
72 This is the development add-on package that includes the header files
73 needed to compile new ClanLib applications.
75 %description devel -l pl
76 Programistyczne dodatki do ClanLiba, zawieraj± pliki nag³ówkowe
77 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
79 %description devel -l pt_BR
80 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
84 Summary: ClanLib reference documentation for programmers
85 Summary(pl): Dokumentacja programisty do biblioteki ClanLib
89 ClanLib reference documentation for programmers.
91 %description doc -l pl
92 Dokumentacja programisty do biblioteki ClanLib
95 Summary: svgalib target for ClanLib
96 Summary(pl): Obs³uga svgalib dla ClanLib
97 Group: Development/Libraries
98 Requires: %{name} = %{version}
101 This is the svgalib target for ClanLib.
103 %description svgalib -l pl
104 Obs³uga svgalib dla ClanLiba.
107 Summary: OpenGL target for ClanLib
108 Summary(pl): Obs³uga OpenGL dla ClanLib
109 Group: Development/Libraries
110 Requires: %{name} = %{version}
114 This is the OpenGL target for ClanLib.
116 %description OpenGL -l pl
117 Obs³uga OpenGL dla ClanLiba.
120 Summary: GGI target for ClanLib
121 Summary(pl): Obs³uga GGI dla ClanLib
122 Group: Development/Libraries
123 Requires: %{name} = %{version}
126 This is the GGI target for ClanLib.
128 %description GGI -l pl
129 Obs³uga GGI dla ClanLiba.
132 Summary: MikMod module for ClanLib
133 Summary(pl): Modu³ Mikmod dla ClanLib
134 Group: Development/Libraries
135 Requires: %{name} = %{version}
138 MikMod module for ClanLib.
140 %description MikMod -l pl
141 Modu³ Mikmod dla ClanLiba.
144 Summary: Vorbis module for ClanLib
145 Summary(pl): Modu³ Vorbis dla ClanLib
146 Group: Development/Libraries
147 Requires: %{name} = %{version}
150 Vorbis module for ClanLib.
152 %description Vorbis -l pl
153 Modu³ Vorbis dla ClanLiba.
156 #Summary: TTF module for ClanLib
157 #Summary(pl): Modu³ TTF dla ClanLib
158 #Group: Development/Libraries
159 #Requires: %{name} = %{version}
162 #TTF module for ClanLib.
164 #%description TTF -l pl
165 #Modu³ TTF dla ClanLiba.
168 Summary: ClanLib static libraries
169 Summary(pl): Statyczne biblioteki ClanLib
170 Group: Development/Libraries
171 Requires: %{name}-devel = %{version}
174 This package contains static versions of ClanLib libraries.
176 %description static -l pl
177 Ten pakiet zawiera statyczne wersje bibliotek ClanLib.
184 # note: rtti is needed --- ClanLib uses exceptions!
193 --%{?debug:en}%{!?debug:dis}able-debug \
213 # lua is broken, DirectFB too fresh?
215 # not functional right now
216 # in fact - non existenz in actual configure...
221 #%{__make} docs doesn't work
224 cp -f Makefile Makefile.tmp
226 mv -f Makefile.tmp Makefile
227 Utilities/webbuilder.pl documentation.theme index.xml
228 Utilities/webbuilder.pl documentation.theme Tutorial/index.xml
229 # tictactoe.zip contains Win32 executable
230 rm -f Tutorial/index.xml Tutorial/TicTacToe/{.cvsignore,tictactoe.zip}
231 %{__make} -C Overview
232 %{__make} -C Reference
235 rm -rf $RPM_BUILD_ROOT
238 DESTDIR=$RPM_BUILD_ROOT
240 #%{__make} docs_install \
241 # MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
242 # HTML_PREFIX="`pwd`/html"
243 %{__make} install -C Documentation/Overview \
244 HTML_PREFIX="`pwd`/html"
245 %{__make} html_install -C Documentation/Reference \
246 HTML_PREFIX="`pwd`/html"
247 cp -rf Documentation/index.html Documentation/Tutorial html
249 # missing from make install
250 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_aclocaldir}}
251 install Setup/Unix/clanlib-config $RPM_BUILD_ROOT%{_bindir}
252 install Documentation/clanlib-config.1 $RPM_BUILD_ROOT%{_mandir}/man1
253 install Setup/Unix/clanlib.m4 $RPM_BUILD_ROOT%{_aclocaldir}
256 rm -rf $RPM_BUILD_ROOT
258 %post -p /sbin/ldconfig
259 %postun -p /sbin/ldconfig
261 %post OpenGL -p /sbin/ldconfig
262 %postun OpenGL -p /sbin/ldconfig
264 %post MikMod -p /sbin/ldconfig
265 %postun MikMod -p /sbin/ldconfig
267 #%post TTF -p /sbin/ldconfig
268 #%postun TTF -p /sbin/ldconfig
270 %post Vorbis -p /sbin/ldconfig
271 %postun Vorbis -p /sbin/ldconfig
274 %defattr(644,root,root,755)
275 %doc BUGS CREDITS NEWS README README.gui
276 %attr(755,root,root) %{_libdir}/libclanApp.so.*.*
277 %attr(755,root,root) %{_libdir}/libclanCore.so.*.*
278 %attr(755,root,root) %{_libdir}/libclanDisplay.so.*.*
279 %attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
280 #%attr(755,root,root) %{_libdir}/libclan*JPEG.so.*.*
281 %attr(755,root,root) %{_libdir}/libclanNetwork.so.*.*
282 #%attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
283 #%attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
284 %attr(755,root,root) %{_libdir}/libclanGUIStyleBoring.so.*.*
285 %attr(755,root,root) %{_libdir}/libclanGUIStyleSilver.so.*.*
286 %attr(755,root,root) %{_libdir}/libclanSignals.so.*.*
287 %attr(755,root,root) %{_libdir}/libclanSound.so.*.*
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libclanGL.so.*.*
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
302 #%defattr(644,root,root,755)
303 #%attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_bindir}/clanlib-config
308 %attr(755,root,root) %{_libdir}/*.so
310 %{_includedir}/ClanLib
312 %{_mandir}/man1/clanlib-config.1*
315 %defattr(644,root,root,755)
316 %doc README.upgrade html
319 %defattr(644,root,root,755)