]> git.saurik.com Git - wxWidgets.git/blob - wxMotif.spec
Set the window in focus event sent by wxComboCtrl correctly.
[wxWidgets.git] / wxMotif.spec
1 %define pref /usr
2 %define ver 2.9.2
3 %define ver2 2.9
4 %define rel 1
5
6 %define portname motif
7 %define name wx-%{portname}
8 %define wxbasename wx-base
9
10 %define wxconfig %{portname}-ansi-%{ver2}
11 %define wxconfiglink wx%{portname}-%{ver2}-config
12
13 Summary: The Motif/Lesstif port of the wxWidgets library
14 Name: %{name}
15 Version: %{ver}
16 Release: %{rel}
17 License: wxWindows Licence
18 Group: X11/Libraries
19 Source: wxMotif-%{ver}.tar.bz2
20 URL: http://www.wxwidgets.org
21 Packager: wxWidgets developers <wx-dev@lists.wxwidgets.org>
22 BuildRoot: %{_tmppath}/%{name}-root
23 Requires: %{wxbasename} = %{ver}
24
25 # all packages providing an implementation of wxWidgets library (regardless of
26 # the toolkit used) should provide the (virtual) wxwin package, this makes it
27 # possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
28 Provides: wxwin
29 Provides: wxMotif
30
31 %description
32 wxWidgets is a free C++ library for cross-platform GUI development.
33 With wxWidgets, you can create applications for different GUIs (GTK+,
34 Motif/LessTif, MS Windows, Mac) from the same source code.
35
36 %package devel
37 Summary: The Motif/Lesstif port of the wxWidgets library
38 Group: X11/Libraries
39 Requires: %{name} = %{ver}
40 Requires: %{wxbasename}-devel = %{ver}
41
42 %description devel
43 Header files for wxMotif, the Motif/Lesstif port of the wxWidgets library.
44
45 %package gl
46 Summary: The Motif/Lesstif port of the wxWidgets library, OpenGL add-on.
47 Group: X11/Libraries
48 Requires: %{name} = %{ver}
49
50 %description gl
51 OpenGL add-on library for wxMotif, the Motif/Lesstif port of the wxWidgets library.
52
53 %package static
54 Summary: wxMotif static libraries
55 Group: Development/Libraries
56 Requires: %{wxbasename}-static
57 Requires: %{name}-devel = %{ver}
58
59 %description static
60 Static libraries for wxMotif. You need them if you want to link statically against wxMotif.
61
62 %prep
63 %setup -q -n wxMotif-%{ver}
64
65 %build
66 if [ "$SMP" != "" ]; then
67 export MAKE="make -j$SMP"
68 else
69 export MAKE="make"
70 fi
71
72 mkdir obj-shared
73 cd obj-shared
74 ../configure --prefix=%{pref} --with-motif --with-opengl
75 $MAKE
76 cd ..
77
78 mkdir obj-static
79 cd obj-static
80 ../configure --prefix=%{pref} --with-motif --disable-shared --with-opengl
81 $MAKE
82 cd ..
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 (cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install)
87 (cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install)
88
89 # Remove headers that are part of wx-base-devel:
90
91 # --- wxBase headers list begins here ---
92 cat <<EOF >wxbase-headers.files
93 wx/afterstd.h
94 wx/any.h
95 wx/anystr.h
96 wx/app.h
97 wx/apptrait.h
98 wx/archive.h
99 wx/arrimpl.cpp
100 wx/arrstr.h
101 wx/atomic.h
102 wx/base64.h
103 wx/beforestd.h
104 wx/buffer.h
105 wx/build.h
106 wx/chartype.h
107 wx/checkeddelete.h
108 wx/chkconf.h
109 wx/clntdata.h
110 wx/cmdargs.h
111 wx/cmdline.h
112 wx/confbase.h
113 wx/config.h
114 wx/convauto.h
115 wx/containr.h
116 wx/cpp.h
117 wx/crt.h
118 wx/datetime.h
119 wx/datstrm.h
120 wx/dde.h
121 wx/debug.h
122 wx/defs.h
123 wx/dir.h
124 wx/dlimpexp.h
125 wx/dlist.h
126 wx/dynarray.h
127 wx/dynlib.h
128 wx/dynload.h
129 wx/encconv.h
130 wx/event.h
131 wx/evtloop.h
132 wx/except.h
133 wx/features.h
134 wx/flags.h
135 wx/ffile.h
136 wx/file.h
137 wx/fileconf.h
138 wx/filefn.h
139 wx/filename.h
140 wx/filesys.h
141 wx/fontenc.h
142 wx/fontmap.h
143 wx/fs_arc.h
144 wx/fs_filter.h
145 wx/fs_mem.h
146 wx/fs_zip.h
147 wx/hash.h
148 wx/hashmap.h
149 wx/hashset.h
150 wx/html/forcelnk.h
151 wx/iconloc.h
152 wx/init.h
153 wx/intl.h
154 wx/iosfwrap.h
155 wx/ioswrap.h
156 wx/ipc.h
157 wx/ipcbase.h
158 wx/kbdstate.h
159 wx/language.h
160 wx/link.h
161 wx/list.h
162 wx/listimpl.cpp
163 wx/log.h
164 wx/longlong.h
165 wx/math.h
166 wx/memconf.h
167 wx/memory.h
168 wx/memtext.h
169 wx/mimetype.h
170 wx/module.h
171 wx/mousestate.h
172 wx/msgout.h
173 wx/msgqueue.h
174 wx/mstream.h
175 wx/object.h
176 wx/platform.h
177 wx/platinfo.h
178 wx/power.h
179 wx/process.h
180 wx/ptr_scpd.h
181 wx/ptr_shrd.h
182 wx/recguard.h
183 wx/regex.h
184 wx/scopedarray.h
185 wx/scopedptr.h
186 wx/scopeguard.h
187 wx/sharedptr.h
188 wx/snglinst.h
189 wx/sstream.h
190 wx/stack.h
191 wx/stackwalk.h
192 wx/stdpaths.h
193 wx/stdstream.h
194 wx/stockitem.h
195 wx/stopwatch.h
196 wx/strconv.h
197 wx/stream.h
198 wx/string.h
199 wx/stringimpl.h
200 wx/stringops.h
201 wx/strvararg.h
202 wx/sysopt.h
203 wx/tarstrm.h
204 wx/textbuf.h
205 wx/textfile.h
206 wx/thread.h
207 wx/thrimpl.cpp
208 wx/timer.h
209 wx/tls.h
210 wx/tokenzr.h
211 wx/tracker.h
212 wx/translation.h
213 wx/txtstrm.h
214 wx/typeinfo.h
215 wx/types.h
216 wx/unichar.h
217 wx/uri.h
218 wx/ustring.h
219 wx/utils.h
220 wx/variant.h
221 wx/vector.h
222 wx/version.h
223 wx/versioninfo.h
224 wx/volume.h
225 wx/weakref.h
226 wx/wfstream.h
227 wx/wx.h
228 wx/wxchar.h
229 wx/wxcrt.h
230 wx/wxcrtbase.h
231 wx/wxcrtvararg.h
232 wx/wxprec.h
233 wx/xlocale.h
234 wx/xti.h
235 wx/xtistrm.h
236 wx/zipstrm.h
237 wx/zstream.h
238 wx/meta/convertible.h
239 wx/meta/if.h
240 wx/meta/implicitconversion.h
241 wx/meta/int2type.h
242 wx/meta/movable.h
243 wx/meta/pod.h
244 wx/fswatcher.h
245 wx/generic/fswatcher.h
246 wx/unix/app.h
247 wx/unix/apptbase.h
248 wx/unix/apptrait.h
249 wx/unix/chkconf.h
250 wx/unix/evtloop.h
251 wx/unix/evtloopsrc.h
252 wx/unix/pipe.h
253 wx/unix/stdpaths.h
254 wx/unix/stackwalk.h
255 wx/unix/tls.h
256 wx/unix/fswatcher_kqueue.h
257 wx/unix/execute.h
258 wx/unix/mimetype.h
259 wx/unix/fswatcher_inotify.h
260 wx/fs_inet.h
261 wx/protocol/file.h
262 wx/protocol/ftp.h
263 wx/protocol/http.h
264 wx/protocol/log.h
265 wx/protocol/protocol.h
266 wx/sckaddr.h
267 wx/sckipc.h
268 wx/sckstrm.h
269 wx/socket.h
270 wx/url.h
271 wx/xml/xml.h
272 wx/xtixml.h
273 EOF
274 # --- wxBase headers list ends here ---
275 for f in `cat wxbase-headers-list` ; do
276 rm -f $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2}/$f
277 done
278
279 # list of all core headers:
280 find $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files
281
282 # remove wxBase files so that RPM doesn't complain about unpackaged files:
283 rm -f $RPM_BUILD_ROOT%{_libdir}/libwx_base*
284 rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/*
285 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/*/*
286
287 %clean
288 rm -rf $RPM_BUILD_ROOT
289
290 %post
291 /sbin/ldconfig
292
293 %postun
294 /sbin/ldconfig
295
296 %post devel
297 # link wx-config when you install RPM.
298 ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config
299 # link wx-config with explicit name.
300 ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
301 /sbin/ldconfig
302
303 %postun devel
304 /sbin/ldconfig
305
306 %preun devel
307 if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
308 SUM1=`md5sum %{_libdir}/wx/config/%{wxconfig} | cut -c 0-32`
309 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
310 if test "x$SUM1" = "x$SUM2" ; then
311 rm -f %{_bindir}/wx-config
312 fi
313 fi
314 rm -f %{_bindir}/%{wxconfiglink}
315
316 %post gl
317 /sbin/ldconfig
318
319 %postun gl
320 /sbin/ldconfig
321
322 %files
323 %defattr(-,root,root)
324 %doc COPYING.LIB *.txt
325 %{_libdir}/libwx_%{portname}*_adv-%{ver2}.so.*
326 %{_libdir}/libwx_%{portname}*_core-%{ver2}.so.*
327 %{_libdir}/libwx_%{portname}*_html-%{ver2}.so.*
328 %{_libdir}/libwx_%{portname}*_media-%{ver2}.so.*
329 %{_libdir}/libwx_%{portname}*_qa-%{ver2}.so.*
330 %{_libdir}/libwx_%{portname}*_xrc-%{ver2}.so.*
331
332
333 %files devel -f core-headers.files
334 %defattr(-,root,root)
335 %{_libdir}/libwx_%{portname}*_adv-%{ver2}.so
336 %{_libdir}/libwx_%{portname}*_core-%{ver2}.so
337 %{_libdir}/libwx_%{portname}*_gl-%{ver2}.so
338 %{_libdir}/libwx_%{portname}*_html-%{ver2}.so
339 %{_libdir}/libwx_%{portname}*_media-%{ver2}.so
340 %{_libdir}/libwx_%{portname}*_qa-%{ver2}.so
341 %{_libdir}/libwx_%{portname}*_xrc-%{ver2}.so
342 %dir %{_libdir}/wx
343 %{_libdir}/wx/*
344 %{_bindir}/wxrc*
345
346 %files gl
347 %defattr(-,root,root)
348 %{_libdir}/libwx_%{portname}*_gl-%{ver2}.so.*
349
350 %files static
351 %defattr (-,root,root)
352 %{_libdir}/libwx_%{portname}*_*-%{ver2}.a
353