]> git.pld-linux.org Git - packages/ClanLib.git/blob - ClanLib.spec
- updated Magick patch to compile with ImageMagick 5.2.9
[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.4.3
5 Release:        3
6 License:        LGPL
7 Group:          Libraries
8 Group(fr):      Librairies
9 Group(pl):      Biblioteki
10 Source0:        http://dark.x.dtu.dk/~mbn/clanlib/download/RPMS/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-OPT.patch
12 Patch1:         %{name}-Magick.patch
13 URL:            http://clanlib.org
14 Requires:       Hermes >= 1.3.1
15 BuildRequires:  libpng-devel >= 1.0.8
16 BuildRequires:  Hermes-devel >= 1.3.1
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  XFree86-devel
19 BuildRequires:  svgalib-devel
20 BuildRequires:  OpenGL-devel
21 BuildRequires:  ImageMagick-devel >= 5.2.9
22 BuildRequires:  libmikmod-devel
23 BuildRequires:  perl
24 BuildRequires:  libggi-devel
25 BuildRequires:  libgii-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 The ClanLib SDK is designed to provide an platform independent game
30 SDK using a lot cleaner (and object oriented) interface than the
31 traditional way it is done in DirectX, SDL and such. The goals is to
32 avoid game developers constantly reinventing the wheel by providing
33 smarter ways to eg. load surfaces.
34
35 %description -l pl
36 ClanLib SDK jest projektowany jako niezale¿ny od platformy SDK dla
37 gier. Stosuje prosty (i zorientowany obiektowo) interfejs,
38 przejrzystszy ni¿ DirectX, SDL i inne.
39
40 %package devel
41 Summary:        ClanLib development package
42 Summary(pl):    pakiet programistyczny dla ClanLib
43 Group:          Development/Libraries
44 Group(fr):      Development/Librairies
45 Group(pl):      Programowanie/Biblioteki
46 Requires:       %{name} = %{version}
47 Requires:       %{name}-OpenGL = %{version}
48 Requires:       %{name}-MikMod = %{version}
49 Requires:       %{name}-Magick = %{version}
50
51 %description devel
52 This is the development add-on package that includes the header files
53 needed to compile new ClanLib applications.
54
55 %description -l pl devel
56 Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
57 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
58
59 %package svgalib
60 Summary:        svgalib target for ClanLib
61 Summary(pl):    obs³uga svgalib dla ClanLib
62 Group:          Development/Libraries
63 Group(fr):      Development/Librairies
64 Group(pl):      Programowanie/Biblioteki
65 Requires:       %{name} = %{version}
66
67 %description svgalib
68 This is the svgalib target for ClanLib.
69
70 %description -l pl svgalib
71 Obs³uga svgalib dla ClanLib-a.
72
73 %package OpenGL
74 Summary:        OpenGL target for ClanLib
75 Summary(pl):    obs³uga OpenGL dla ClanLib
76 Group:          Development/Libraries
77 Group(fr):      Development/Librairies
78 Group(pl):      Programowanie/Biblioteki
79 Requires:       %{name} = %{version}
80
81 %description OpenGL
82 This is the OpenGL target for ClanLib.
83
84 %description -l pl OpenGL
85 Obs³uga OpenGL dla ClanLib-a.
86
87 %package GGI
88 Summary:        GGI target for ClanLib
89 Summary(pl):    obs³uga GGI dla ClanLib
90 Group:          Development/Libraries
91 Group(fr):      Development/Librairies
92 Group(pl):      Programowanie/Biblioteki
93 Requires:       %{name} = %{version}
94
95 %description GGI
96 This is the GGI target for ClanLib.
97
98 %description -l pl GGI
99 Obs³uga OpenGL dla ClanLib-a.
100
101 %package X11
102 Summary:        X11 target for ClanLib
103 Summary(pl):    obs³uga X11 dla ClanLib
104 Group:          Development/Libraries
105 Group(fr):      Development/Librairies
106 Group(pl):      Programowanie/Biblioteki
107 Requires:       %{name} = %{version}
108
109 %description X11
110 This is the X11 target for ClanLib.
111
112 %description -l pl X11
113 Obs³uga X11 dla ClanLib-a.
114
115 %package Magick
116 Summary:        ImageMagick module for ClanLib
117 Summary(pl):    Modu³ ImageMagick dla ClanLib
118 Group:          Development/Libraries
119 Group(fr):      Development/Librairies
120 Group(pl):      Programowanie/Biblioteki
121 Requires:       %{name} = %{version}
122
123 %description Magick
124 This is the ImageMagic add-on package for ClanLib. It provides support
125 to most known graphics file-formats.
126
127 %description -l pl Magick
128 Pozwala na obs³ugê praktycznie dowolnych formatów plików graficznych
129 przez aplikacje ClanLib poprzez biblioteki ImageMagic-a.
130
131 %package MikMod
132 Summary:        MikMod module for ClanLib
133 Summary(pl):    Modu³ Mikmod dla ClanLib
134 Group:          Development/Libraries
135 Group(fr):      Development/Librairies
136 Group(pl):      Programowanie/Biblioteki
137 Requires:       %{name} = %{version}
138
139 %description MikMod
140 MikMod module for ClanLib.
141
142 %description -l pl MikMod
143 Modu³ Mikmod dla ClanLib-a.
144
145 %package static
146 Summary:        ClanLib development package
147 Summary(pl):    pakiet programistyczny dla ClanLib
148 Group:          Development/Libraries
149 Group(fr):      Development/Librairies
150 Group(pl):      Programowanie/Biblioteki
151 Requires:       %{name}-devel = %{version}
152
153 %description static
154 This is the development add-on package that includes the header files
155 needed to compile new ClanLib applications.
156
157 %description -l pl static
158 Programistyczne dodatki do ClanLib-a, zawieraj± pliki nag³ówkowe
159 potrzebne do kompilacji programów korzystaj±cych z ClanLib.
160
161 %prep
162 %setup -q
163 %patch0 -p1
164 %patch1 -p1
165
166 %build
167 ./autogen.sh
168 CFLAGS="$RPM_OPT_FLAGS"
169 CXXFLAGS="$RPM_OPT_FLAGS" # note: rtti is needed --- ClanLib uses exceptions!
170 LDFLAGS="-s"
171 export CFLAGS CXXFLAGS LDFLAGS
172 %configure \
173         --enable-static \
174         --enable-shared \
175         --enable-x11 \
176         --enable-fbdev \
177         --enable-ggi \
178         --enable-opengl \
179         --enable-svgalib \
180         --disable-ptc \
181         --enable-vidmode \
182         --enable-clansound \
183         --enable-network \
184         --enable-dyn
185 %{__make}
186 %{__make} clanGL
187 %{__make} clanMikMod
188 %{__make} clanMagick
189 %{__make} clanPNG
190 %{__make} clanMPEG
191 %{__make} clanGUI
192 %{__make} docs
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196 %{__make}       install \
197         LIB_PREFIX="$RPM_BUILD_ROOT%{_libdir}" \
198         TARGET_PREFIX="$RPM_BUILD_ROOT%{_libdir}/ClanLib" \
199         BIN_PREFIX="$RPM_BUILD_ROOT%{_bindir}" \
200         INC_PREFIX="$RPM_BUILD_ROOT%{_includedir}"
201
202 %{__make} docs_install \
203         MAN_PREFIX="$RPM_BUILD_ROOT%{_mandir}" \
204         HTML_PREFIX="`pwd`/html"
205
206 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so*
207 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/ClanLib/lib*.so*
208
209 gzip -9nf README CREDITS FAQ $RPM_BUILD_ROOT%{_mandir}/man?/*
210
211 %post   -p /sbin/ldconfig
212 %postun -p /sbin/ldconfig
213
214 %post   OpenGL -p /sbin/ldconfig
215 %postun OpenGL -p /sbin/ldconfig
216
217 %post   MikMod -p /sbin/ldconfig
218 %postun MikMod -p /sbin/ldconfig
219
220 %post   Magick -p /sbin/ldconfig
221 %postun Magick -p /sbin/ldconfig
222
223 %clean
224 rm -rf $RPM_BUILD_ROOT
225
226 %files
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/libclanCore.so.*.*
229 %attr(755,root,root) %{_libdir}/libclanGUI.so.*.*
230 %attr(755,root,root) %{_libdir}/libclanMPEG.so.*.*
231 %attr(755,root,root) %{_libdir}/libclanPNG.so.*.*
232 %dir %{_libdir}/ClanLib
233 %attr(755,root,root) %{_libdir}/ClanLib/libclan-display-fbdev.so*
234 %attr(755,root,root) %{_libdir}/ClanLib/libclan-input-tty.so*
235 %attr(755,root,root) %{_libdir}/ClanLib/libclan-network.so*
236 %attr(755,root,root) %{_libdir}/ClanLib/libclan-sound.so*
237
238 %files X11
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/ClanLib/libclan-display-x11.so*
241
242 %files GGI
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_libdir}/ClanLib/libclan-display-ggi.so*
245
246 %files OpenGL
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libclanGL.so.*.*
249 %attr(755,root,root) %{_libdir}/ClanLib/libclan-display-glx.so*
250
251 %files svgalib
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/ClanLib/libclan-display-svgalib.so*
254
255 %files Magick
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/libclanMagick.so.*.*
258
259 %files MikMod
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_libdir}/libclanMikMod.so.*.*
262
263 %files devel
264 %defattr(644,root,root,755)
265 %doc *gz
266 %doc html
267 %{_mandir}/man?/*
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.754513 seconds and 4 git commands to generate.