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