Browse Source


git-svn-id: ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
1 changed files with 36 additions and 35 deletions
  1. 36 35

+ 36 - 35

@@ -1,11 +1,12 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%define buildflags WXPORT=gtk2 UNICODE=1
+#%define buildflags WXPORT=gtk2 UNICODE=1
+%global py_setup_args WX_CONFIG=/usr/bin/wx-config-3.0 WXPORT=gtk3
 Name:           wxPython
-Release:        3%{?dist}
+Release:        1%{?dist}
 Summary:        GUI toolkit for the Python programming language
@@ -13,19 +14,22 @@ Group:          Development/Languages
 License:        LGPLv2+ and wxWidgets 
-# fix aui imports
-Patch0:         wxPython-
+# Remove Editra - it doesn't work and is technically a bundle.  Thanks to
+# Debian for the patch.
+Patch0:         fix-editra-removal.patch
+Patch1:         wxPython-
+Patch2:         wxPython-
+Patch3:         wxPython-
+Patch4:         wxPython-
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 # make sure to keep this updated as appropriate
-BuildRequires:  wxGTK-devel >= 2.8.11
+BuildRequires:  wxGTK3-devel
 BuildRequires:  python-devel
-BuildRequires:  gtk2-devel
-BuildRequires:  mesa-libGL-devel mesa-libGLU-devel
-# packages should depend on "wxPython", not "wxPythonGTK2", but in case
-# one does, here's the provides for it.
-Provides:       wxPythonGTK2 = %{version}-%{release}
+BuildRequires:  gtk3-devel
+#BuildRequires:  mesa-libGL-devel mesa-libGLU-devel
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -41,7 +45,7 @@ platform GUI library, which is written in C++.
 Group:          Development/Libraries
 Summary:        Development files for wxPython add-on modules
 Requires:       %{name} = %{version}-%{release}
-Requires:       wxGTK-devel >= 2.8.11
+Requires:       wxGTK3-devel
 %description devel
 This package includes C++ header files and SWIG files needed for developing
@@ -59,11 +63,10 @@ Documentation, samples and demo application for wxPython.
-%setup -q -n wxPython-src-%{version}
-%patch0 -p1 -b .aui
+%autosetup -p1 -n wxPython-src-%{version}
-# fix libdir otherwise additional wx libs cannot be found
-%__sed -i -e 's|/usr/lib|%{_libdir}|' wxPython/
+# fix libdir otherwise additional wx libs cannot be found, fix default optimization flags
+sed -i -e 's|/usr/lib|%{_libdir}|' -e 's|-O3|-O2|' wxPython/
@@ -72,13 +75,13 @@ Documentation, samples and demo application for wxPython.
 cd wxPython
 # included distutils is not multilib aware; use normal
 %__rm -rf distutils
-python %{buildflags} build
+python %{py_setup_args} build
 %__rm -rf $RPM_BUILD_ROOT
 cd wxPython
-python %{buildflags} install --root=$RPM_BUILD_ROOT
+python %{py_setup_args} install --root=$RPM_BUILD_ROOT
 # this is a kludge....
 %if "%{python_sitelib}" != "%{python_sitearch}"
@@ -92,24 +95,19 @@ python %{buildflags} install --root=$RPM_BUILD_ROOT
-%doc wxPython/licence
+%license wxPython/licence/*
-%dir %{python_sitearch}/wx-2.8-gtk2-unicode/
 %files devel
-%dir %{_includedir}/wx-2.8/wx/wxPython
-%dir %{_includedir}/wx-2.8/wx/wxPython/i_files
+%dir %{_includedir}/wx-3.0/wx/wxPython
+%dir %{_includedir}/wx-3.0/wx/wxPython/i_files
 %files docs
@@ -117,6 +115,9 @@ python %{buildflags} install --root=$RPM_BUILD_ROOT
+* Sat Jul  9 2016 Tomohiro "Tomo-p" KATO <>
+- new upstream release.
 * Fri Aug 10 2012 Munehiro Yamamoto <>
 - s/wx-gtk2/wxGTK/g
@@ -204,7 +205,7 @@ python %{buildflags} install --root=$RPM_BUILD_ROOT
 - Fix an attribute error when importing wxPython (compat) module
   (redhat bugzilla 450073, 450074)
-* Sat Jun  6 2008 Matthew Miller <> -
+* Fri Jun  6 2008 Matthew Miller <> -
 - gratuitously bump package release number to work around build system
   glitch. again, but it will work this time.