1 %define pref
%{_prefix}
2 %define python @PYTHON@
6 %define lcport @LCPORT@
7 %define tarname @TARNAME@
10 %define name wxPython
%{port}_py%{pyver}_dbg
12 %define name wxPython
%{port}_py%{pyver}
14 %define version
2.3.3pre5
18 Summary: Cross platform GUI toolkit
for Python using wx
%{port}
22 Source0: %{tarname}-%{version}.tar.gz
23 License: wxWindows Library Licence
, Version 3
24 url
: http
://wxPython.org
/
25 packager
: Robin Dunn
<robind@alldunn.com
>
26 Group: Development
/Python
27 BuildRoot: %{_tmppath}/%{name}-buildroot
31 # They conflict with each other
33 Conflicts: wxPython
%{port}_py%{pyver}
35 Conflicts: wxPython
%{port}_py%{pyver}_dbg
39 Provides: wx
%{port} = %{version}
40 Provides: wxPython
= %{version}
43 # ?? Obsoletes: wx%{port}, wxPython
44 # Some funky mandrake names
45 Conflicts: wxGTK2.3
, wxGTK6
49 wxPython is a GUI toolkit
for Python that is a wrapper around the
50 wxWindows C
++ GUI library. wxPython provides a large variety of
51 window types and controls
, all implemented with a native look and feel
52 (and native runtime speed
) on the platforms it is supported on.
54 This package is implemented using the GTK port of wxWindows
, and
55 includes the wx
%{port} shared libs and etc.
59 %setup -n
%{tarname}-%{version}
63 if [ "$SMP"
!= ""
]; then
72 # Configure, trying to reduce dependencies
73 ..
/configure
--with
-%{lcport} --enable-soname --prefix=%{pref} \
81 --with
-libjpeg
=builtin \
82 --with
-libpng
=builtin \
83 --with
-libtiff
=builtin \
93 # ** Unfortunately we have to do a bit of installation here so wxPython
94 # can be built. Perhaps wx-config should be changed to be able to be
95 # used from the build dir, maybe with an --inplace flag... Move these
96 # three lines to %install if/when that happens.
97 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
99 make prefix
=$RPM_BUILD_ROOT
%{pref} install
106 WX_CONFIG
="$RPM_BUILD_ROOT
%{pref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{pref}" \
111 ## ** [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
116 WX_CONFIG
="$RPM_BUILD_ROOT
%{pref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{pref}" \
118 --root
=$RPM_BUILD_ROOT
123 ##[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
136 %defattr(-,root
,root
)