]> git.pld-linux.org Git - packages/ClanLib.git/blob - ClanLib.spec
- build fix
[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 rm -f missing
171 %{__aclocal}
172 %{__automake}
173 %{__autoconf}
174 %configure \
175         --enable-static \
176         --enable-shared \
177         --%{?debug:en}%{!?debug:dis}able-debug \
178 %ifarch %{ix86}
179         --enable-asm386 \
180 %endif
181         --enable-clansound \
182         --enable-dyn \
183         --enable-fbdev \
184         --enable-gui \
185         --enable-jpeg \
186         --enable-mikmod \
187         --enable-network \
188         --enable-opengl \
189         --enable-png \
190         --enable-smalljpeg \
191         --enable-ttf \
192         --enable-vidmode \
193         --enable-vorbis \
194         --enable-x11 \
195         --disable-lua \
196         --disable-directfb
197 # lua is broken, DirectFB too fresh?
198
199 # not functional right now
200 # in fact - non existenz in actual configure...
201 #       --enable-mpeg
202
203
204 %{__make}
205 %{__make} docs
206
207 %install
208 rm -rf $RPM_BUILD_ROOT
209 %{__make} install \
210         LIB_PREFIX="$RPM_BUILD_ROOT%{_libdir}" \
211         TARGET_PREFIX="$RPM_BUILD_ROOT%{_libdir}/ClanLib" \
212         BIN_PREFIX="$RPM_BUILD_ROOT%{_bindir}" \
213         INC_PREFIX="$RPM_BUILD_ROOT%{_includedir}"
214
215 %{__make} docs_install \
216         MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
217         HTML_PREFIX="`pwd`/html"
218
219 %clean
220 rm -rf $RPM_BUILD_ROOT
221
222 %post   -p /sbin/ldconfig
223 %postun -p /sbin/ldconfig
224
225 %post   OpenGL -p /sbin/ldconfig
226 %postun OpenGL -p /sbin/ldconfig
227
228 %post   MikMod -p /sbin/ldconfig
229 %postun MikMod -p /sbin/ldconfig
230
231 %post   TTF -p /sbin/ldconfig
232 %postun TTF -p /sbin/ldconfig
233
234 %post   Vorbis -p /sbin/ldconfig
235 %postun Vorbis -p /sbin/ldconfig
236
237 %files
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/libclanApp.so.*.*
240 %attr(755,root,root) %{_libdir}/libclanCore.so.*.*
241 %attr(755,root,root) %{_libdir}/libclanDisplay.so.*.*
242 %attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
243 %attr(755,root,root) %{_libdir}/libclan*JPEG.so.*.*
244 %attr(755,root,root) %{_libdir}/libclanNetwork.so.*.*
245 #%attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
246 %attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
247 %attr(755,root,root) %{_libdir}/libclanSound.so.*.*
248
249 %files OpenGL
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_libdir}/libclanGL.so.*.*
252
253 %files MikMod
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
256
257 %files Vorbis
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
260
261 %files TTF
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
264
265 %files devel
266 %defattr(644,root,root,755)
267 %doc README CREDITS html
268 %attr(755,root,root) %{_libdir}/*.so
269 %attr(755,root,root) %{_bindir}/*
270 %{_includedir}/ClanLib
271
272 %files static
273 %defattr(644,root,root,755)
274 %{_libdir}/lib*.a
This page took 0.073735 seconds and 4 git commands to generate.