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