]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without xercesc # build XercesParser | |
4 | %bcond_without ogre # build without Ogre renderer | |
5 | %bcond_without opengl # build without OpenGL renderer | |
6 | %bcond_with directb # unsupported by upstream | |
7 | %bcond_with samples # build samples | |
8 | # | |
9 | Summary: CEGUI - a free library providing windowing and widgets | |
10 | Summary(pl.UTF-8): CEGUI - wolnodostępna biblioteka zapewniającą okienka i widgety | |
11 | Name: CEGUI | |
12 | Version: 0.8.7 | |
13 | Release: 7 | |
14 | License: LGPL v2.1+ (with MIT parts) | |
15 | Group: Libraries | |
16 | Source0: http://downloads.sourceforge.net/crayzedsgui/cegui-%{version}.tar.bz2 | |
17 | # Source0-md5: cebcc95e205b9ad353db0d65b9b2d505 | |
18 | Source1: http://downloads.sourceforge.net/crayzedsgui/cegui-docs.%{version}.zip | |
19 | # Source1-md5: 5f3b19f82cf1e11b4406560b8e809f20 | |
20 | Patch0: pthread.patch | |
21 | Patch1: %{name}-glfw3.patch | |
22 | Patch3: x32.patch | |
23 | Patch4: cxx11.patch | |
24 | Patch5: python2.patch | |
25 | Patch6: ogre1.12.patch | |
26 | URL: http://www.cegui.org.uk/ | |
27 | BuildRequires: DevIL-devel | |
28 | %{?with_directfb:BuildRequires: DirectFB-devel >= 1.2.0} | |
29 | BuildRequires: FreeImage-devel | |
30 | BuildRequires: GLM | |
31 | BuildRequires: OpenGL-devel | |
32 | BuildRequires: SDL2-devel | |
33 | BuildRequires: SDL2_image-devel | |
34 | BuildRequires: SILLY-devel >= 0.1.0 | |
35 | BuildRequires: boost-devel >= 1.36.0 | |
36 | BuildRequires: boost-python-devel >= 1.36.0 | |
37 | BuildRequires: cmake >= 2.8 | |
38 | BuildRequires: corona-devel | |
39 | BuildRequires: doxygen | |
40 | BuildRequires: expat-devel | |
41 | BuildRequires: fribidi-devel | |
42 | BuildRequires: freetype-devel >= 2.0 | |
43 | BuildRequires: glew-devel | |
44 | # for SampleFramework | |
45 | BuildRequires: glfw-devel | |
46 | BuildRequires: gtk+2-devel >= 2:2.4 | |
47 | BuildRequires: irrlicht-devel >= 1.4 | |
48 | BuildRequires: libstdc++-devel | |
49 | BuildRequires: libtool >= 2:1.5 | |
50 | BuildRequires: libxml2-devel >= 1:2.6 | |
51 | BuildRequires: lua51-devel >= 5.1 | |
52 | BuildRequires: minizip-devel | |
53 | %if %{with ogre} | |
54 | BuildRequires: ogre-devel >= 1.6.0 | |
55 | BuildRequires: ois-devel >= 1.0.0 | |
56 | %endif | |
57 | BuildRequires: pcre-devel >= 5.0 | |
58 | BuildRequires: pkgconfig | |
59 | BuildRequires: python-devel >= 2 | |
60 | BuildRequires: rapidxml | |
61 | BuildRequires: sed >= 4.0 | |
62 | BuildRequires: tinyxml-devel | |
63 | BuildRequires: tolua++-devel | |
64 | %{?with_xercesc:BuildRequires: xerces-c-devel} | |
65 | # for irrlicht renderer | |
66 | BuildRequires: xorg-lib-libXxf86vm-devel | |
67 | %if %{with opengl} | |
68 | BuildRequires: GLM | |
69 | BuildRequires: OpenGL-GLU-devel | |
70 | BuildRequires: glew-devel | |
71 | BuildRequires: glfw-devel | |
72 | %endif | |
73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
74 | ||
75 | %description | |
76 | CEGUI stands for Crazy Eddie's Gui System; a free library providing | |
77 | windowing and widgets for graphics APIs / engines where such | |
78 | functionality is not natively available, or severely lacking. The | |
79 | library is object orientated, written in C++, and targeted at games | |
80 | developers who should be spending their time creating great games, not | |
81 | building GUI sub-systems! | |
82 | ||
83 | %description -l pl.UTF-8 | |
84 | CEGUI oznacza Crazy Eddie's Gui System - wolnodostępną bibliotekę | |
85 | zapewniającą okienka i widgety dla graficznych API i silników tam, | |
86 | gdzie natywnie taka funkcjonalność nie jest dostępna lub ma znaczące | |
87 | braki. Biblioteka jest zorientowana obiektowo, napisana w C++ i | |
88 | skierowana dla programistów gier, którzy powinni spędzać czas na | |
89 | pisaniu świetnych gier, a nie tworzeniu podsystemów GUI! | |
90 | ||
91 | %package devel | |
92 | Summary: Development files for CEGUI | |
93 | Summary(pl.UTF-8): Pliki programistyczne dla CEGUI | |
94 | Group: Development/Libraries | |
95 | Requires: %{name} = %{version}-%{release} | |
96 | Requires: freetype-devel >= 2.0 | |
97 | Requires: libstdc++-devel | |
98 | Requires: pcre-devel >= 5.0 | |
99 | ||
100 | %description devel | |
101 | CEGUI headers. | |
102 | ||
103 | %description devel -l pl.UTF-8 | |
104 | Pliki nagłówkowe CEGUI. | |
105 | ||
106 | %package docs | |
107 | Summary: Documentation files for CEGUI | |
108 | Summary(pl.UTF-8): Pliki dokumentacji CEGUI | |
109 | Group: Documentation | |
110 | Requires: %{name} = %{version}-%{release} | |
111 | ||
112 | %description docs | |
113 | CEGUI documentation. | |
114 | ||
115 | %description docs -l pl.UTF-8 | |
116 | Dokumentacja CEGUI. | |
117 | ||
118 | %package ImageCodec-Corona | |
119 | Summary: CoronaImageCodec library for CEGUI | |
120 | Summary(pl.UTF-8): Biblioteka CoronaImageCodec dla CEGUI | |
121 | Group: Libraries | |
122 | Requires: %{name} = %{version}-%{release} | |
123 | ||
124 | %description ImageCodec-Corona | |
125 | CoronaImageCodec library for CEGUI. | |
126 | ||
127 | %description ImageCodec-Corona -l pl.UTF-8 | |
128 | Biblioteka CoronaImageCodec dla CEGUI | |
129 | ||
130 | %package ImageCodec-Corona-devel | |
131 | Summary: Header files for CEGUI CoronaImageCodec library | |
132 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI CoronaImageCodec | |
133 | Group: Development/Libraries | |
134 | Requires: %{name}-ImageCodec-Corona = %{version}-%{release} | |
135 | Requires: %{name}-devel = %{version}-%{release} | |
136 | Requires: corona-devel | |
137 | ||
138 | %description ImageCodec-Corona-devel | |
139 | Header files for CEGUI CoronaImageCodec library. | |
140 | ||
141 | %description ImageCodec-Corona-devel -l pl.UTF-8 | |
142 | Pliki nagłówkowe biblioteki CEGUI CoronaImageCodec. | |
143 | ||
144 | %package ImageCodec-DevIL | |
145 | Summary: DevILImageCodec library for CEGUI | |
146 | Summary(pl.UTF-8): Biblioteka DevILImageCodec dla CEGUI | |
147 | Group: Libraries | |
148 | Requires: %{name} = %{version}-%{release} | |
149 | ||
150 | %description ImageCodec-DevIL | |
151 | DevILImageCodec library for CEGUI. | |
152 | ||
153 | %description ImageCodec-DevIL -l pl.UTF-8 | |
154 | Biblioteka DevILImageCodec dla CEGUI | |
155 | ||
156 | %package ImageCodec-DevIL-devel | |
157 | Summary: Header files for CEGUI DevILImageCodec library | |
158 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI DevILImageCodec | |
159 | Group: Development/Libraries | |
160 | Requires: %{name}-ImageCodec-DevIL = %{version}-%{release} | |
161 | Requires: %{name}-devel = %{version}-%{release} | |
162 | Requires: DevIL-devel | |
163 | ||
164 | %description ImageCodec-DevIL-devel | |
165 | Header files for CEGUI DevILImageCodec library. | |
166 | ||
167 | %description ImageCodec-DevIL-devel -l pl.UTF-8 | |
168 | Pliki nagłówkowe biblioteki CEGUI DevILImageCodec. | |
169 | ||
170 | %package ImageCodec-FreeImage | |
171 | Summary: FreeImageImageCodec library for CEGUI | |
172 | Summary(pl.UTF-8): Biblioteka FreeImageImageCodec dla CEGUI | |
173 | Group: Libraries | |
174 | Requires: %{name} = %{version}-%{release} | |
175 | ||
176 | %description ImageCodec-FreeImage | |
177 | FreeImageImageCodec library for CEGUI. | |
178 | ||
179 | %description ImageCodec-FreeImage -l pl.UTF-8 | |
180 | Biblioteka FreeImageImageCodec dla CEGUI | |
181 | ||
182 | %package ImageCodec-FreeImage-devel | |
183 | Summary: Header files for CEGUI FreeImageImageCodec library | |
184 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI FreeImageImageCodec | |
185 | Group: Development/Libraries | |
186 | Requires: %{name}-ImageCodec-FreeImage = %{version}-%{release} | |
187 | Requires: %{name}-devel = %{version}-%{release} | |
188 | Requires: FreeImage-devel | |
189 | ||
190 | %description ImageCodec-FreeImage-devel | |
191 | Header files for CEGUI FreeImageImageCodec library. | |
192 | ||
193 | %description ImageCodec-FreeImage-devel -l pl.UTF-8 | |
194 | Pliki nagłówkowe biblioteki CEGUI FreeImageImageCodec. | |
195 | ||
196 | %package ImageCodec-SDL2 | |
197 | Summary: SDL2ImageCodec library for CEGUI | |
198 | Summary(pl.UTF-8): Biblioteka SDL2ImageCodec dla CEGUI | |
199 | Group: Libraries | |
200 | Requires: %{name} = %{version}-%{release} | |
201 | Requires: SDL2 | |
202 | ||
203 | %description ImageCodec-SDL2 | |
204 | SDL2ImageCodec library for CEGUI. | |
205 | ||
206 | %description ImageCodec-SDL2 -l pl.UTF-8 | |
207 | Biblioteka SDL2ImageCodec dla CEGUI | |
208 | ||
209 | %package ImageCodec-SDL2-devel | |
210 | Summary: Header files for CEGUI SDL2ImageCodec library | |
211 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI SDL2ImageCodec | |
212 | Group: Development/Libraries | |
213 | Requires: %{name}-ImageCodec-SDL2 = %{version}-%{release} | |
214 | Requires: %{name}-devel = %{version}-%{release} | |
215 | Requires: SDL2-devel >= 0.1.0 | |
216 | ||
217 | %description ImageCodec-SDL2-devel | |
218 | Header files for CEGUI SDL2ImageCodec library. | |
219 | ||
220 | %description ImageCodec-SDL2-devel -l pl.UTF-8 | |
221 | Pliki nagłówkowe biblioteki CEGUI SDL2ImageCodec. | |
222 | ||
223 | %package ImageCodec-SILLY | |
224 | Summary: SILLYImageCodec library for CEGUI | |
225 | Summary(pl.UTF-8): Biblioteka SILLYImageCodec dla CEGUI | |
226 | Group: Libraries | |
227 | Requires: %{name} = %{version}-%{release} | |
228 | Requires: SILLY >= 0.1.0 | |
229 | ||
230 | %description ImageCodec-SILLY | |
231 | SILLYImageCodec library for CEGUI. | |
232 | ||
233 | %description ImageCodec-SILLY -l pl.UTF-8 | |
234 | Biblioteka SILLYImageCodec dla CEGUI | |
235 | ||
236 | %package ImageCodec-SILLY-devel | |
237 | Summary: Header files for CEGUI SILLYImageCodec library | |
238 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI SILLYImageCodec | |
239 | Group: Development/Libraries | |
240 | Requires: %{name}-ImageCodec-SILLY = %{version}-%{release} | |
241 | Requires: %{name}-devel = %{version}-%{release} | |
242 | Requires: SILLY-devel >= 0.1.0 | |
243 | ||
244 | %description ImageCodec-SILLY-devel | |
245 | Header files for CEGUI SILLYImageCodec library. | |
246 | ||
247 | %description ImageCodec-SILLY-devel -l pl.UTF-8 | |
248 | Pliki nagłówkowe biblioteki CEGUI SILLYImageCodec. | |
249 | ||
250 | %package Parser-Expat | |
251 | Summary: Expat-based XML parser module | |
252 | Summary(pl.UTF-8): Moduł analizatora XML oparty na bibliotece Expat | |
253 | Group: Libraries | |
254 | Requires: %{name} = %{version}-%{release} | |
255 | ||
256 | %description Parser-Expat | |
257 | Expat-based XML parser module. | |
258 | ||
259 | %description Parser-Expat -l pl.UTF-8 | |
260 | Moduł analizatora XML oparty na bibliotece Expat. | |
261 | ||
262 | %package Parser-LibXML | |
263 | Summary: LibXML-based XML parser module | |
264 | Summary(pl.UTF-8): Moduł analizatora XML oparty na bibliotece LibXML | |
265 | Group: Libraries | |
266 | Requires: %{name} = %{version}-%{release} | |
267 | Requires: libxml2 >= 1:2.6 | |
268 | ||
269 | %description Parser-LibXML | |
270 | LibXML-based XML parser module. | |
271 | ||
272 | %description Parser-LibXML -l pl.UTF-8 | |
273 | Moduł analizatora XML oparty na bibliotece LibXML. | |
274 | ||
275 | %package Parser-RapidXML | |
276 | Summary: RapidXML-based XML parser module | |
277 | Summary(pl.UTF-8): Moduł analizatora XML oparty na bibliotece RapidXML | |
278 | Group: Libraries | |
279 | Requires: %{name} = %{version}-%{release} | |
280 | ||
281 | %description Parser-RapidXML | |
282 | RapidXML-based XML parser module. | |
283 | ||
284 | %description Parser-RapidXML -l pl.UTF-8 | |
285 | Moduł analizatora XML oparty na bibliotece RapidXML. | |
286 | ||
287 | %package Parser-TinyXML | |
288 | Summary: TinyXML-based XML parser module | |
289 | Summary(pl.UTF-8): Moduł analizatora XML oparty na bibliotece TinyXML | |
290 | Group: Libraries | |
291 | Requires: %{name} = %{version}-%{release} | |
292 | ||
293 | %description Parser-TinyXML | |
294 | TinyXML-based XML parser module. | |
295 | ||
296 | %description Parser-TinyXML -l pl.UTF-8 | |
297 | Moduł analizatora XML oparty na bibliotece TinyXML. | |
298 | ||
299 | %package Parser-Xerces | |
300 | Summary: Xerces-based XML parser module | |
301 | Summary(pl.UTF-8): Moduł analizatora XML oparty na bibliotece Xerces | |
302 | Group: Libraries | |
303 | Requires: %{name} = %{version}-%{release} | |
304 | ||
305 | %description Parser-Xerces | |
306 | Xerces-based XML parser module. | |
307 | ||
308 | %description Parser-Xerces -l pl.UTF-8 | |
309 | Moduł analizatora XML oparty na bibliotece Xerces. | |
310 | ||
311 | %package Renderer-DirectFB | |
312 | Summary: DirectFBRenderer library for CEGUI | |
313 | Summary(pl.UTF-8): Biblioteka DirectFBRenderer dla CEGUI | |
314 | Group: Libraries | |
315 | Requires: %{name} = %{version}-%{release} | |
316 | Requires: DirectFB >= 1.2.0 | |
317 | ||
318 | %description Renderer-DirectFB | |
319 | DirectFBRenderer library for CEGUI. | |
320 | ||
321 | %description Renderer-DirectFB -l pl.UTF-8 | |
322 | Biblioteka DirectFBRenderer dla CEGUI | |
323 | ||
324 | %package Renderer-DirectFB-devel | |
325 | Summary: Header files for CEGUI DirectFBRenderer library | |
326 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI DirectFBRenderer | |
327 | Group: Development/Libraries | |
328 | Requires: %{name}-Renderer-DirectFB = %{version}-%{release} | |
329 | Requires: %{name}-devel = %{version}-%{release} | |
330 | Requires: DirectFB-devel >= 1.2.0 | |
331 | ||
332 | %description Renderer-DirectFB-devel | |
333 | Header files for CEGUI DirectFBRenderer library. | |
334 | ||
335 | %description Renderer-DirectFB-devel -l pl.UTF-8 | |
336 | Pliki nagłówkowe biblioteki CEGUI DirectFBRenderer. | |
337 | ||
338 | %package Renderer-Irrlicht | |
339 | Summary: IrrlichtRenderer library for CEGUI | |
340 | Summary(pl.UTF-8): Biblioteka IrrlichtRenderer dla CEGUI | |
341 | Group: Libraries | |
342 | Requires: %{name} = %{version}-%{release} | |
343 | Requires: irrlicht >= 1.4 | |
344 | ||
345 | %description Renderer-Irrlicht | |
346 | IrrlichtRenderer library for CEGUI. | |
347 | ||
348 | %description Renderer-Irrlicht -l pl.UTF-8 | |
349 | Biblioteka IrrlichtRenderer dla CEGUI | |
350 | ||
351 | %package Renderer-Irrlicht-devel | |
352 | Summary: Header files for CEGUI IrrlichtRenderer library | |
353 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI IrrlichtRenderer | |
354 | Group: Development/Libraries | |
355 | Requires: %{name}-Renderer-Irrlicht = %{version}-%{release} | |
356 | Requires: %{name}-devel = %{version}-%{release} | |
357 | Requires: irrlicht-devel >= 1.4 | |
358 | ||
359 | %description Renderer-Irrlicht-devel | |
360 | Header files for CEGUI IrrlichtRenderer library. | |
361 | ||
362 | %description Renderer-Irrlicht-devel -l pl.UTF-8 | |
363 | Pliki nagłówkowe biblioteki CEGUI IrrlichtRenderer. | |
364 | ||
365 | %package Renderer-Ogre | |
366 | Summary: OgreRenderer library for CEGUI | |
367 | Summary(pl.UTF-8): Biblioteka OgreRenderer dla CEGUI | |
368 | Group: Libraries | |
369 | Requires: %{name} = %{version}-%{release} | |
370 | Obsoletes: CEGUI-Ogre | |
371 | ||
372 | %description Renderer-Ogre | |
373 | OgreRenderer library for CEGUI. | |
374 | ||
375 | %description Renderer-Ogre -l pl.UTF-8 | |
376 | Biblioteka OgreRenderer dla CEGUI | |
377 | ||
378 | %package Renderer-Ogre-devel | |
379 | Summary: Header files for CEGUI OgreRenderer library | |
380 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI OgreRenderer | |
381 | Group: Development/Libraries | |
382 | Requires: %{name}-Renderer-Ogre = %{version}-%{release} | |
383 | Requires: %{name}-devel = %{version}-%{release} | |
384 | Requires: ogre-devel >= 1.6.0 | |
385 | Obsoletes: CEGUI-Ogre-devel | |
386 | ||
387 | %description Renderer-Ogre-devel | |
388 | Header files for CEGUI OgreRenderer library. | |
389 | ||
390 | %description Renderer-Ogre-devel -l pl.UTF-8 | |
391 | Pliki nagłówkowe biblioteki CEGUI OgreRenderer. | |
392 | ||
393 | %package Renderer-OpenGL | |
394 | Summary: OpenGLRenderer library for CEGUI | |
395 | Summary(pl.UTF-8): Biblioteka OpenGLRenderer dla CEGUI | |
396 | Group: Libraries | |
397 | Requires: %{name} = %{version}-%{release} | |
398 | Obsoletes: CEGUI-OpenGL | |
399 | ||
400 | %description Renderer-OpenGL | |
401 | OpenGLRenderer library for CEGUI. | |
402 | ||
403 | %description Renderer-OpenGL -l pl.UTF-8 | |
404 | Biblioteka OpenGLRenderer dla CEGUI. | |
405 | ||
406 | %package Renderer-OpenGL-devel | |
407 | Summary: Header files for CEGUI OpenGLRenderer library | |
408 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI OpenGLRenderer | |
409 | Group: Development/Libraries | |
410 | Requires: %{name}-Renderer-OpenGL = %{version}-%{release} | |
411 | Requires: %{name}-devel = %{version}-%{release} | |
412 | Requires: OpenGL-GLU-devel | |
413 | Requires: OpenGL-glut-devel | |
414 | Requires: glew-devel | |
415 | Obsoletes: CEGUI-OpenGL-devel | |
416 | ||
417 | %description Renderer-OpenGL-devel | |
418 | Header files for CEGUI OpenGLRenderer library. | |
419 | ||
420 | %description Renderer-OpenGL-devel -l pl.UTF-8 | |
421 | Pliki nagłówkowe biblioteki CEGUI OpenGLRenderer. | |
422 | ||
423 | %package -n python-CEGUI | |
424 | Summary: Python binding for CEGUI | |
425 | Summary(pl.UTF-8): Wiązania Pythona do CEGUI | |
426 | Group: Libraries/Python | |
427 | Requires: %{name} = %{version}-%{release} | |
428 | ||
429 | %description -n python-CEGUI | |
430 | Python binding for CEGUI. | |
431 | ||
432 | %description -n python-CEGUI -l pl.UTF-8 | |
433 | Wiązania Pythona do CEGUI. | |
434 | ||
435 | %package -n python-CEGUI-Renderer-Ogre | |
436 | Summary: Python binding for CEGUI OgreRenderer library | |
437 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki CEGUI OgreRenderer | |
438 | Group: Libraries/Python | |
439 | Requires: %{name}-Renderer-Ogre = %{version}-%{release} | |
440 | Requires: python-CEGUI = %{version}-%{release} | |
441 | ||
442 | %description -n python-CEGUI-Renderer-Ogre | |
443 | Python binding for CEGUI OgreRenderer library. | |
444 | ||
445 | %description -n python-CEGUI-Renderer-Ogre -l pl.UTF-8 | |
446 | Wiązania Pythona do biblioteki CEGUI OgreRenderer. | |
447 | ||
448 | %package -n python-CEGUI-Renderer-OpenGL | |
449 | Summary: Python binding for CEGUI OpenGLRenderer library | |
450 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki CEGUI OpenGLRenderer | |
451 | Group: Libraries/Python | |
452 | Requires: %{name}-Renderer-OpenGL = %{version}-%{release} | |
453 | Requires: python-CEGUI = %{version}-%{release} | |
454 | ||
455 | %description -n python-CEGUI-Renderer-OpenGL | |
456 | Python binding for CEGUI OpenGLRenderer library. | |
457 | ||
458 | %description -n python-CEGUI-Renderer-OpenGL -l pl.UTF-8 | |
459 | Wiązania Pythona do biblioteki CEGUI OpenGLRenderer. | |
460 | ||
461 | %prep | |
462 | %setup -q -a 1 -n cegui-%{version} | |
463 | %patch0 -p1 | |
464 | %patch1 -p1 | |
465 | %patch3 -p1 | |
466 | %patch4 -p1 | |
467 | %patch5 -p1 | |
468 | %patch6 -p1 | |
469 | ||
470 | %build | |
471 | install -d build | |
472 | cd build | |
473 | %cmake .. \ | |
474 | -DCEGUI_SAMPLES_ENABLED:BOOL=%{?with_samples:ON}%{!?with_samples:OFF} \ | |
475 | -DCEGUI_BUILD_RENDERER_DIRECTFB:BOOL=%{?with_directfb:ON}%{!?with_directfb:OFF} \ | |
476 | -DCEGUI_BUILD_RENDERER_OPENGL:BOOL=%{?with_opengl:ON}%{!?with_opengl:OFF} \ | |
477 | -DCEGUI_BUILD_RENDERER_OGRE:BOOL=%{?with_ogre:ON}%{!?with_ogre:OFF} \ | |
478 | -DCEGUI_BUILD_XMLPARSER_XERCES:BOOL=%{?with_xercesc:ON}%{!?with_xercesc:OFF} \ | |
479 | -DCEGUI_OPTION_DEFAULT_IMAGECODEC:STRING=FreeImageImageCodec \ | |
480 | -DCEGUI_OPTION_DEFAULT_XMLPARSER:STRING=LibxmlParser \ | |
481 | -DCEGUI_PYTHON_INSTALL_DIR=%{py_sitedir} | |
482 | ||
483 | %{__make} -j1 | |
484 | ||
485 | %install | |
486 | rm -rf $RPM_BUILD_ROOT | |
487 | ||
488 | %{__make} -C build install/fast \ | |
489 | DESTDIR=$RPM_BUILD_ROOT | |
490 | ||
491 | %if %{without samples} | |
492 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/cegui-0/{animations,fonts,imagesets,layouts,looknfeel,lua_scripts,schemes,xml_schemas} | |
493 | %endif | |
494 | ||
495 | %clean | |
496 | rm -rf $RPM_BUILD_ROOT | |
497 | ||
498 | %post -p /sbin/ldconfig | |
499 | %postun -p /sbin/ldconfig | |
500 | ||
501 | %post Renderer-Irrlicht -p /sbin/ldconfig | |
502 | %postun Renderer-Irrlicht -p /sbin/ldconfig | |
503 | %post Renderer-Ogre -p /sbin/ldconfig | |
504 | %postun Renderer-Ogre -p /sbin/ldconfig | |
505 | %post Renderer-OpenGL -p /sbin/ldconfig | |
506 | %postun Renderer-OpenGL -p /sbin/ldconfig | |
507 | ||
508 | %files | |
509 | %defattr(644,root,root,755) | |
510 | %doc README.md | |
511 | %attr(755,root,root) %{_libdir}/libCEGUIBase-0.so.*.*.* | |
512 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIBase-0.so.2 | |
513 | %attr(755,root,root) %{_libdir}/libCEGUICommonDialogs-0.so.*.*.* | |
514 | %attr(755,root,root) %ghost %{_libdir}/libCEGUICommonDialogs-0.so.2 | |
515 | %attr(755,root,root) %{_libdir}/libCEGUILuaScriptModule-0.so.*.*.* | |
516 | %attr(755,root,root) %ghost %{_libdir}/libCEGUILuaScriptModule-0.so.2 | |
517 | # plugins | |
518 | %dir %{_libdir}/cegui-0.8 | |
519 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUICoreWindowRendererSet.so | |
520 | ||
521 | %files docs | |
522 | %defattr(644,root,root,755) | |
523 | %doc cegui-docs-%{version}/* | |
524 | ||
525 | %files devel | |
526 | %defattr(644,root,root,755) | |
527 | %attr(755,root,root) %{_bindir}/toluappcegui-0.8 | |
528 | %attr(755,root,root) %{_libdir}/libCEGUIBase-0.so | |
529 | %attr(755,root,root) %{_libdir}/libCEGUICommonDialogs-0.so | |
530 | %attr(755,root,root) %{_libdir}/libCEGUILuaScriptModule-0.so | |
531 | %dir %{_includedir}/cegui-0 | |
532 | %dir %{_includedir}/cegui-0/%{name} | |
533 | %{_includedir}/cegui-0/%{name}/*.h | |
534 | %{_includedir}/cegui-0/%{name}/CommonDialogs | |
535 | %dir %{_includedir}/cegui-0/%{name}/ImageCodecModules | |
536 | %dir %{_includedir}/cegui-0/%{name}/RendererModules | |
537 | %{_includedir}/cegui-0/%{name}/ScriptModules | |
538 | %{_includedir}/cegui-0/%{name}/WindowRendererSets | |
539 | %{_includedir}/cegui-0/%{name}/XMLParserModules | |
540 | %{_includedir}/cegui-0/%{name}/falagard | |
541 | %{_includedir}/cegui-0/%{name}/widgets | |
542 | %{_pkgconfigdir}/CEGUI-0.pc | |
543 | %{_pkgconfigdir}/CEGUI-0-LUA.pc | |
544 | ||
545 | %files ImageCodec-Corona | |
546 | %defattr(644,root,root,755) | |
547 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUICoronaImageCodec.so | |
548 | ||
549 | %files ImageCodec-Corona-devel | |
550 | %defattr(644,root,root,755) | |
551 | %{_includedir}/cegui-0/%{name}/ImageCodecModules/Corona | |
552 | ||
553 | %files ImageCodec-DevIL | |
554 | %defattr(644,root,root,755) | |
555 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUIDevILImageCodec.so | |
556 | ||
557 | %files ImageCodec-DevIL-devel | |
558 | %defattr(644,root,root,755) | |
559 | %{_includedir}/cegui-0/%{name}/ImageCodecModules/DevIL | |
560 | ||
561 | %files ImageCodec-FreeImage | |
562 | %defattr(644,root,root,755) | |
563 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUIFreeImageImageCodec.so | |
564 | ||
565 | %files ImageCodec-FreeImage-devel | |
566 | %defattr(644,root,root,755) | |
567 | %{_includedir}/cegui-0/%{name}/ImageCodecModules/FreeImage | |
568 | ||
569 | %files ImageCodec-SDL2 | |
570 | %defattr(644,root,root,755) | |
571 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUISDL2ImageCodec.so | |
572 | ||
573 | %files ImageCodec-SDL2-devel | |
574 | %defattr(644,root,root,755) | |
575 | %{_includedir}/cegui-0/%{name}/ImageCodecModules/SDL2 | |
576 | ||
577 | %files ImageCodec-SILLY | |
578 | %defattr(644,root,root,755) | |
579 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUISILLYImageCodec.so | |
580 | ||
581 | %files ImageCodec-SILLY-devel | |
582 | %defattr(644,root,root,755) | |
583 | %{_includedir}/cegui-0/%{name}/ImageCodecModules/SILLY | |
584 | ||
585 | %files Parser-Expat | |
586 | %defattr(644,root,root,755) | |
587 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUIExpatParser.so | |
588 | ||
589 | %files Parser-LibXML | |
590 | %defattr(644,root,root,755) | |
591 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUILibXMLParser.so | |
592 | ||
593 | %files Parser-RapidXML | |
594 | %defattr(644,root,root,755) | |
595 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUIRapidXMLParser.so | |
596 | ||
597 | %files Parser-TinyXML | |
598 | %defattr(644,root,root,755) | |
599 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUITinyXMLParser.so | |
600 | ||
601 | %files Parser-Xerces | |
602 | %defattr(644,root,root,755) | |
603 | %attr(755,root,root) %{_libdir}/cegui-0.8/libCEGUIXercesParser.so | |
604 | ||
605 | %if %{with directfb} | |
606 | %files Renderer-DirectFB | |
607 | %defattr(644,root,root,755) | |
608 | %attr(755,root,root) %{_libdir}/libCEGUIDirectFBRenderer-0.so.*.*.* | |
609 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIDirectFBRenderer-0.so.2 | |
610 | ||
611 | %files Renderer-DirectFB-devel | |
612 | %defattr(644,root,root,755) | |
613 | %attr(755,root,root) %{_libdir}/libCEGUIDirectFBRenderer-0.so | |
614 | %{_includedir}/cegui-0/%{name}/RendererModules/DirectFB | |
615 | %endif | |
616 | ||
617 | %files Renderer-Irrlicht | |
618 | %defattr(644,root,root,755) | |
619 | %attr(755,root,root) %{_libdir}/libCEGUIIrrlichtRenderer-0.so.*.*.* | |
620 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIIrrlichtRenderer-0.so.2 | |
621 | ||
622 | %files Renderer-Irrlicht-devel | |
623 | %defattr(644,root,root,755) | |
624 | %{_includedir}/cegui-0/%{name}/RendererModules/Irrlicht | |
625 | %attr(755,root,root) %{_libdir}/libCEGUIIrrlichtRenderer-0.so | |
626 | %{_pkgconfigdir}/CEGUI-0-IRRLICHT.pc | |
627 | ||
628 | %if %{with ogre} | |
629 | %files Renderer-Ogre | |
630 | %defattr(644,root,root,755) | |
631 | %attr(755,root,root) %{_libdir}/libCEGUIOgreRenderer-0.so.*.*.* | |
632 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIOgreRenderer-0.so.2 | |
633 | ||
634 | %files Renderer-Ogre-devel | |
635 | %defattr(644,root,root,755) | |
636 | %{_includedir}/cegui-0/%{name}/RendererModules/Ogre | |
637 | %attr(755,root,root) %{_libdir}/libCEGUIOgreRenderer-0.so | |
638 | %{_pkgconfigdir}/CEGUI-0-OGRE.pc | |
639 | %endif | |
640 | ||
641 | %if %{with opengl} | |
642 | %files Renderer-OpenGL | |
643 | %defattr(644,root,root,755) | |
644 | %attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer-0.so.*.*.* | |
645 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIOpenGLRenderer-0.so.2 | |
646 | ||
647 | %files Renderer-OpenGL-devel | |
648 | %defattr(644,root,root,755) | |
649 | %attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer-0.so | |
650 | %{_includedir}/cegui-0/%{name}/RendererModules/OpenGL | |
651 | %{_pkgconfigdir}/CEGUI-0-OPENGL.pc | |
652 | %{_pkgconfigdir}/CEGUI-0-OPENGL3.pc | |
653 | %endif | |
654 | ||
655 | %files -n python-CEGUI | |
656 | %defattr(644,root,root,755) | |
657 | %dir %{py_sitedir}/cegui-0.8 | |
658 | %attr(755,root,root) %{py_sitedir}/cegui-0.8/PyCEGUI.so | |
659 | ||
660 | %if %{with ogre} | |
661 | %files -n python-CEGUI-Renderer-Ogre | |
662 | %defattr(644,root,root,755) | |
663 | %attr(755,root,root) %{py_sitedir}/cegui-0.8/PyCEGUIOgreRenderer.so | |
664 | %endif | |
665 | ||
666 | %if %{with opengl} | |
667 | %files -n python-CEGUI-Renderer-OpenGL | |
668 | %defattr(644,root,root,755) | |
669 | %attr(755,root,root) %{py_sitedir}/cegui-0.8/PyCEGUIOpenGLRenderer.so | |
670 | %endif |