1 %define pref
%{_prefix}
2 %define python @PYTHON@
6 %define lcport @LCPORT@
7 %define tarname @TARNAME@
8 %define version @VERSION@
12 %define name wxPython
%{port}-py%{pyver}-dbg
13 %define othername wxPython
%{port}-py%{pyver}
15 %define name wxPython
%{port}-py%{pyver}
16 %define othername wxPython
%{port}-py%{pyver}-dbg
20 Summary: Cross platform GUI toolkit
for Python using wx
%{port}
24 Source0: %{tarname}-%{version}.tar.gz
25 License: wxWindows Library Licence
, Version 3
26 url
: http
://wxPython.org
/
27 packager
: Robin Dunn
<robind@alldunn.com
>
28 Group: Development
/Python
29 BuildRoot: %{_tmppath}/%{name}-buildroot
34 Provides: wx
%{port} = %{version}
35 Provides: wxPython
= %{version}
38 # They conflict with each other, so let them replace each other
39 Obsoletes
: %{othername}
40 # old wx and wxPython packages
41 Obsoletes
: wx
%{port}, wxPython
42 # and some funky mandrake names
43 Obsoletes
: wxGTK2.3
, wxGTK6
47 wxPython is a GUI toolkit
for Python that is a wrapper around the
48 wxWindows C
++ GUI library. wxPython provides a large variety of
49 window types and controls
, all implemented with a native look and feel
50 (and native runtime speed
) on the platforms it is supported on.
52 This package is implemented using the GTK port of wxWindows
, and
53 includes the wx
%{port} shared libs and etc.
57 %setup -q
-n
%{tarname}-%{version}
61 if [ "$SMP"
!= ""
]; then
70 # Configure, trying to reduce dependencies
71 ..
/configure
--with
-%{lcport} --enable-soname --prefix=%{pref} \
79 --with
-libjpeg
=builtin \
80 --with
-libpng
=builtin \
81 --with
-libtiff
=builtin \
84 ## --enable-debug_flag \
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
)