]>
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 BZ |
8 | %bcond_without xercesc # build XercesParser |
9 | %bcond_with ogre # build samples with ogre3d | |
10 | %bcond_with samples # build samples | |
a7c52a89 | 11 | # |
71dc0787 JB |
12 | Summary: CEGUI - a free library providing windowing and widgets |
13 | Summary(pl.UTF-8): CEGUI - wolnodostępna biblioteka zapewniającą okienka i widgety | |
a7c52a89 | 14 | Name: CEGUI |
3f4d088b | 15 | Version: 0.6.2 |
2edbe753 | 16 | Release: 2 |
779edc3e | 17 | License: LGPL v2.1+ (with MIT parts) |
a7c52a89 | 18 | Group: Libraries |
3f4d088b | 19 | Source0: http://dl.sourceforge.net/crayzedsgui/%{name}-%{version}b.tar.gz |
20 | # Source0-md5: 4fbd95e5a2ac1c7acf2a8f5df3ac6b93 | |
cd47df32 | 21 | Source1: http://dl.sourceforge.net/crayzedsgui/%{name}-%{version}-DOCS.tar.gz |
3f4d088b | 22 | # Source1-md5: 5c6b54b9472ffaefc27ed4a9b8fefe25 |
d4686777 | 23 | Patch0: %{name}-link.patch |
feb9d987 | 24 | Patch1: %{name}-gcc43.patch |
a7c52a89 | 25 | URL: http://www.cegui.org.uk/ |
ae21b5c7 | 26 | BuildRequires: DevIL-devel |
2edbe753 | 27 | BuildRequires: DirectFB-devel |
7e74cc56 | 28 | BuildRequires: FreeImage-devel |
29 | BuildRequires: OpenGL-GLU-devel | |
54df35ea | 30 | BuildRequires: OpenGL-glut-devel |
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} | |
54df35ea JB |
78 | Requires: freetype-devel >= 2.0 |
79 | Requires: libstdc++-devel | |
80 | Requires: pcre-devel >= 5.0 | |
a7c52a89 ŁK |
81 | |
82 | %description devel | |
715a1989 | 83 | CEGUI headers. |
a7c52a89 | 84 | |
71dc0787 | 85 | %description devel -l pl.UTF-8 |
715a1989 BZ |
86 | Pliki nagłówkowe CEGUI. |
87 | ||
88 | %package docs | |
89 | Summary: Documentation files for CEGUI | |
90 | Summary(pl.UTF-8): Pliki dokumentacji CEGUI | |
53106289 | 91 | Group: Documentation |
715a1989 BZ |
92 | Requires: %{name} = %{version}-%{release} |
93 | ||
94 | %description docs | |
95 | CEGUI documentation. | |
96 | ||
97 | %description docs -l pl.UTF-8 | |
98 | Dokumentacja CEGUI. | |
99 | ||
71dc0787 | 100 | |
a7c52a89 ŁK |
101 | %prep |
102 | %setup -q -b 1 | |
103 | %patch0 -p1 | |
feb9d987 | 104 | %patch1 -p1 |
a7c52a89 ŁK |
105 | |
106 | %build | |
107 | %{__libtoolize} | |
108 | %{__aclocal} | |
109 | %{__autoconf} | |
110 | %{__autoheader} | |
111 | %{__automake} | |
54df35ea JB |
112 | %configure \ |
113 | --with-default-image-codec=FreeImageImageCodec \ | |
d4686777 | 114 | --with-default-xml-parser=LibxmlParser \ |
06eb5540 BZ |
115 | %{!?with_samples:--disable-samples} \ |
116 | %{!?with_ogre:--without-ogre-renderer} \ | |
117 | --%{?with_xercesc:en}%{!?with_xercesc:dis}able-xerces-c | |
a7c52a89 ŁK |
118 | |
119 | %{__make} | |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %{__make} install \ | |
125 | DESTDIR=$RPM_BUILD_ROOT | |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
133 | %files | |
134 | %defattr(644,root,root,755) | |
135 | %doc AUTHORS ChangeLog README | |
d4686777 JB |
136 | # libs |
137 | %attr(755,root,root) %{_libdir}/libCEGUIBase.so.*.*.* | |
138 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIBase.so.1 | |
139 | %attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer.so.*.*.* | |
140 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIOpenGLRenderer.so.0 | |
141 | # plugins | |
2edbe753 | 142 | %attr(755,root,root) %{_libdir}/libCEGUIdirectfbRenderer.so.*.*.* |
143 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIdirectfbRenderer.so.0 | |
144 | %attr(755,root,root) %{_libdir}/libCEGUIdirectfbRenderer.so | |
d4686777 JB |
145 | %attr(755,root,root) %{_libdir}/libCEGUICoronaImageCodec.so.*.*.* |
146 | %attr(755,root,root) %ghost %{_libdir}/libCEGUICoronaImageCodec.so.0 | |
147 | %attr(755,root,root) %{_libdir}/libCEGUICoronaImageCodec.so | |
148 | %attr(755,root,root) %{_libdir}/libCEGUIDevILImageCodec.so.*.*.* | |
149 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIDevILImageCodec.so.0 | |
3b0715c7 | 150 | %attr(755,root,root) %{_libdir}/libCEGUIDevILImageCodec.so |
d4686777 JB |
151 | %attr(755,root,root) %{_libdir}/libCEGUIExpatParser.so.*.*.* |
152 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIExpatParser.so.0 | |
3b0715c7 | 153 | %attr(755,root,root) %{_libdir}/libCEGUIExpatParser.so |
d4686777 JB |
154 | %attr(755,root,root) %{_libdir}/libCEGUIFalagardWRBase.so.*.*.* |
155 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIFalagardWRBase.so.1 | |
3b0715c7 | 156 | %attr(755,root,root) %{_libdir}/libCEGUIFalagardWRBase.so |
d4686777 JB |
157 | %attr(755,root,root) %{_libdir}/libCEGUIFreeImageImageCodec.so.*.*.* |
158 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIFreeImageImageCodec.so.0 | |
3b0715c7 | 159 | %attr(755,root,root) %{_libdir}/libCEGUIFreeImageImageCodec.so |
d4686777 JB |
160 | %attr(755,root,root) %{_libdir}/libCEGUIIrrlichtRenderer.so.*.*.* |
161 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIIrrlichtRenderer.so.0 | |
3b0715c7 | 162 | %attr(755,root,root) %{_libdir}/libCEGUIIrrlichtRenderer.so |
d4686777 JB |
163 | %attr(755,root,root) %{_libdir}/libCEGUILibxmlParser.so.*.*.* |
164 | %attr(755,root,root) %ghost %{_libdir}/libCEGUILibxmlParser.so.0 | |
3b0715c7 | 165 | %attr(755,root,root) %{_libdir}/libCEGUILibxmlParser.so |
d4686777 JB |
166 | %attr(755,root,root) %{_libdir}/libCEGUILuaScriptModule.so.*.*.* |
167 | %attr(755,root,root) %ghost %{_libdir}/libCEGUILuaScriptModule.so.1 | |
3b0715c7 | 168 | %attr(755,root,root) %{_libdir}/libCEGUILuaScriptModule.so |
d4686777 JB |
169 | %attr(755,root,root) %{_libdir}/libCEGUISILLYImageCodec.so.*.*.* |
170 | %attr(755,root,root) %ghost %{_libdir}/libCEGUISILLYImageCodec.so.0 | |
3b0715c7 | 171 | %attr(755,root,root) %{_libdir}/libCEGUISILLYImageCodec.so |
d4686777 JB |
172 | %attr(755,root,root) %{_libdir}/libCEGUITGAImageCodec.so.*.*.* |
173 | %attr(755,root,root) %ghost %{_libdir}/libCEGUITGAImageCodec.so.0 | |
3b0715c7 | 174 | %attr(755,root,root) %{_libdir}/libCEGUITGAImageCodec.so |
d4686777 JB |
175 | %attr(755,root,root) %{_libdir}/libCEGUITinyXMLParser.so.*.*.* |
176 | %attr(755,root,root) %ghost %{_libdir}/libCEGUITinyXMLParser.so.0 | |
3b0715c7 | 177 | %attr(755,root,root) %{_libdir}/libCEGUITinyXMLParser.so |
d4686777 JB |
178 | %attr(755,root,root) %{_libdir}/libCEGUIXercesParser.so.*.*.* |
179 | %attr(755,root,root) %ghost %{_libdir}/libCEGUIXercesParser.so.0 | |
3b0715c7 | 180 | %attr(755,root,root) %{_libdir}/libCEGUIXercesParser.so |
d4686777 JB |
181 | %attr(755,root,root) %{_libdir}/libCEGUItoluapp.so.*.*.* |
182 | %attr(755,root,root) %ghost %{_libdir}/libCEGUItoluapp.so.1 | |
183 | %attr(755,root,root) %{_libdir}/libCEGUItoluapp.so | |
715a1989 BZ |
184 | |
185 | %files docs | |
cbbebc22 | 186 | %defattr(644,root,root,755) |
715a1989 BZ |
187 | %doc documentation |
188 | %dir %{_datadir}/%{name} | |
189 | %dir %{_datadir}/%{name}/XMLRefSchema | |
190 | %{_datadir}/%{name}/XMLRefSchema/*.xsd | |
191 | %{_datadir}/%{name}/XMLRefSchema/Readme.txt | |
a7c52a89 ŁK |
192 | |
193 | %files devel | |
194 | %defattr(644,root,root,755) | |
3b0715c7 BZ |
195 | %attr(755,root,root) %{_libdir}/libCEGUIBase.so |
196 | %attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer.so | |
d4686777 JB |
197 | %{_libdir}/libCEGUIBase.la |
198 | %{_libdir}/libCEGUIOpenGLRenderer.la | |
199 | # plugins - but as their headers are included... | |
2edbe753 | 200 | %{_libdir}/libCEGUIdirectfbRenderer.la |
d4686777 JB |
201 | %{_libdir}/libCEGUICoronaImageCodec.la |
202 | %{_libdir}/libCEGUIDevILImageCodec.la | |
203 | %{_libdir}/libCEGUIExpatParser.la | |
204 | %{_libdir}/libCEGUIFalagardWRBase.la | |
205 | %{_libdir}/libCEGUIFreeImageImageCodec.la | |
206 | %{_libdir}/libCEGUIIrrlichtRenderer.la | |
207 | %{_libdir}/libCEGUILibxmlParser.la | |
208 | %{_libdir}/libCEGUILuaScriptModule.la | |
209 | %{_libdir}/libCEGUISILLYImageCodec.la | |
210 | %{_libdir}/libCEGUITGAImageCodec.la | |
211 | %{_libdir}/libCEGUITinyXMLParser.la | |
212 | %{_libdir}/libCEGUIXercesParser.la | |
213 | %{_libdir}/libCEGUItoluapp.la | |
71dc0787 | 214 | %{_includedir}/%{name} |
54df35ea JB |
215 | %{_pkgconfigdir}/CEGUI.pc |
216 | %{_pkgconfigdir}/CEGUI-OPENGL.pc |