]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxMotif.spec
submenus have to work in these as well
[wxWidgets.git] / wxMotif.spec
... / ...
CommitLineData
1%define pref /usr
2%define ver 2.5.4
3%define ver2 2.5
4%define rel 1
5
6%define portname motif
7%define name wx-%{portname}
8%define wxbasename wx-base
9%define wxconfigname wx%{portname}-%{ver2}-config
10
11Summary: The Motif/Lesstif port of the wxWindows library
12Name: %{name}
13Version: %{ver}
14Release: %{rel}
15License: wxWindows Licence
16Group: X11/Libraries
17Source: wxMOTIF-%{ver}.tar.bz2
18URL: http://www.wxwidgets.org
19Packager: wxWindows developers <wx-dev@lists.wxwidgets.org>
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
24# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
25Provides: wxwin
26
27Provides: wxMotif
28
29Requires: %{wxbasename} = %{ver}
30
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
36%package devel
37Summary: The Motif/Lesstif port of the wxWindows 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 wxWindows library.
44
45%package gl
46Summary: The Motif/Lesstif port of the wxWindows 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 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
60%prep
61%setup -q -n wxMOTIF-%{ver}
62
63%build
64if [ "$SMP" != "" ]; then
65 export MAKE="make -j$SMP"
66else
67 export MAKE="make"
68fi
69
70mkdir obj-shared
71cd obj-shared
72../configure --prefix=%{pref} --with-odbc --with-opengl --with-motif
73$MAKE
74cd ..
75
76mkdir obj-static
77cd obj-static
78../configure --prefix=%{pref} --disable-shared --with-odbc --with-opengl --with-motif
79$MAKE
80cd ..
81
82%install
83rm -rf $RPM_BUILD_ROOT
84(cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install)
85(cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install)
86
87# Remove headers that are part of wx-base-devel:
88
89# --- wxBase headers list begins here ---
90cat <<EOF >wxbase-headers-list
91wx/afterstd.h
92wx/app.h
93wx/apptrait.h
94wx/archive.h
95wx/arrimpl.cpp
96wx/arrstr.h
97wx/beforestd.h
98wx/buffer.h
99wx/build.h
100wx/chkconf.h
101wx/clntdata.h
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
113wx/dlimpexp.h
114wx/dynarray.h
115wx/dynlib.h
116wx/dynload.h
117wx/encconv.h
118wx/event.h
119wx/except.h
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
163wx/sstream.h
164wx/stack.h
165wx/stackwalk.h
166wx/stdpaths.h
167wx/stockitem.h
168wx/stopwatch.h
169wx/strconv.h
170wx/stream.h
171wx/string.h
172wx/sysopt.h
173wx/textbuf.h
174wx/textfile.h
175wx/thread.h
176wx/thrimpl.cpp
177wx/timer.h
178wx/tokenzr.h
179wx/txtstrm.h
180wx/types.h
181wx/uri.h
182wx/utils.h
183wx/variant.h
184wx/vector.h
185wx/version.h
186wx/volume.h
187wx/wfstream.h
188wx/wx.h
189wx/wxchar.h
190wx/wxprec.h
191wx/xti.h
192wx/xtistrm.h
193wx/zipstrm.h
194wx/zstream.h
195wx/msw/apptrait.h
196wx/msw/apptbase.h
197wx/msw/chkconf.h
198wx/msw/crashrpt.h
199wx/msw/dde.h
200wx/msw/debughlp.h
201wx/msw/gccpriv.h
202wx/msw/mimetype.h
203wx/msw/stackwalk.h
204wx/msw/winundef.h
205wx/msw/wrapcctl.h
206wx/msw/wrapwin.h
207wx/fs_inet.h
208wx/gsocket.h
209wx/protocol/file.h
210wx/protocol/ftp.h
211wx/protocol/http.h
212wx/protocol/protocol.h
213wx/sckaddr.h
214wx/sckipc.h
215wx/sckstrm.h
216wx/socket.h
217wx/url.h
218wx/msw/gsockmsw.h
219wx/xml/xml.h
220wx/xtixml.h
221wx/db.h
222wx/dbkeyg.h
223wx/dbtable.h
224EOF
225# --- wxBase headers list ends here ---
226for f in `cat wxbase-headers-list` ; do
227 rm -f $RPM_BUILD_ROOT%{_includedir}/wx-*/$f
228done
229
230# list of all core headers:
231find $RPM_BUILD_ROOT/usr/include/wx -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files
232
233# remove wxBase files so that RPM doesn't complain about unpackaged files:
234rm -f $RPM_BUILD_ROOT%{_libdir}/libwx_base*
235rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/*
236rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/*/*
237
238
239%clean
240rm -rf $RPM_BUILD_ROOT
241
242%post
243/sbin/ldconfig
244
245%postun
246/sbin/ldconfig
247
248%post gl
249/sbin/ldconfig
250
251%postun gl
252/sbin/ldconfig
253
254
255%files
256%defattr(-,root,root)
257%doc COPYING.LIB *.txt
258%{_libdir}/libwx_%{portname}*_core*.so.*
259%{_libdir}/libwx_%{portname}*_html*.so.*
260%{_libdir}/libwx_%{portname}*_adv*.so.*
261%{_libdir}/libwx_%{portname}*_dbgrid*.so.*
262
263%files devel -f core-headers.files
264%defattr(-,root,root)
265%{_libdir}/libwx_%{portname}*_core*.so
266%{_libdir}/libwx_%{portname}*_html*.so
267%{_libdir}/libwx_%{portname}*_adv*.so
268%{_libdir}/libwx_%{portname}*_dbgrid*.so
269%{_libdir}/libwx_%{portname}*_gl*.so
270%dir %{_libdir}/wx
271%{_libdir}/wx/*
272%{_bindir}/%{wxconfigname}
273
274%files gl
275%defattr(-,root,root)
276%{_libdir}/libwx_%{portname}*_gl*.so.*
277
278%files static
279%defattr (-,root,root)
280%{_libdir}/libwx_%{portname}*.a
281