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