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