Browse Source

wxPython-3.0.2.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10575 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
7985b054ce
1 changed files with 36 additions and 35 deletions
  1. 36 35
      w/wxPython/wxPython-vl.spec

+ 36 - 35
w/wxPython/wxPython-vl.spec

@@ -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
-Version:        2.8.12.1
-Release:        3%{?dist}
+Version:        3.0.2.0
+Release:        1%{?dist}
 
 Summary:        GUI toolkit for the Python programming language
 
@@ -13,19 +14,22 @@ Group:          Development/Languages
 License:        LGPLv2+ and wxWidgets 
 URL:            http://www.wxpython.org/
 Source0:        http://downloads.sourceforge.net/wxpython/%{name}-src-%{version}.tar.bz2
-# fix aui imports
-# http://trac.wxwidgets.org/ticket/12107
-Patch0:         wxPython-2.8.12.0-aui.patch
+# Remove Editra - it doesn't work and is technically a bundle.  Thanks to
+# Debian for the patch.
+Patch0:         fix-editra-removal.patch
+Patch1:         wxPython-3.0.0.0-format.patch
+# http://trac.wxwidgets.org/ticket/16765
+Patch2:         wxPython-3.0.2.0-getxwindowcrash.patch
+# http://trac.wxwidgets.org/ticket/16767
+Patch3:         wxPython-3.0.2.0-plot.patch
+# http://trac.wxwidgets.org/ticket/17160
+Patch4:         wxPython-3.0.2.0-listctrl-mixin-edit.patch
 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.
 
 
 %prep
-%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/config.py
+# 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/config.py
 
 
 %build
@@ -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 setup.py %{buildflags} build
+python setup.py %{py_setup_args} build
 
 
 %install
 %__rm -rf $RPM_BUILD_ROOT
 cd wxPython
-python setup.py %{buildflags} install --root=$RPM_BUILD_ROOT
+python setup.py %{py_setup_args} install --root=$RPM_BUILD_ROOT
 
 # this is a kludge....
 %if "%{python_sitelib}" != "%{python_sitearch}"
@@ -92,24 +95,19 @@ python setup.py %{buildflags} install --root=$RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc wxPython/licence
+%license wxPython/licence/*
 %{_bindir}/*
-%{python_sitearch}/wx.pth
-%{python_sitearch}/wxversion.py*
-%dir %{python_sitearch}/wx-2.8-gtk2-unicode/
-%{python_sitearch}/wx-2.8-gtk2-unicode/wx
-%{python_sitearch}/wx-2.8-gtk2-unicode/wxPython
-%{python_sitelib}/*egg-info
-%{python_sitearch}/wx-2.8-gtk2-unicode/*egg-info
+%{python_sitearch}/*
+%{python_sitelib}/*
 
 %files devel
 %defattr(-,root,root,-)
-%dir %{_includedir}/wx-2.8/wx/wxPython
-%{_includedir}/wx-2.8/wx/wxPython/*.h
-%dir %{_includedir}/wx-2.8/wx/wxPython/i_files
-%{_includedir}/wx-2.8/wx/wxPython/i_files/*.i
-%{_includedir}/wx-2.8/wx/wxPython/i_files/*.py*
-%{_includedir}/wx-2.8/wx/wxPython/i_files/*.swg
+%dir %{_includedir}/wx-3.0/wx/wxPython
+%{_includedir}/wx-3.0/wx/wxPython/*.h
+%dir %{_includedir}/wx-3.0/wx/wxPython/i_files
+%{_includedir}/wx-3.0/wx/wxPython/i_files/*.i
+%{_includedir}/wx-3.0/wx/wxPython/i_files/*.py*
+%{_includedir}/wx-3.0/wx/wxPython/i_files/*.swg
 
 %files docs
 %defattr(-,root,root,-)
@@ -117,6 +115,9 @@ python setup.py %{buildflags} install --root=$RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Jul  9 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.2.0-1
+- new upstream release.
+
 * Fri Aug 10 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.8.12.1-3
 - s/wx-gtk2/wxGTK/g
 
@@ -204,7 +205,7 @@ python setup.py %{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 <mattdm@mattdm.org> - 2.8.7.1-4
+* Fri Jun  6 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-4
 - gratuitously bump package release number to work around build system
   glitch. again, but it will work this time.