]> git.pld-linux.org Git - packages/ClanLib.git/blob - ClanLib.spec
- forgot to remove obsolete patch from spec
[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 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
34 BuildRequires:  perl
35 Requires:       Hermes >= 1.3.1
36 Requires:       OpenGL
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
40
41 %description
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.
47
48 %description -l pl
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.
52
53 %description -l pt_BR
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).
58
59 %package devel
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
70
71 %description devel
72 This is the development add-on package that includes the header files
73 needed to compile new ClanLib applications.
74
75 %description devel -l pl
76 Programistyczne dodatki do ClanLiba, zawieraj± pliki nag³ówkowe
77 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
78
79 %description devel -l pt_BR
80 Arquivos que possibilitam o desenvolvimento de aplicativos utilizando
81 a biblioteca Clanlib.
82
83 %package doc
84 Summary:        ClanLib reference documentation for programmers
85 Summary(pl):    Dokumentacja programisty do biblioteki ClanLib
86 Group:          Documentation
87
88 %description doc
89 ClanLib reference documentation for programmers.
90
91 %description doc -l pl
92 Dokumentacja programisty do biblioteki ClanLib
93
94 %package svgalib
95 Summary:        svgalib target for ClanLib
96 Summary(pl):    Obs³uga svgalib dla ClanLib
97 Group:          Development/Libraries
98 Requires:       %{name} = %{version}
99
100 %description svgalib
101 This is the svgalib target for ClanLib.
102
103 %description svgalib -l pl
104 Obs³uga svgalib dla ClanLiba.
105
106 %package OpenGL
107 Summary:        OpenGL target for ClanLib
108 Summary(pl):    Obs³uga OpenGL dla ClanLib
109 Group:          Development/Libraries
110 Requires:       %{name} = %{version}
111 Requires:       OpenGL
112
113 %description OpenGL
114 This is the OpenGL target for ClanLib.
115
116 %description OpenGL -l pl
117 Obs³uga OpenGL dla ClanLiba.
118
119 %package GGI
120 Summary:        GGI target for ClanLib
121 Summary(pl):    Obs³uga GGI dla ClanLib
122 Group:          Development/Libraries
123 Requires:       %{name} = %{version}
124
125 %description GGI
126 This is the GGI target for ClanLib.
127
128 %description GGI -l pl
129 Obs³uga GGI dla ClanLiba.
130
131 %package MikMod
132 Summary:        MikMod module for ClanLib
133 Summary(pl):    Modu³ Mikmod dla ClanLib
134 Group:          Development/Libraries
135 Requires:       %{name} = %{version}
136
137 %description MikMod
138 MikMod module for ClanLib.
139
140 %description MikMod -l pl
141 Modu³ Mikmod dla ClanLiba.
142
143 %package Vorbis
144 Summary:        Vorbis module for ClanLib
145 Summary(pl):    Modu³ Vorbis dla ClanLib
146 Group:          Development/Libraries
147 Requires:       %{name} = %{version}
148
149 %description Vorbis
150 Vorbis module for ClanLib.
151
152 %description Vorbis -l pl
153 Modu³ Vorbis dla ClanLiba.
154
155 #%package TTF
156 #Summary:       TTF module for ClanLib
157 #Summary(pl):   Modu³ TTF dla ClanLib
158 #Group:         Development/Libraries
159 #Requires:      %{name} = %{version}
160
161 #%description TTF
162 #TTF module for ClanLib.
163
164 #%description TTF -l pl
165 #Modu³ TTF dla ClanLiba.
166
167 %package static
168 Summary:        ClanLib static libraries
169 Summary(pl):    Statyczne biblioteki ClanLib
170 Group:          Development/Libraries
171 Requires:       %{name}-devel = %{version}
172
173 %description static
174 This package contains static versions of ClanLib libraries.
175
176 %description static -l pl
177 Ten pakiet zawiera statyczne wersje bibliotek ClanLib.
178
179 %prep
180 %setup -q
181 %patch0 -p1
182
183 %build
184 # note: rtti is needed --- ClanLib uses exceptions!
185 rm -f missing
186 %{__libtoolize}
187 %{__aclocal}
188 %{__automake}
189 %{__autoconf}
190 %configure \
191         --enable-static \
192         --enable-shared \
193         --%{?debug:en}%{!?debug:dis}able-debug \
194 %ifarch %{ix86}
195         --enable-asm386 \
196 %endif
197         --enable-clansound \
198         --enable-dyn \
199         --enable-fbdev \
200         --enable-gui \
201         --enable-jpeg \
202         --enable-mikmod \
203         --enable-network \
204         --enable-opengl \
205         --enable-png \
206         --enable-smalljpeg \
207         --enable-ttf \
208         --enable-vidmode \
209         --enable-vorbis \
210         --enable-x11 \
211         --disable-lua \
212         --disable-directfb
213 # lua is broken, DirectFB too fresh?
214
215 # not functional right now
216 # in fact - non existenz in actual configure...
217 #       --enable-mpeg
218
219 %{__make}
220
221 #%{__make} docs  doesn't work
222 cd Documentation
223 %{__autoconf}
224 cp -f Makefile Makefile.tmp
225 %configure
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
233
234 %install
235 rm -rf $RPM_BUILD_ROOT
236
237 %{__make} install \
238         DESTDIR=$RPM_BUILD_ROOT 
239
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
248
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}
254
255 %clean
256 rm -rf $RPM_BUILD_ROOT
257
258 %post   -p /sbin/ldconfig
259 %postun -p /sbin/ldconfig
260
261 %post   OpenGL -p /sbin/ldconfig
262 %postun OpenGL -p /sbin/ldconfig
263
264 %post   MikMod -p /sbin/ldconfig
265 %postun MikMod -p /sbin/ldconfig
266
267 #%post   TTF -p /sbin/ldconfig
268 #%postun TTF -p /sbin/ldconfig
269
270 %post   Vorbis -p /sbin/ldconfig
271 %postun Vorbis -p /sbin/ldconfig
272
273 %files
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.*.*
288
289 %files OpenGL
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libclanGL.so.*.*
292
293 %files MikMod
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
296
297 %files Vorbis
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
300
301 #%files TTF
302 #%defattr(644,root,root,755)
303 #%attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
304
305 %files devel
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_bindir}/clanlib-config
308 %attr(755,root,root) %{_libdir}/*.so
309 %{_libdir}/*.la
310 %{_includedir}/ClanLib
311 %{_aclocaldir}/*.m4
312 %{_mandir}/man1/clanlib-config.1*
313
314 %files doc
315 %defattr(644,root,root,755)
316 %doc README.upgrade html
317
318 %files static
319 %defattr(644,root,root,755)
320 %{_libdir}/lib*.a
This page took 0.074878 seconds and 3 git commands to generate.