]>
Commit | Line | Data |
---|---|---|
a622c152 | 1 | %define pref /usr |
927330ab | 2 | %define ver 2.5.3 |
c31752da | 3 | %define ver2 2.5 |
014e19de | 4 | %define rel 1 |
a622c152 | 5 | |
4eba1840 VS |
6 | %define portname motif |
7 | %define name wx-%{portname} | |
8 | %define wxbasename wx-base | |
9 | %define wxconfigname wx%{portname}-%{ver2}-config | |
10 | ||
f6bcfd97 | 11 | Summary: The Motif/Lesstif port of the wxWindows library |
4eba1840 | 12 | Name: %{name} |
a622c152 RR |
13 | Version: %{ver} |
14 | Release: %{rel} | |
4eba1840 | 15 | License: wxWindows Licence |
a622c152 | 16 | Group: X11/Libraries |
a3e78c76 | 17 | Source: wxMOTIF-%{ver}.tar.bz2 |
0fdc1ca1 VZ |
18 | URL: http://www.wxwidgets.org |
19 | Packager: wxWindows developers <wx-dev@lists.wxwidgets.org> | |
a622c152 RR |
20 | BuildRoot: /tmp/wxmotif_root |
21 | ||
22 | # all packages providing an implementation of wxWindows library (regardless of | |
23 | # the toolkit used) should provide the (virtual) wxwin package, this makes it | |
6e711d5c | 24 | # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..." |
a622c152 RR |
25 | Provides: wxwin |
26 | ||
4eba1840 VS |
27 | Provides: wxMotif |
28 | ||
29 | Requires: %{wxbasename} = %{ver} | |
4eba1840 | 30 | |
a622c152 RR |
31 | %description |
32 | wxWindows is a free C++ library for cross-platform GUI development. | |
33 | With wxWindows, you can create applications for different GUIs (GTK+, | |
34 | Motif/LessTif, MS Windows, Mac) from the same source code. | |
35 | ||
f6bcfd97 BP |
36 | %package devel |
37 | Summary: The Motif/Lesstif port of the wxWindows library | |
38 | Group: X11/Libraries | |
4eba1840 VS |
39 | Requires: %{name} = %{ver} |
40 | Requires: %{wxbasename}-devel = %{ver} | |
f6bcfd97 BP |
41 | |
42 | %description devel | |
43 | Header files for wxMotif, the Motif/Lesstif port of the wxWindows library. | |
44 | ||
45 | %package gl | |
406e3e0d | 46 | Summary: The Motif/Lesstif port of the wxWindows library, OpenGL add-on. |
f6bcfd97 | 47 | Group: X11/Libraries |
4eba1840 | 48 | Requires: %{name} = %{ver} |
f6bcfd97 BP |
49 | |
50 | %description gl | |
406e3e0d VS |
51 | OpenGL add-on library for wxMotif, the Motif/Lesstif port of the wxWindows library. |
52 | ||
53 | %package static | |
54 | Summary: wxMotif static libraries | |
55 | Group: Development/Libraries | |
56 | ||
57 | %description static | |
58 | Static libraries for wxMotif. You need them if you want to link statically against wxMotif. | |
59 | ||
a622c152 | 60 | %prep |
4eba1840 | 61 | %setup -q -n wxMOTIF-%{ver} |
a622c152 RR |
62 | |
63 | %build | |
f6bcfd97 BP |
64 | if [ "$SMP" != "" ]; then |
65 | export MAKE="make -j$SMP" | |
66 | else | |
67 | export MAKE="make" | |
68 | fi | |
406e3e0d | 69 | |
406e3e0d VS |
70 | mkdir obj-shared |
71 | cd obj-shared | |
86ec2935 | 72 | ../configure --prefix=%{pref} --with-odbc --with-opengl --with-motif |
f6bcfd97 | 73 | $MAKE |
406e3e0d VS |
74 | cd .. |
75 | ||
76 | mkdir obj-static | |
77 | cd obj-static | |
78 | ../configure --prefix=%{pref} --disable-shared --with-odbc --with-opengl --with-motif | |
79 | $MAKE | |
80 | cd .. | |
a622c152 RR |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
406e3e0d VS |
84 | (cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install) |
85 | (cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install) | |
a622c152 | 86 | |
4eba1840 | 87 | # Remove headers that are part of wx-base-devel: |
d10382ab VS |
88 | |
89 | # --- wxBase headers list begins here --- | |
90 | cat <<EOF >wxbase-headers-list | |
91 | wx/afterstd.h | |
92 | wx/app.h | |
93 | wx/apptrait.h | |
94 | wx/arrimpl.cpp | |
95 | wx/arrstr.h | |
96 | wx/beforestd.h | |
97 | wx/buffer.h | |
98 | wx/build.h | |
99 | wx/chkconf.h | |
82b0b7f6 | 100 | wx/clntdata.h |
d10382ab VS |
101 | wx/cmdline.h |
102 | wx/confbase.h | |
103 | wx/config.h | |
104 | wx/containr.h | |
105 | wx/datetime.h | |
106 | wx/datetime.inl | |
107 | wx/datstrm.h | |
108 | wx/dde.h | |
109 | wx/debug.h | |
110 | wx/defs.h | |
111 | wx/dir.h | |
20b35a69 | 112 | wx/dlimpexp.h |
d10382ab VS |
113 | wx/dynarray.h |
114 | wx/dynlib.h | |
115 | wx/dynload.h | |
116 | wx/encconv.h | |
117 | wx/event.h | |
671a85ea | 118 | wx/except.h |
d10382ab VS |
119 | wx/features.h |
120 | wx/ffile.h | |
121 | wx/file.h | |
122 | wx/fileconf.h | |
123 | wx/filefn.h | |
124 | wx/filename.h | |
125 | wx/filesys.h | |
126 | wx/fontenc.h | |
127 | wx/fontmap.h | |
128 | wx/fs_mem.h | |
129 | wx/fs_zip.h | |
130 | wx/hash.h | |
131 | wx/hashmap.h | |
132 | wx/hashset.h | |
133 | wx/iconloc.h | |
134 | wx/init.h | |
135 | wx/intl.h | |
136 | wx/iosfwrap.h | |
137 | wx/ioswrap.h | |
138 | wx/ipc.h | |
139 | wx/ipcbase.h | |
140 | wx/isql.h | |
141 | wx/isqlext.h | |
142 | wx/list.h | |
143 | wx/listimpl.cpp | |
144 | wx/log.h | |
145 | wx/longlong.h | |
146 | wx/math.h | |
147 | wx/memconf.h | |
148 | wx/memory.h | |
149 | wx/memtext.h | |
150 | wx/mimetype.h | |
151 | wx/module.h | |
152 | wx/msgout.h | |
153 | wx/msgout.h | |
154 | wx/mstream.h | |
155 | wx/object.h | |
156 | wx/platform.h | |
157 | wx/process.h | |
158 | wx/ptr_scpd.h | |
159 | wx/regex.h | |
160 | wx/scopeguard.h | |
161 | wx/snglinst.h | |
c33fae85 | 162 | wx/sstream.h |
b71531ad | 163 | wx/stack.h |
ef335a4f | 164 | wx/stockitem.h |
d10382ab VS |
165 | wx/stopwatch.h |
166 | wx/strconv.h | |
167 | wx/stream.h | |
168 | wx/string.h | |
169 | wx/sysopt.h | |
170 | wx/textbuf.h | |
171 | wx/textfile.h | |
172 | wx/thread.h | |
173 | wx/thrimpl.cpp | |
174 | wx/timer.h | |
175 | wx/tokenzr.h | |
176 | wx/txtstrm.h | |
177 | wx/types.h | |
178 | wx/utils.h | |
179 | wx/variant.h | |
180 | wx/vector.h | |
181 | wx/version.h | |
182 | wx/volume.h | |
183 | wx/wfstream.h | |
184 | wx/wx.h | |
185 | wx/wxchar.h | |
186 | wx/wxprec.h | |
187 | wx/xti.h | |
188 | wx/xtistrm.h | |
189 | wx/zipstrm.h | |
190 | wx/zstream.h | |
191 | wx/msw/apptrait.h | |
192 | wx/msw/apptbase.h | |
193 | wx/msw/chkconf.h | |
194 | wx/msw/crashrpt.h | |
195 | wx/msw/dde.h | |
196 | wx/msw/gccpriv.h | |
197 | wx/msw/mimetype.h | |
198 | wx/msw/winundef.h | |
199 | wx/msw/wrapcctl.h | |
200 | wx/msw/wrapwin.h | |
201 | wx/fs_inet.h | |
202 | wx/gsocket.h | |
203 | wx/protocol/file.h | |
204 | wx/protocol/ftp.h | |
205 | wx/protocol/http.h | |
206 | wx/protocol/protocol.h | |
207 | wx/sckaddr.h | |
208 | wx/sckipc.h | |
209 | wx/sckstrm.h | |
210 | wx/socket.h | |
211 | wx/url.h | |
212 | wx/msw/gsockmsw.h | |
213 | wx/xml/xml.h | |
214 | wx/xtixml.h | |
215 | wx/db.h | |
216 | wx/dbkeyg.h | |
217 | wx/dbtable.h | |
218 | EOF | |
219 | # --- wxBase headers list ends here --- | |
220 | for f in `cat wxbase-headers-list` ; do | |
68b47b2f | 221 | rm -f $RPM_BUILD_ROOT%{_includedir}/wx-*/$f |
4eba1840 | 222 | done |
4eba1840 VS |
223 | |
224 | # list of all core headers: | |
225 | find $RPM_BUILD_ROOT/usr/include/wx -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files | |
226 | ||
88e3652f VS |
227 | # remove wxBase files so that RPM doesn't complain about unpackaged files: |
228 | rm -f $RPM_BUILD_ROOT%{_libdir}/libwx_base* | |
229 | rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/* | |
230 | rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/*/* | |
231 | ||
acea2a0b | 232 | |
a622c152 RR |
233 | %clean |
234 | rm -rf $RPM_BUILD_ROOT | |
235 | ||
236 | %post | |
237 | /sbin/ldconfig | |
238 | ||
239 | %postun | |
240 | /sbin/ldconfig | |
241 | ||
a3e78c76 VS |
242 | %post gl |
243 | /sbin/ldconfig | |
244 | ||
245 | %postun gl | |
246 | /sbin/ldconfig | |
247 | ||
a3e78c76 | 248 | |
4eba1840 VS |
249 | %files |
250 | %defattr(-,root,root) | |
a3e78c76 VS |
251 | %doc COPYING.LIB *.txt |
252 | %dir %{_datadir}/wx | |
253 | %{_datadir}/wx/* | |
4eba1840 VS |
254 | %{_libdir}/libwx_%{portname}*_core*.so.* |
255 | %{_libdir}/libwx_%{portname}*_html*.so.* | |
256 | %{_libdir}/libwx_%{portname}*_adv*.so.* | |
257 | %{_libdir}/libwx_%{portname}*_dbgrid*.so.* | |
f6bcfd97 | 258 | |
4eba1840 VS |
259 | %files devel -f core-headers.files |
260 | %defattr(-,root,root) | |
261 | %{_libdir}/libwx_%{portname}*_core*.so | |
262 | %{_libdir}/libwx_%{portname}*_html*.so | |
263 | %{_libdir}/libwx_%{portname}*_adv*.so | |
264 | %{_libdir}/libwx_%{portname}*_dbgrid*.so | |
265 | %{_libdir}/libwx_%{portname}*_gl*.so | |
a3e78c76 VS |
266 | %dir %{_libdir}/wx |
267 | %{_libdir}/wx/* | |
4eba1840 | 268 | %{_bindir}/%{wxconfigname} |
a622c152 | 269 | |
f6bcfd97 | 270 | %files gl |
a3e78c76 | 271 | %defattr(-,root,root) |
4eba1840 | 272 | %{_libdir}/libwx_%{portname}*_gl*.so.* |
406e3e0d VS |
273 | |
274 | %files static | |
275 | %defattr (-,root,root) | |
4eba1840 | 276 | %{_libdir}/libwx_%{portname}*.a |
0fdc1ca1 | 277 |