]> git.saurik.com Git - wxWidgets.git/blame - wxMotif.spec
fixed memory leak in Submit(cmd, false) (bug 1037115)
[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
94wx/arrimpl.cpp
95wx/arrstr.h
96wx/beforestd.h
97wx/buffer.h
98wx/build.h
99wx/chkconf.h
82b0b7f6 100wx/clntdata.h
d10382ab
VS
101wx/cmdline.h
102wx/confbase.h
103wx/config.h
104wx/containr.h
105wx/datetime.h
106wx/datetime.inl
107wx/datstrm.h
108wx/dde.h
109wx/debug.h
110wx/defs.h
111wx/dir.h
20b35a69 112wx/dlimpexp.h
d10382ab
VS
113wx/dynarray.h
114wx/dynlib.h
115wx/dynload.h
116wx/encconv.h
117wx/event.h
671a85ea 118wx/except.h
d10382ab
VS
119wx/features.h
120wx/ffile.h
121wx/file.h
122wx/fileconf.h
123wx/filefn.h
124wx/filename.h
125wx/filesys.h
126wx/fontenc.h
127wx/fontmap.h
128wx/fs_mem.h
129wx/fs_zip.h
130wx/hash.h
131wx/hashmap.h
132wx/hashset.h
133wx/iconloc.h
134wx/init.h
135wx/intl.h
136wx/iosfwrap.h
137wx/ioswrap.h
138wx/ipc.h
139wx/ipcbase.h
140wx/isql.h
141wx/isqlext.h
142wx/list.h
143wx/listimpl.cpp
144wx/log.h
145wx/longlong.h
146wx/math.h
147wx/memconf.h
148wx/memory.h
149wx/memtext.h
150wx/mimetype.h
151wx/module.h
152wx/msgout.h
153wx/msgout.h
154wx/mstream.h
155wx/object.h
156wx/platform.h
157wx/process.h
158wx/ptr_scpd.h
159wx/regex.h
160wx/scopeguard.h
161wx/snglinst.h
c33fae85 162wx/sstream.h
b71531ad 163wx/stack.h
ef335a4f 164wx/stockitem.h
d10382ab
VS
165wx/stopwatch.h
166wx/strconv.h
167wx/stream.h
168wx/string.h
169wx/sysopt.h
170wx/textbuf.h
171wx/textfile.h
172wx/thread.h
173wx/thrimpl.cpp
174wx/timer.h
175wx/tokenzr.h
176wx/txtstrm.h
177wx/types.h
178wx/utils.h
179wx/variant.h
180wx/vector.h
181wx/version.h
182wx/volume.h
183wx/wfstream.h
184wx/wx.h
185wx/wxchar.h
186wx/wxprec.h
187wx/xti.h
188wx/xtistrm.h
189wx/zipstrm.h
190wx/zstream.h
191wx/msw/apptrait.h
192wx/msw/apptbase.h
193wx/msw/chkconf.h
194wx/msw/crashrpt.h
195wx/msw/dde.h
196wx/msw/gccpriv.h
197wx/msw/mimetype.h
198wx/msw/winundef.h
199wx/msw/wrapcctl.h
200wx/msw/wrapwin.h
201wx/fs_inet.h
202wx/gsocket.h
203wx/protocol/file.h
204wx/protocol/ftp.h
205wx/protocol/http.h
206wx/protocol/protocol.h
207wx/sckaddr.h
208wx/sckipc.h
209wx/sckstrm.h
210wx/socket.h
211wx/url.h
212wx/msw/gsockmsw.h
213wx/xml/xml.h
214wx/xtixml.h
215wx/db.h
216wx/dbkeyg.h
217wx/dbtable.h
218EOF
219# --- wxBase headers list ends here ---
220for f in `cat wxbase-headers-list` ; do
68b47b2f 221 rm -f $RPM_BUILD_ROOT%{_includedir}/wx-*/$f
4eba1840 222done
4eba1840
VS
223
224# list of all core headers:
225find $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:
228rm -f $RPM_BUILD_ROOT%{_libdir}/libwx_base*
229rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/*
230rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/*/*
231
acea2a0b 232
a622c152
RR
233%clean
234rm -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