]> git.saurik.com Git - wxWidgets.git/blame - wxMotif.spec
OW prototypes does not use ints in Unicode.
[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
dd65d8c8 164wx/stdpaths.h
ef335a4f 165wx/stockitem.h
d10382ab
VS
166wx/stopwatch.h
167wx/strconv.h
168wx/stream.h
169wx/string.h
170wx/sysopt.h
171wx/textbuf.h
172wx/textfile.h
173wx/thread.h
174wx/thrimpl.cpp
175wx/timer.h
176wx/tokenzr.h
177wx/txtstrm.h
178wx/types.h
dd65d8c8 179wx/uri.h
d10382ab
VS
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
0fdc1ca1 279