]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxMotif.spec
Script updates
[wxWidgets.git] / wxMotif.spec
... / ...
CommitLineData
1%define pref /usr
2%define ver 2.5.3
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/arrimpl.cpp
95wx/arrstr.h
96wx/beforestd.h
97wx/buffer.h
98wx/build.h
99wx/chkconf.h
100wx/clntdata.h
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
112wx/dlimpexp.h
113wx/dynarray.h
114wx/dynlib.h
115wx/dynload.h
116wx/encconv.h
117wx/event.h
118wx/except.h
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
162wx/sstream.h
163wx/stack.h
164wx/stockitem.h
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
221 rm -f $RPM_BUILD_ROOT%{_includedir}/wx-*/$f
222done
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
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
232
233%clean
234rm -rf $RPM_BUILD_ROOT
235
236%post
237/sbin/ldconfig
238
239%postun
240/sbin/ldconfig
241
242%post gl
243/sbin/ldconfig
244
245%postun gl
246/sbin/ldconfig
247
248
249%files
250%defattr(-,root,root)
251%doc COPYING.LIB *.txt
252%dir %{_datadir}/wx
253%{_datadir}/wx/*
254%{_libdir}/libwx_%{portname}*_core*.so.*
255%{_libdir}/libwx_%{portname}*_html*.so.*
256%{_libdir}/libwx_%{portname}*_adv*.so.*
257%{_libdir}/libwx_%{portname}*_dbgrid*.so.*
258
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
266%dir %{_libdir}/wx
267%{_libdir}/wx/*
268%{_bindir}/%{wxconfigname}
269
270%files gl
271%defattr(-,root,root)
272%{_libdir}/libwx_%{portname}*_gl*.so.*
273
274%files static
275%defattr (-,root,root)
276%{_libdir}/libwx_%{portname}*.a
277