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