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