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