17
0

Accepting request 616403 from home:TheBlackCat:branches:X11:wxWidgets

- Add fix_no_return_in_nonvoid.patch
  Fix lack of return in non-void function issue in generated sip
  bindings.

OBS-URL: https://build.opensuse.org/request/show/616403
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=5
This commit is contained in:
Todd R
2018-06-13 03:44:24 +00:00
committed by Git OBS Bridge
parent 95b4a26c15
commit 091834ce21
3 changed files with 31 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ Group: Development/Languages/Python
URL: https://github.com/wxWidgets/Phoenix
Source: https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-%{version}.tar.gz
Source1: python-wxPython-rpmlintrc
# PATCH-FIX-OPENSUSE fix_no_return_in_nonvoid.patch -- Fix lack of return in nonvoid functions
Patch0: fix_no_return_in_nonvoid.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
@@ -74,6 +76,7 @@ BuildRequires: %{python_module six}
Conflicts: %{oldpython}-wxWidgets
Provides: %{oldpython}-wxWidgets = %{version}
%endif
%python_subpackages
%description
@@ -98,6 +101,7 @@ Provides translations to the package %{name}.
%prep
%setup -q -n wxPython-%{version}
%patch0 -p1
sed -i -e '/^#!\//, 1d' wx/py/*.py
sed -i -e '/^#!\//, 1d' wx/tools/*.py
sed -i -e '/^#!\//, 1d' wx/py/tests/*.py