]> git.pld-linux.org Git - packages/ClanLib.git/blob - ClanLib.spec
updated to 0.5.0
[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}-Magick = %{version}
55
56 %description devel
57 This is the development add-on package that includes the header files
58 needed to compile new ClanLib applications.
59
60 %description -l pl devel
61 Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
62 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
63
64 %package svgalib
65 Summary:        svgalib target for ClanLib
66 Summary(pl):    obs³uga svgalib dla ClanLib
67 Group:          Development/Libraries
68 Group(de):      Entwicklung/Libraries
69 Group(fr):      Development/Librairies
70 Group(pl):      Programowanie/Biblioteki
71 Requires:       %{name} = %{version}
72
73 %description svgalib
74 This is the svgalib target for ClanLib.
75
76 %description -l pl svgalib
77 Obs³uga svgalib dla ClanLib-a.
78
79 %package OpenGL
80 Summary:        OpenGL target for ClanLib
81 Summary(pl):    obs³uga OpenGL dla ClanLib
82 Group:          Development/Libraries
83 Group(de):      Entwicklung/Libraries
84 Group(fr):      Development/Librairies
85 Group(pl):      Programowanie/Biblioteki
86 Requires:       %{name} = %{version}
87
88 %description OpenGL
89 This is the OpenGL target for ClanLib.
90
91 %description -l pl OpenGL
92 Obs³uga OpenGL dla ClanLib-a.
93
94 %package GGI
95 Summary:        GGI target for ClanLib
96 Summary(pl):    obs³uga GGI dla ClanLib
97 Group:          Development/Libraries
98 Group(de):      Entwicklung/Libraries
99 Group(fr):      Development/Librairies
100 Group(pl):      Programowanie/Biblioteki
101 Requires:       %{name} = %{version}
102
103 %description GGI
104 This is the GGI target for ClanLib.
105
106 %description -l pl GGI
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 Group(de):      Entwicklung/Libraries
114 Group(fr):      Development/Librairies
115 Group(pl):      Programowanie/Biblioteki
116 Requires:       %{name} = %{version}
117
118 %description MikMod
119 MikMod module for ClanLib.
120
121 %description -l pl MikMod
122 Modu³ Mikmod dla ClanLib-a.
123
124 %package Vorbis
125 Summary:        Vorbis module for ClanLib
126 Summary(pl):    Modu³ Vorbis dla ClanLib
127 Group:          Development/Libraries
128 Group(de):      Entwicklung/Libraries
129 Group(fr):      Development/Librairies
130 Group(pl):      Programowanie/Biblioteki
131 Requires:       %{name} = %{version}
132
133 %description Vorbis
134 Vorbis module for ClanLib.
135
136 %description -l pl Vorbis
137 Modu³ Vorbis dla ClanLib-a.
138
139 %package TTF
140 Summary:        TTF module for ClanLib
141 Summary(pl):    Modu³ TTF dla ClanLib
142 Group:          Development/Libraries
143 Group(de):      Entwicklung/Libraries
144 Group(fr):      Development/Librairies
145 Group(pl):      Programowanie/Biblioteki
146 Requires:       %{name} = %{version}
147
148 %description TTF
149 TTF module for ClanLib.
150
151 %description -l pl TTF
152 Modu³ TTF dla ClanLib-a.
153
154 %package static
155 Summary:        ClanLib development package
156 Summary(pl):    pakiet programistyczny dla ClanLib
157 Group:          Development/Libraries
158 Group(de):      Entwicklung/Libraries
159 Group(fr):      Development/Librairies
160 Group(pl):      Programowanie/Biblioteki
161 Requires:       %{name}-devel = %{version}
162
163 %description static
164 This is the development add-on package that includes the header files
165 needed to compile new ClanLib applications.
166
167 %description -l pl static
168 Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
169 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
170
171 %prep
172 %setup -q
173 #%patch0 -p1
174
175 %build
176 ./autogen.sh
177 # note: rtti is needed --- ClanLib uses exceptions!
178 %configure \
179         --enable-static \
180         --enable-shared \
181         %{?debug:--enable-debug}%{!?debug:--disable-debug} \
182         --disable-debug \
183         --enable-x11 \
184         --enable-fbdev \
185         --enable-vidmode \
186         --enable-clansound \
187         --enable-network \
188 %ifarch %{ix86}
189         --enable-asm386 \
190 %endif
191         --enable-dyn \
192         --enable-gui \
193         --enable-vorbis \
194         --enable-mikmod \
195         --enable-png \
196         --enable-jpeg \
197         --enable-smalljpeg \
198         --enable-ttf
199
200 # not functional right now      
201 #       --enable-opengl \
202 #       --enable-mpeg
203         
204
205 %{__make}
206 %{__make} docs
207
208 %install
209 rm -rf $RPM_BUILD_ROOT
210 %{__make} install \
211         LIB_PREFIX="$RPM_BUILD_ROOT%{_libdir}" \
212         TARGET_PREFIX="$RPM_BUILD_ROOT%{_libdir}/ClanLib" \
213         BIN_PREFIX="$RPM_BUILD_ROOT%{_bindir}" \
214         INC_PREFIX="$RPM_BUILD_ROOT%{_includedir}"
215
216 %{__make} docs_install \
217         MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
218         HTML_PREFIX="`pwd`/html"
219
220 gzip -9nf README CREDITS
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 %clean
238 rm -rf $RPM_BUILD_ROOT
239
240 %files
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/libclanApp.so.*.*
243 %attr(755,root,root) %{_libdir}/libclanCore.so.*.*
244 %attr(755,root,root) %{_libdir}/libclanDisplay.so.*.*
245 %attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
246 %attr(755,root,root) %{_libdir}/libclan*JPEG.so.*.*
247 %attr(755,root,root) %{_libdir}/libclanNetwork.so.*.*
248 #%attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
249 %attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
250 %attr(755,root,root) %{_libdir}/libclanSound.so.*.*
251
252 %files OpenGL
253 %defattr(644,root,root,755)
254 #%attr(755,root,root) %{_libdir}/libclanGL.so.*.*
255 #%attr(755,root,root) %{_libdir}/ClanLib/libclan-display-glx.so*
256
257 %files MikMod
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
260
261 %files Vorbis
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/libclanVorbis.so.*.*
264
265 %files TTF
266 %defattr(755,root,root)
267 %attr(755,root,root) %{_libdir}/libclanTTF.so.*.*
268
269 %files devel
270 %defattr(644,root,root,755)
271 %doc *gz
272 %doc html
273 %attr(755,root,root) %{_libdir}/*.so
274 %attr(755,root,root) %{_bindir}/*
275 %{_includedir}/ClanLib
276
277 %files static
278 %defattr(644,root,root,755)
279 #%{_libdir}/lib*.a
This page took 0.076141 seconds and 4 git commands to generate.