]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxX11.spec
Added wxDialog::GetToolBar for PocketPC
[wxWidgets.git] / wxX11.spec
... / ...
CommitLineData
1%define pref /usr
2%define ver 2.5.4
3%define ver2 2.5
4%define rel 1
5
6# Configurable settings (use --with(out) unicode on rpmbuild cmd line):
7%define unicode 0
8%{?_with_unicode: %{expand: %%define unicode 1}}
9%{?_without_unicode: %{expand: %%define unicode 0}}
10
11%define portname x11
12%if %{unicode}
13%define name wx-%{portname}-unicode
14%define wxbasename wx-base-unicode
15%else
16%define name wx-%{portname}
17%define wxbasename wx-base
18%endif
19
20%if %{unicode}
21%define wxconfigname wx%{portname}univu-%{ver2}-config
22%else
23%define wxconfigname wx%{portname}univ-%{ver2}-config
24%endif
25
26Summary: The X11 port of the wxWindows library
27Name: %{name}
28Version: %{ver}
29Release: %{rel}
30License: wxWindows Licence
31Group: X11/Libraries
32Source: wxX11-%{ver}.tar.bz2
33URL: http://www.wxwindows.org
34Packager: Vadim Zeitlin <vadim@wxwindows.org>
35Prefix: %{pref}
36BuildRoot: /var/tmp/%{name}-root
37
38# all packages providing an implementation of wxWindows library (regardless of
39# the toolkit used) should provide the (virtual) wxwin package, this makes it
40# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
41Provides: wxwin
42
43# in addition, we should provide libwx_gtk as automatic generator only notices
44# libwx_gtk-%{ver}-%{rel}
45Provides: libwx_x11.so
46Provides: libwx_x11-%{ver2}.so
47Provides: wxX11
48
49Requires: %{wxbasename} = %{ver}
50
51%description
52wxWindows is a free C++ library for cross-platform GUI development.
53With wxWindows, you can create applications for different GUIs (GTK+,
54Motif/LessTif, MS Windows, Mac) from the same source code.
55
56%package devel
57Summary: The X11 port of the wxWindows library
58Group: X11/Libraries
59Requires: %{name} = %{ver}
60Requires: %{wxbasename}-devel = %{ver}
61
62%description devel
63Header files for wxX11, the X11 port of the wxWindows library.
64
65%package gl
66Summary: The X11 port of the wxWindows library, OpenGL add-on.
67Group: X11/Libraries
68Requires: %{name} = %{ver}
69
70%description gl
71OpenGL add-on library for wxX11, the X11 port of the wxWindows library.
72
73%package static
74Summary: wxX11 static libraries
75Group: Development/Libraries
76
77%description static
78Static libraries for wxX11. You need them if you want to link statically against wxX11.
79
80%package contrib
81Summary: Contrib libraries for wxX11.
82Group: X11/Libraries
83Requires: %{name} = %{ver}
84
85%description contrib
86Contributed libraries for wxX11.
87
88%package contrib-devel
89Summary: Contrib libraries for wxX11.
90Group: X11/Libraries
91Requires: %{name}-contrib = %{ver}
92Requires: %{name}-devel = %{ver}
93
94%description contrib-devel
95Header files for contributed libraries for wxX11.
96
97%prep
98%setup -q -n wxX11-%{ver}
99
100%build
101if [ "$SMP" != "" ]; then
102 export MAKE="make -j$SMP"
103else
104 export MAKE="make"
105fi
106
107mkdir obj-shared
108cd obj-shared
109../configure --prefix=%{pref} --with-x11 \
110%if %{unicode}
111 --enable-unicode \
112%else
113 --with-odbc \
114%endif
115 --with-opengl
116$MAKE
117cd contrib/src
118$MAKE
119cd ../../..
120
121mkdir obj-static
122cd obj-static
123../configure --prefix=%{pref} --with-x11 --disable-shared \
124%if %{unicode}
125 --enable-unicode \
126%else
127 --with-odbc \
128%endif
129 --with-opengl
130$MAKE
131cd ..
132
133%install
134rm -rf $RPM_BUILD_ROOT
135(cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install)
136(cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install)
137
138# Remove headers that are part of wx-base-devel:
139
140# --- wxBase headers list begins here ---
141cat <<EOF >wxbase-headers-list
142wx/afterstd.h
143wx/app.h
144wx/apptrait.h
145wx/archive.h
146wx/arrimpl.cpp
147wx/arrstr.h
148wx/beforestd.h
149wx/buffer.h
150wx/build.h
151wx/chkconf.h
152wx/clntdata.h
153wx/cmdline.h
154wx/confbase.h
155wx/config.h
156wx/containr.h
157wx/datetime.h
158wx/datetime.inl
159wx/datstrm.h
160wx/dde.h
161wx/debug.h
162wx/debugrpt.h
163wx/defs.h
164wx/dir.h
165wx/dlimpexp.h
166wx/dynarray.h
167wx/dynlib.h
168wx/dynload.h
169wx/encconv.h
170wx/event.h
171wx/except.h
172wx/features.h
173wx/ffile.h
174wx/file.h
175wx/fileconf.h
176wx/filefn.h
177wx/filename.h
178wx/filesys.h
179wx/fontenc.h
180wx/fontmap.h
181wx/fs_mem.h
182wx/fs_zip.h
183wx/hash.h
184wx/hashmap.h
185wx/hashset.h
186wx/html/forcelnk.h
187wx/iconloc.h
188wx/init.h
189wx/intl.h
190wx/iosfwrap.h
191wx/ioswrap.h
192wx/ipc.h
193wx/ipcbase.h
194wx/isql.h
195wx/isqlext.h
196wx/list.h
197wx/listimpl.cpp
198wx/log.h
199wx/longlong.h
200wx/math.h
201wx/memconf.h
202wx/memory.h
203wx/memtext.h
204wx/mimetype.h
205wx/module.h
206wx/msgout.h
207wx/msgout.h
208wx/mstream.h
209wx/object.h
210wx/platform.h
211wx/process.h
212wx/ptr_scpd.h
213wx/regex.h
214wx/scopeguard.h
215wx/snglinst.h
216wx/sstream.h
217wx/stack.h
218wx/stackwalk.h
219wx/stdpaths.h
220wx/stockitem.h
221wx/stopwatch.h
222wx/strconv.h
223wx/stream.h
224wx/string.h
225wx/sysopt.h
226wx/textbuf.h
227wx/textfile.h
228wx/thread.h
229wx/thrimpl.cpp
230wx/timer.h
231wx/tokenzr.h
232wx/txtstrm.h
233wx/types.h
234wx/uri.h
235wx/utils.h
236wx/variant.h
237wx/vector.h
238wx/version.h
239wx/volume.h
240wx/wfstream.h
241wx/wx.h
242wx/wxchar.h
243wx/wxprec.h
244wx/xti.h
245wx/xtistrm.h
246wx/zipstrm.h
247wx/zstream.h
248wx/msw/apptrait.h
249wx/msw/apptbase.h
250wx/msw/chkconf.h
251wx/msw/crashrpt.h
252wx/msw/dde.h
253wx/msw/debughlp.h
254wx/msw/gccpriv.h
255wx/msw/mimetype.h
256wx/msw/stackwalk.h
257wx/msw/winundef.h
258wx/msw/wrapcctl.h
259wx/msw/wrapwin.h
260wx/fs_inet.h
261wx/gsocket.h
262wx/protocol/file.h
263wx/protocol/ftp.h
264wx/protocol/http.h
265wx/protocol/protocol.h
266wx/sckaddr.h
267wx/sckipc.h
268wx/sckstrm.h
269wx/socket.h
270wx/url.h
271wx/msw/gsockmsw.h
272wx/xml/xml.h
273wx/xtixml.h
274wx/db.h
275wx/dbkeyg.h
276wx/dbtable.h
277EOF
278# --- wxBase headers list ends here ---
279for f in `cat wxbase-headers-list` ; do
280 rm -f $RPM_BUILD_ROOT%{_includedir}/wx-*/$f
281done
282
283# list of all core headers:
284find $RPM_BUILD_ROOT/usr/include/wx -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files
285
286# contrib stuff:
287(cd obj-shared/contrib/src; make prefix=$RPM_BUILD_ROOT%{pref} install)
288(cd obj-shared/utils/wxrc; make prefix=$RPM_BUILD_ROOT%{pref} install)
289
290# remove wxBase files so that RPM doesn't complain about unpackaged files:
291rm -f $RPM_BUILD_ROOT%{_libdir}/libwx_base*
292rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/*
293rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/*/*
294
295%clean
296rm -rf $RPM_BUILD_ROOT
297
298%post
299/sbin/ldconfig
300
301%postun
302/sbin/ldconfig
303
304%post gl
305/sbin/ldconfig
306
307%postun gl
308/sbin/ldconfig
309
310
311%files
312%defattr(-,root,root)
313%doc COPYING.LIB *.txt
314%{_libdir}/libwx_%{portname}*_core*.so.*
315%{_libdir}/libwx_%{portname}*_html*.so.*
316%{_libdir}/libwx_%{portname}*_adv*.so.*
317%if !%{unicode}
318%{_libdir}/libwx_%{portname}*_dbgrid*.so.*
319%endif
320
321%files devel -f core-headers.files
322%defattr(-,root,root)
323%{_libdir}/libwx_%{portname}*_core*.so
324%{_libdir}/libwx_%{portname}*_html*.so
325%{_libdir}/libwx_%{portname}*_adv*.so
326%if !%{unicode}
327%{_libdir}/libwx_%{portname}*_dbgrid*.so
328%endif
329%{_libdir}/libwx_%{portname}*_gl*.so
330%dir %{_libdir}/wx
331%{_libdir}/wx/*
332%{_bindir}/%{wxconfigname}
333
334%files gl
335%defattr(-,root,root)
336%{_libdir}/libwx_%{portname}*_gl*.so.*
337
338%files static
339%defattr (-,root,root)
340%{_libdir}/libwx_%{portname}*.a
341
342%files contrib
343%defattr(-,root,root)
344%{_libdir}/libwx_%{portname}*_animate*.so.*
345%{_libdir}/libwx_%{portname}*_deprecated*.so.*
346%{_libdir}/libwx_%{portname}*_fl*.so.*
347%{_libdir}/libwx_%{portname}*_gizmos*.so.*
348%{_libdir}/libwx_%{portname}*_mmedia*.so.*
349%{_libdir}/libwx_%{portname}*_ogl*.so.*
350%{_libdir}/libwx_%{portname}*_plot*.so.*
351%{_libdir}/libwx_%{portname}*_stc*.so.*
352%{_libdir}/libwx_%{portname}*_svg*.so.*
353%{_libdir}/libwx_%{portname}*_xrc*.so.*
354
355%files contrib-devel
356%defattr(-,root,root)
357%{_bindir}/wxrc
358%dir %{_includedir}/wx-*/wx/animate
359%{_includedir}/wx-*/wx/animate/*
360%{_libdir}/libwx_%{portname}*_animate*.so
361
362%dir %{_includedir}/wx-*/wx/deprecated
363%{_includedir}/wx-*/wx/deprecated/*
364%{_libdir}/libwx_%{portname}*_deprecated*.so
365
366%dir %{_includedir}/wx-*/wx/fl
367%{_includedir}/wx-*/wx/fl/*
368%{_libdir}/libwx_%{portname}*_fl*.so
369
370%dir %{_includedir}/wx-*/wx/gizmos
371%{_includedir}/wx-*/wx/gizmos/*
372%{_libdir}/libwx_%{portname}*_gizmos*.so
373
374%dir %{_includedir}/wx-*/wx/mmedia
375%{_includedir}/wx-*/wx/mmedia/*
376%{_libdir}/libwx_%{portname}*_mmedia*.so
377
378%dir %{_includedir}/wx-*/wx/ogl
379%{_includedir}/wx-*/wx/ogl/*
380%{_libdir}/libwx_%{portname}*_ogl*.so
381
382%dir %{_includedir}/wx-*/wx/plot
383%{_includedir}/wx-*/wx/plot/*
384%{_libdir}/libwx_%{portname}*_plot*.so
385
386%dir %{_includedir}/wx-*/wx/stc
387%{_includedir}/wx-*/wx/stc/*
388%{_libdir}/libwx_%{portname}*_stc*.so
389
390%dir %{_includedir}/wx-*/wx/svg
391%{_includedir}/wx-*/wx/svg/*
392%{_libdir}/libwx_%{portname}*_svg*.so
393
394%dir %{_includedir}/wx-*/wx/xrc
395%{_includedir}/wx-*/wx/xrc/*
396%{_libdir}/libwx_%{portname}*_xrc*.so