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