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} \
88 --enable-rpath
=%{wxpref}/lib \
95 --with
-libjpeg
=builtin \
96 --with
-libpng
=builtin \
97 --with
-libtiff
=builtin \
100 ## --enable-debug_flag \
111 # ** Unfortunately we have to do a bit of installation here so wxPython
112 # can be built. Perhaps wx-config should be changed to be able to be
113 # used from the build dir, maybe with an --inplace flag... Move these
114 # three lines to %install if/when that happens.
115 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
117 make prefix
=$RPM_BUILD_ROOT
%{wxpref} install
124 WX_CONFIG
="$RPM_BUILD_ROOT
%{wxpref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{wxpref}" \
128 #----------------------------------------------------------------
130 ## ** [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
135 WX_CONFIG
="$RPM_BUILD_ROOT
%{wxpref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{wxpref}" \
137 --root
=$RPM_BUILD_ROOT
141 #----------------------------------------------------------------
143 #[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
146 #----------------------------------------------------------------
151 #----------------------------------------------------------------
157 #----------------------------------------------------------------
159 %doc docs
/preamble.txt
160 %doc docs
/licence.txt
162 %doc docs
/changes.txt
163 %doc wxPython
/README.txt
164 %doc wxPython
/CHANGES.txt
165 %defattr(-,root
,root
)
173 %defattr(-,root
,root
)
177 %{wxpref}/bin/wx%{lcport}d-%{ver2}-config
179 %{wxpref}/bin/wx%{lcport}-%{ver2}-config
181 %{wxpref}/bin
/wx
-config
184 #----------------------------------------------------------------