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