1 %define pref
%{_prefix}
2 %define python @PYTHON@
6 %define lcport @LCPORT@
7 %define tarname @TARNAME@
8 %define version @VERSION@
11 %define wxpref
%{pref}/lib
/wxPython
14 %define name wxPython
%{port}-py%{pyver}-dbg
15 %define othername wxPython
%{port}-py%{pyver}
17 %define name wxPython
%{port}-py%{pyver}
18 %define othername wxPython
%{port}-py%{pyver}-dbg
22 #----------------------------------------------------------------
23 Summary: Cross platform GUI toolkit
for Python using wx
%{port}
27 Source0: %{tarname}-%{version}.tar.gz
28 License: wxWindows Library Licence
, Version 3
29 URL: http
://wxPython.org
/
30 Packager: Robin Dunn
<robind@alldunn.com
>
31 Group: Development
/Python
32 BuildRoot: %{_tmppath}/%{name}-buildroot
34 #BuildRequires: %{python}
37 Provides: wx
%{port} = %{version}
38 Provides: wxPython
= %{version}
41 # They conflict with each other, so let them replace each other
42 Obsoletes
: %{othername}
43 # old wxPython packages
48 wxPython is a GUI toolkit
for Python that is a wrapper around the
49 wxWindows C
++ GUI library. wxPython provides a large variety of
50 window types and controls
, all implemented with a native look and feel
51 (and native runtime speed
) on the platforms it is supported on.
53 This package is implemented using the
%{port} port of wxWindows
, and
54 includes the wx
%{port} shared libs and etc.
58 Summary: wxPython
%{port} development files
59 Group: Development
/Libraries
60 Requires: wxPython
%{port} = %{version}
64 This packages contains the headers and etc.
for building apps or
65 Python extension modules that use the same wx
%{port} shared libraries
68 #----------------------------------------------------------------
70 %setup -q
-n
%{tarname}-%{version}
73 #----------------------------------------------------------------
75 if [ "$SMP"
!= ""
]; then
84 # Configure, trying to reduce dependencies
85 ..
/configure
--with
-%{lcport} \
94 --with
-libjpeg
=builtin \
95 --with
-libpng
=builtin \
96 --with
-libtiff
=builtin \
99 ## --enable-debug_flag \
110 # ** Unfortunately we have to do a bit of installation here so wxPython
111 # can be built. Perhaps wx-config should be changed to be able to be
112 # used from the build dir, maybe with an --inplace flag... Move these
113 # three lines to %install if/when that happens.
114 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
116 make prefix
=$RPM_BUILD_ROOT
%{wxpref} install
123 WX_CONFIG
="$RPM_BUILD_ROOT
%{wxpref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{wxpref}" \
127 #----------------------------------------------------------------
129 ## ** [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
134 WX_CONFIG
="$RPM_BUILD_ROOT
%{wxpref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{wxpref}" \
136 --root
=$RPM_BUILD_ROOT
140 #----------------------------------------------------------------
142 #[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
145 #----------------------------------------------------------------
150 #----------------------------------------------------------------
156 #----------------------------------------------------------------
158 %doc docs
/preamble.txt
159 %doc docs
/licence.txt
161 %doc docs
/changes.txt
162 %doc wxPython
/README.txt
163 %doc wxPython
/CHANGES.txt
164 %defattr(-,root
,root
)
172 %defattr(-,root
,root
)
176 %{wxpref}/bin/wx%{lcport}d-%{ver2}-config
178 %{wxpref}/bin/wx%{lcport}-%{ver2}-config
180 %{wxpref}/bin
/wx
-config
183 #----------------------------------------------------------------