]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxMotif.spec
mci can't play video on win2k - disable for now
[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/stdpaths.h
165wx/stockitem.h
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
179wx/uri.h
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
223 rm -f $RPM_BUILD_ROOT%{_includedir}/wx-*/$f
224done
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
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
234
235%clean
236rm -rf $RPM_BUILD_ROOT
237
238%post
239/sbin/ldconfig
240
241%postun
242/sbin/ldconfig
243
244%post gl
245/sbin/ldconfig
246
247%postun gl
248/sbin/ldconfig
249
250
251%files
252%defattr(-,root,root)
253%doc COPYING.LIB *.txt
254%dir %{_datadir}/wx
255%{_datadir}/wx/*
256%{_libdir}/libwx_%{portname}*_core*.so.*
257%{_libdir}/libwx_%{portname}*_html*.so.*
258%{_libdir}/libwx_%{portname}*_adv*.so.*
259%{_libdir}/libwx_%{portname}*_dbgrid*.so.*
260
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
268%dir %{_libdir}/wx
269%{_libdir}/wx/*
270%{_bindir}/%{wxconfigname}
271
272%files gl
273%defattr(-,root,root)
274%{_libdir}/libwx_%{portname}*_gl*.so.*
275
276%files static
277%defattr (-,root,root)
278%{_libdir}/libwx_%{portname}*.a
279