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