]>
Commit | Line | Data |
---|---|---|
a7c52a89 | 1 | # TODO: |
53031d9d | 2 | # - python |
1dbcb621 | 3 | # - separate packages for plugins |
dab1ca85 BZ |
4 | # |
5 | # Conditional build: | |
06eb5540 | 6 | %bcond_without xercesc # build XercesParser |
4f3d9164 | 7 | %bcond_without ogre # build without Ogre renderer |
52ea5f04 | 8 | %bcond_without opengl # build without OpenGL renderer |
06eb5540 | 9 | %bcond_with samples # build samples |
a7c52a89 | 10 | # |
71dc0787 JB |
11 | Summary: CEGUI - a free library providing windowing and widgets |
12 | Summary(pl.UTF-8): CEGUI - wolnodostępna biblioteka zapewniającą okienka i widgety | |
a7c52a89 | 13 | Name: CEGUI |
308999b0 | 14 | Version: 0.7.5 |
5370d313 | 15 | Release: 12 |
779edc3e | 16 | License: LGPL v2.1+ (with MIT parts) |
a7c52a89 | 17 | Group: Libraries |
bc6db235 | 18 | Source0: http://downloads.sourceforge.net/crayzedsgui/%{name}-%{version}.tar.gz |
308999b0 | 19 | # Source0-md5: 38c79d1fdfaaa10f481c99a2ac479516 |
bc6db235 | 20 | Source1: http://downloads.sourceforge.net/crayzedsgui/%{name}-DOCS-%{version}.tar.gz |
308999b0 | 21 | # Source1-md5: cdf59df7503f752a70eea4081eaac6ef |
a172647d | 22 | Patch0: %{name}-new-tinyxml.patch |
1dbcb621 | 23 | Patch1: %{name}-gcc.patch |
a7c52a89 | 24 | URL: http://www.cegui.org.uk/ |
ae21b5c7 | 25 | BuildRequires: DevIL-devel |
1dbcb621 | 26 | BuildRequires: DirectFB-devel >= 1.2.0 |
7e74cc56 | 27 | BuildRequires: FreeImage-devel |
296738c2 | 28 | BuildRequires: SILLY-devel >= 0.1.0 |
54df35ea | 29 | BuildRequires: autoconf >= 2.59 |
a7c52a89 | 30 | BuildRequires: automake |
1dbcb621 | 31 | BuildRequires: corona-devel |
54df35ea JB |
32 | BuildRequires: expat-devel |
33 | BuildRequires: freetype-devel >= 2.0 | |
1dbcb621 | 34 | BuildRequires: gtk+2-devel >= 2:2.4 |
779edc3e | 35 | BuildRequires: irrlicht-devel >= 1.4 |
7e74cc56 | 36 | BuildRequires: libstdc++-devel |
54df35ea JB |
37 | BuildRequires: libtool >= 2:1.5 |
38 | BuildRequires: libxml2-devel >= 1:2.6 | |
d4686777 | 39 | BuildRequires: lua51-devel >= 5.1 |
06eb5540 | 40 | %if %{with ogre} |
1dbcb621 | 41 | BuildRequires: ogre-devel >= 1.6.0 |
06eb5540 | 42 | BuildRequires: ois-devel |
06eb5540 | 43 | %endif |
d4686777 JB |
44 | BuildRequires: pcre-devel >= 5.0 |
45 | BuildRequires: pkgconfig | |
1dbcb621 | 46 | BuildRequires: sed >= 4.0 |
a172647d | 47 | BuildRequires: tinyxml-devel |
53031d9d | 48 | BuildRequires: tolua++-devel |
779edc3e JB |
49 | # for irrlicht renderer |
50 | BuildRequires: xorg-lib-libXxf86vm-devel | |
1dbcb621 JB |
51 | %if %{with opengl} |
52 | BuildRequires: OpenGL-GLU-devel | |
53 | BuildRequires: OpenGL-glut-devel | |
54 | BuildRequires: glew-devel | |
55 | %endif | |
dab1ca85 | 56 | %if %{with xercesc} |
54df35ea | 57 | BuildRequires: xerces-c-devel |
dab1ca85 | 58 | %endif |
d4686777 | 59 | Requires: irrlicht >= 1.4 |
a7c52a89 ŁK |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
61 | ||
62 | %description | |
63 | CEGUI stands for Crazy Eddie's Gui System; a free library providing | |
64 | windowing and widgets for graphics APIs / engines where such | |
65 | functionality is not natively available, or severely lacking. The | |
66 | library is object orientated, written in C++, and targeted at games | |
67 | developers who should be spending their time creating great games, not | |
68 | building GUI sub-systems! | |
69 | ||
71dc0787 JB |
70 | %description -l pl.UTF-8 |
71 | CEGUI oznacza Crazy Eddie's Gui System - wolnodostępną bibliotekę | |
72 | zapewniającą okienka i widgety dla graficznych API i silników tam, | |
73 | gdzie natywnie taka funkcjonalność nie jest dostępna lub ma znaczące | |
74 | braki. Biblioteka jest zorientowana obiektowo, napisana w C++ i | |
75 | skierowana dla programistów gier, którzy powinni spędzać czas na | |
76 | pisaniu świetnych gier, a nie tworzeniu podsystemów GUI! | |
77 | ||
a7c52a89 ŁK |
78 | %package devel |
79 | Summary: Development files for CEGUI | |
71dc0787 | 80 | Summary(pl.UTF-8): Pliki programistyczne dla CEGUI |
a7c52a89 ŁK |
81 | Group: Development/Libraries |
82 | Requires: %{name} = %{version}-%{release} | |
54df35ea JB |
83 | Requires: freetype-devel >= 2.0 |
84 | Requires: libstdc++-devel | |
85 | Requires: pcre-devel >= 5.0 | |
a7c52a89 ŁK |
86 | |
87 | %description devel | |
715a1989 | 88 | CEGUI headers. |
a7c52a89 | 89 | |
71dc0787 | 90 | %description devel -l pl.UTF-8 |
715a1989 BZ |
91 | Pliki nagłówkowe CEGUI. |
92 | ||
93 | %package docs | |
94 | Summary: Documentation files for CEGUI | |
95 | Summary(pl.UTF-8): Pliki dokumentacji CEGUI | |
53106289 | 96 | Group: Documentation |
715a1989 BZ |
97 | Requires: %{name} = %{version}-%{release} |
98 | ||
99 | %description docs | |
100 | CEGUI documentation. | |
101 | ||
102 | %description docs -l pl.UTF-8 | |
103 | Dokumentacja CEGUI. | |
104 | ||
1dbcb621 JB |
105 | %package Ogre |
106 | Summary: OgreRenderer library for CEGUI | |
107 | Summary(pl.UTF-8): Biblioteka OgreRenderer dla CEGUI | |
108 | Group: Libraries | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description Ogre | |
112 | OgreRenderer library for CEGUI. | |
113 | ||
114 | %description Ogre -l pl.UTF-8 | |
115 | Biblioteka OgreRenderer dla CEGUI | |
116 | ||
117 | %package Ogre-devel | |
118 | Summary: Header files for CEGUI OgreRenderer library | |
119 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI OgreRenderer | |
120 | Group: Development/Libraries | |
121 | Requires: %{name} = %{version}-%{release} | |
122 | Requires: ogre-devel >= 1.6.0 | |
123 | ||
124 | %description Ogre-devel | |
125 | Header files for CEGUI OgreRenderer library. | |
126 | ||
127 | %description Ogre-devel -l pl.UTF-8 | |
128 | Pliki nagłówkowe biblioteki CEGUI OgreRenderer. | |
129 | ||
e64544bb | 130 | %package OpenGL |
52ea5f04 | 131 | Summary: OpenGLRenderer library for CEGUI |
132 | Summary(pl.UTF-8): Biblioteka OpenGLRenderer dla CEGUI | |
133 | Group: Libraries | |
134 | Requires: %{name} = %{version}-%{release} | |
135 | ||
e64544bb | 136 | %description OpenGL |
52ea5f04 | 137 | OpenGLRenderer library for CEGUI. |
138 | ||
e64544bb | 139 | %description OpenGL -l pl.UTF-8 |
52ea5f04 | 140 | Biblioteka OpenGLRenderer dla CEGUI. |
71dc0787 | 141 | |
1dbcb621 JB |
142 | %package OpenGL-devel |
143 | Summary: Header files for CEGUI OpenGLRenderer library | |
144 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CEGUI OpenGLRenderer | |
145 | Group: Development/Libraries | |
b5f1620c | 146 | Requires: %{name} = %{version}-%{release} |
1dbcb621 JB |
147 | Requires: OpenGL-GLU-devel |
148 | Requires: OpenGL-glut-devel | |
149 | Requires: glew-devel | |
b5f1620c | 150 | |
1dbcb621 JB |
151 | %description OpenGL-devel |
152 | Header files for CEGUI OpenGLRenderer library. | |
b5f1620c | 153 | |
1dbcb621 JB |
154 | %description OpenGL-devel -l pl.UTF-8 |
155 | Pliki nagłówkowe biblioteki CEGUI OpenGLRenderer. | |
b5f1620c | 156 | |
a7c52a89 | 157 | %prep |
346ffa4c | 158 | %setup -q -a 1 |
a172647d | 159 | %patch0 -p1 |
1dbcb621 JB |
160 | %patch1 -p1 |
161 | ||
162 | sed -i -e 's/lua5\.1/lua51/' acinclude.m4 | |
a7c52a89 ŁK |
163 | |
164 | %build | |
165 | %{__libtoolize} | |
166 | %{__aclocal} | |
167 | %{__autoconf} | |
168 | %{__autoheader} | |
169 | %{__automake} | |
54df35ea | 170 | %configure \ |
53031d9d | 171 | cegui_corona_config=/usr/bin/corona-config \ |
54df35ea | 172 | --with-default-image-codec=FreeImageImageCodec \ |
d4686777 | 173 | --with-default-xml-parser=LibxmlParser \ |
06eb5540 | 174 | %{!?with_samples:--disable-samples} \ |
1dbcb621 JB |
175 | --enable-ogre-renderer%{!?with_ogre:=no} \ |
176 | --enable-opengl-renderer%{!?with_opengl:=no} \ | |
177 | --enable-xerces-c%{!?with_xercesc:=no} | |
a7c52a89 ŁK |
178 | |
179 | %{__make} | |
180 | ||
181 | %install | |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | ||
184 | %{__make} install \ | |
185 | DESTDIR=$RPM_BUILD_ROOT | |
186 | ||
187 | %clean | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %post -p /sbin/ldconfig | |
191 | %postun -p /sbin/ldconfig | |
192 | ||
193 | %files | |
194 | %defattr(644,root,root,755) | |
346ffa4c | 195 | %doc doc/README |
346ffa4c | 196 | %attr(755,root,root) %{_libdir}/libCEGUIBase-%{version}.so |
d4686777 | 197 | # plugins |
346ffa4c | 198 | %attr(755,root,root) %{_libdir}/libCEGUIDevILImageCodec-%{version}.so |
3b0715c7 | 199 | %attr(755,root,root) %{_libdir}/libCEGUIDevILImageCodec.so |
346ffa4c | 200 | %attr(755,root,root) %{_libdir}/libCEGUIExpatParser-%{version}.so |
3b0715c7 | 201 | %attr(755,root,root) %{_libdir}/libCEGUIExpatParser.so |
346ffa4c | 202 | %attr(755,root,root) %{_libdir}/libCEGUIFalagardWRBase-%{version}.so |
3b0715c7 | 203 | %attr(755,root,root) %{_libdir}/libCEGUIFalagardWRBase.so |
346ffa4c | 204 | %attr(755,root,root) %{_libdir}/libCEGUIFreeImageImageCodec-%{version}.so |
3b0715c7 | 205 | %attr(755,root,root) %{_libdir}/libCEGUIFreeImageImageCodec.so |
346ffa4c | 206 | %attr(755,root,root) %{_libdir}/libCEGUIIrrlichtRenderer-%{version}.so |
3b0715c7 | 207 | %attr(755,root,root) %{_libdir}/libCEGUIIrrlichtRenderer.so |
346ffa4c | 208 | %attr(755,root,root) %{_libdir}/libCEGUILibxmlParser-%{version}.so |
3b0715c7 | 209 | %attr(755,root,root) %{_libdir}/libCEGUILibxmlParser.so |
1dbcb621 JB |
210 | %attr(755,root,root) %{_libdir}/libCEGUILuaScriptModule-%{version}.so |
211 | %attr(755,root,root) %{_libdir}/libCEGUILuaScriptModule.so | |
346ffa4c | 212 | %attr(755,root,root) %{_libdir}/libCEGUISILLYImageCodec-%{version}.so |
3b0715c7 | 213 | %attr(755,root,root) %{_libdir}/libCEGUISILLYImageCodec.so |
d050fb3e | 214 | %attr(755,root,root) %{_libdir}/libCEGUISTBImageCodec-%{version}.so |
215 | %attr(755,root,root) %{_libdir}/libCEGUISTBImageCodec.so | |
346ffa4c | 216 | %attr(755,root,root) %{_libdir}/libCEGUITGAImageCodec-%{version}.so |
3b0715c7 | 217 | %attr(755,root,root) %{_libdir}/libCEGUITGAImageCodec.so |
346ffa4c | 218 | %attr(755,root,root) %{_libdir}/libCEGUITinyXMLParser-%{version}.so |
3b0715c7 | 219 | %attr(755,root,root) %{_libdir}/libCEGUITinyXMLParser.so |
346ffa4c | 220 | %attr(755,root,root) %{_libdir}/libCEGUIXercesParser-%{version}.so |
3b0715c7 | 221 | %attr(755,root,root) %{_libdir}/libCEGUIXercesParser.so |
715a1989 BZ |
222 | |
223 | %files docs | |
cbbebc22 | 224 | %defattr(644,root,root,755) |
308999b0 | 225 | %doc docs |
715a1989 | 226 | %dir %{_datadir}/%{name} |
346ffa4c | 227 | %dir %{_datadir}/%{name}/xml_schemas |
228 | %{_datadir}/%{name}/xml_schemas/*.xsd | |
a7c52a89 ŁK |
229 | |
230 | %files devel | |
231 | %defattr(644,root,root,755) | |
3b0715c7 | 232 | %attr(755,root,root) %{_libdir}/libCEGUIBase.so |
d4686777 | 233 | %{_libdir}/libCEGUIBase.la |
d4686777 | 234 | # plugins - but as their headers are included... |
d4686777 JB |
235 | %{_libdir}/libCEGUIDevILImageCodec.la |
236 | %{_libdir}/libCEGUIExpatParser.la | |
237 | %{_libdir}/libCEGUIFalagardWRBase.la | |
238 | %{_libdir}/libCEGUIFreeImageImageCodec.la | |
239 | %{_libdir}/libCEGUIIrrlichtRenderer.la | |
240 | %{_libdir}/libCEGUILibxmlParser.la | |
1dbcb621 | 241 | %{_libdir}/libCEGUILuaScriptModule.la |
d4686777 | 242 | %{_libdir}/libCEGUISILLYImageCodec.la |
d050fb3e | 243 | %{_libdir}/libCEGUISTBImageCodec.la |
d4686777 JB |
244 | %{_libdir}/libCEGUITGAImageCodec.la |
245 | %{_libdir}/libCEGUITinyXMLParser.la | |
246 | %{_libdir}/libCEGUIXercesParser.la | |
1dbcb621 JB |
247 | %dir %{_includedir}/%{name} |
248 | %{_includedir}/%{name}/CEGUI*.h | |
249 | %{_includedir}/%{name}/ImageCodecModules | |
250 | %dir %{_includedir}/%{name}/RendererModules | |
251 | %{_includedir}/%{name}/RendererModules/Irrlicht | |
252 | %{_includedir}/%{name}/ScriptingModules | |
253 | %{_includedir}/%{name}/WindowRendererSets | |
254 | %{_includedir}/%{name}/XMLParserModules | |
255 | %{_includedir}/%{name}/elements | |
256 | %{_includedir}/%{name}/falagard | |
54df35ea | 257 | %{_pkgconfigdir}/CEGUI.pc |
1dbcb621 JB |
258 | |
259 | %if %{with ogre} | |
260 | %files Ogre | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libCEGUIOgreRenderer-%{version}.so | |
263 | ||
264 | %files Ogre-devel | |
265 | %defattr(644,root,root,755) | |
266 | %attr(755,root,root) %{_libdir}/libCEGUIOgreRenderer.so | |
267 | %{_libdir}/libCEGUIOgreRenderer.la | |
268 | %{_includedir}/%{name}/RendererModules/Ogre | |
269 | %{_pkgconfigdir}/CEGUI-OGRE.pc | |
270 | %endif | |
52ea5f04 | 271 | |
272 | %if %{with opengl} | |
e64544bb | 273 | %files OpenGL |
52ea5f04 | 274 | %defattr(644,root,root,755) |
275 | %attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer-%{version}.so | |
b5f1620c | 276 | |
1dbcb621 | 277 | %files OpenGL-devel |
b5f1620c | 278 | %defattr(644,root,root,755) |
1dbcb621 JB |
279 | %attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer.so |
280 | %{_libdir}/libCEGUIOpenGLRenderer.la | |
281 | %{_includedir}/%{name}/RendererModules/OpenGL | |
282 | %{_pkgconfigdir}/CEGUI-OPENGL.pc | |
b5f1620c | 283 | %endif |