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