forked from pool/python-wxPython
		
	Accepting request 616404 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/616404 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=2
This commit is contained in:
		
							
								
								
									
										20
									
								
								fix_no_return_in_nonvoid.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								fix_no_return_in_nonvoid.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | |||||||
|  | diff -U 3 -H -w -E -d -r -x .osc -- a/sip/cpp/sip_corewxTextCtrl.cpp b/sip/cpp/sip_corewxTextCtrl.cpp | ||||||
|  | --- a/sip/cpp/sip_corewxTextCtrl.cpp | ||||||
|  | +++ b/sip/cpp/sip_corewxTextCtrl.cpp | ||||||
|  | @@ -55,12 +55,16 @@ | ||||||
|  |      { | ||||||
|  |          #ifdef __WXMSW__ | ||||||
|  |              return self->ShowNativeCaret(show); | ||||||
|  | +        #else | ||||||
|  | +            return false; | ||||||
|  |          #endif | ||||||
|  |      } | ||||||
|  |      bool _wxTextCtrl_HideNativeCaret(wxTextCtrl* self) | ||||||
|  |      { | ||||||
|  |          #ifdef __WXMSW__ | ||||||
|  |              return self->HideNativeCaret(); | ||||||
|  | +        #else | ||||||
|  | +            return false; | ||||||
|  |          #endif | ||||||
|  |      } | ||||||
|  |      void _wxTextCtrl_write(wxTextCtrl* self, const wxString* text) | ||||||
							
								
								
									
										1
									
								
								python-wxPython-rpmlintrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								python-wxPython-rpmlintrc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | addFilter("devel-file-in-non-devel-package") | ||||||
| @@ -1,3 +1,17 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Wed Jun 13 03:42:38 UTC 2018 - toddrme2178@gmail.com | ||||||
|  |  | ||||||
|  | - Add fix_no_return_in_nonvoid.patch | ||||||
|  |   Fix lack of return in non-void function issue in generated sip | ||||||
|  |   bindings. | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Mon Jun  4 09:11:22 UTC 2018 - petr@cervinka.net | ||||||
|  |  | ||||||
|  | - Move "wx/*.so" libraries to main package, remove devel package (boo#1095747)  | ||||||
|  | - Add rpmlintrc file to filter devel-file-in-non-devel-package | ||||||
|  | - Apply spec-cleaner | ||||||
|  |  | ||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ||||||
| Fri May 18 07:36:08 UTC 2018 - jengelh@inai.de | Fri May 18 07:36:08 UTC 2018 - jengelh@inai.de | ||||||
|  |  | ||||||
|   | |||||||
| @@ -13,21 +13,30 @@ | |||||||
| # published by the Open Source Initiative. | # published by the Open Source Initiative. | ||||||
|  |  | ||||||
| # Please submit bugfixes or comments via http://bugs.opensuse.org/ | # Please submit bugfixes or comments via http://bugs.opensuse.org/ | ||||||
|  | # | ||||||
|  |  | ||||||
|  |  | ||||||
| %{?!python_module:%define python_module() python-%{**} python3-%{**}} | %{?!python_module:%define python_module() python-%{**} python3-%{**}} | ||||||
| %bcond_with     test |  | ||||||
| %bcond_with     syswx |  | ||||||
| %define         oldpython python | %define         oldpython python | ||||||
| %define         X_display ":98" | %define         X_display ":98" | ||||||
|  | %bcond_with     test | ||||||
|  | %bcond_with     syswx | ||||||
|  | %if %{with syswx} | ||||||
|  | %define wx_args --use_syswx --gtk3 -v | ||||||
|  | %else | ||||||
|  | %define wx_args --gtk3 -v | ||||||
|  | %endif | ||||||
| Name:           python-wxPython | Name:           python-wxPython | ||||||
| Version:        4.0.1 | Version:        4.0.1 | ||||||
| Release:        0 | Release:        0 | ||||||
| License:        GPL-2.0+ |  | ||||||
| Summary:        The "Phoenix" variant of the wxWidgets Python bindings | Summary:        The "Phoenix" variant of the wxWidgets Python bindings | ||||||
| Url:            https://github.com/wxWidgets/Phoenix | License:        GPL-2.0-or-later | ||||||
| Group:          Development/Languages/Python | Group:          Development/Languages/Python | ||||||
|  | URL:            https://github.com/wxWidgets/Phoenix | ||||||
| Source:         https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-%{version}.tar.gz | 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 devel} | ||||||
| BuildRequires:  %{python_module requests} | BuildRequires:  %{python_module requests} | ||||||
| BuildRequires:  %{python_module setuptools} | BuildRequires:  %{python_module setuptools} | ||||||
| @@ -36,6 +45,9 @@ BuildRequires:  doxygen | |||||||
| BuildRequires:  fdupes | BuildRequires:  fdupes | ||||||
| BuildRequires:  gstreamer-plugins-base-devel | BuildRequires:  gstreamer-plugins-base-devel | ||||||
| BuildRequires:  libjbig-devel | BuildRequires:  libjbig-devel | ||||||
|  | BuildRequires:  pkgconfig | ||||||
|  | BuildRequires:  python-rpm-macros | ||||||
|  | BuildRequires:  xorg-x11-server | ||||||
| BuildRequires:  pkgconfig(cppunit) | BuildRequires:  pkgconfig(cppunit) | ||||||
| BuildRequires:  pkgconfig(freeglut) | BuildRequires:  pkgconfig(freeglut) | ||||||
| BuildRequires:  pkgconfig(gstreamer-1.0) | BuildRequires:  pkgconfig(gstreamer-1.0) | ||||||
| @@ -50,28 +62,20 @@ BuildRequires:  pkgconfig(sdl2) | |||||||
| BuildRequires:  pkgconfig(sm) | BuildRequires:  pkgconfig(sm) | ||||||
| BuildRequires:  pkgconfig(webkit2gtk-4.0) | BuildRequires:  pkgconfig(webkit2gtk-4.0) | ||||||
| BuildRequires:  pkgconfig(x11) | BuildRequires:  pkgconfig(x11) | ||||||
| BuildRequires:  python-rpm-macros | Requires:       python-six | ||||||
| BuildRequires:  xorg-x11-server | Requires(post): update-alternatives | ||||||
|  | Requires(postun): update-alternatives | ||||||
|  | Conflicts:      python-wxWidgets | ||||||
|  | Provides:       python-wxWidgets = %{version} | ||||||
| %if %{with test} | %if %{with test} | ||||||
| BuildRequires:  %{python_module pytest} |  | ||||||
| BuildRequires:  %{python_module pytest-xdist} | BuildRequires:  %{python_module pytest-xdist} | ||||||
|  | BuildRequires:  %{python_module pytest} | ||||||
| BuildRequires:  %{python_module six} | BuildRequires:  %{python_module six} | ||||||
| %endif | %endif | ||||||
| Requires:       python-six |  | ||||||
| %ifpython2 | %ifpython2 | ||||||
| Provides:       %{oldpython}-wxWidgets = %version | Conflicts:      %{oldpython}-wxWidgets | ||||||
| Conflicts:      otherproviders(%{oldpython}-wxWidgets) | Provides:       %{oldpython}-wxWidgets = %{version} | ||||||
| %endif | %endif | ||||||
| Provides:       python-wxWidgets = %version |  | ||||||
| Conflicts:      otherproviders(python-wxWidgets) |  | ||||||
| Requires(post):   update-alternatives |  | ||||||
| Requires(postun):  update-alternatives |  | ||||||
| %if %{with syswx} |  | ||||||
| %define wx_args --use_syswx --gtk3 -v |  | ||||||
| %else |  | ||||||
| %define wx_args --gtk3 -v |  | ||||||
| %endif |  | ||||||
|  |  | ||||||
|  |  | ||||||
| %python_subpackages | %python_subpackages | ||||||
|  |  | ||||||
| @@ -89,40 +93,15 @@ Summary:        Languages for package %{name} | |||||||
| Group:          System/Localization | Group:          System/Localization | ||||||
| Requires:       %{name} = %{version} | Requires:       %{name} = %{version} | ||||||
| Requires:       python-base | Requires:       python-base | ||||||
| Provides:       %{name}-lang-all = %{version} |  | ||||||
| Supplements:    packageand(bundle-lang-other:%{name}) | Supplements:    packageand(bundle-lang-other:%{name}) | ||||||
|  | Provides:       %{name}-lang-all = %{version} | ||||||
|  |  | ||||||
| %description lang | %description lang | ||||||
| Provides translations to the package %{name}. | Provides translations to the package %{name}. | ||||||
|  |  | ||||||
| %package devel |  | ||||||
| Summary:        Development files for %{name} |  | ||||||
| Group:          System/Localization |  | ||||||
| Requires:       %{name} = %{version} |  | ||||||
| Requires:       python-devel |  | ||||||
| Requires:       c++_compiler |  | ||||||
| Requires:       gstreamer-plugins-base-devel |  | ||||||
| Requires:       libjbig-devel |  | ||||||
| Requires:       pkgconfig(cppunit) |  | ||||||
| Requires:       pkgconfig(freeglut) |  | ||||||
| Requires:       pkgconfig(gstreamer-1.0) |  | ||||||
| Requires:       pkgconfig(gtk+-3.0) |  | ||||||
| Requires:       pkgconfig(libjpeg) |  | ||||||
| Requires:       pkgconfig(liblzma) |  | ||||||
| Requires:       pkgconfig(libmspack) |  | ||||||
| Requires:       pkgconfig(libnotify) |  | ||||||
| Requires:       pkgconfig(libpng16) |  | ||||||
| Requires:       pkgconfig(libtiff-4) |  | ||||||
| Requires:       pkgconfig(sdl2) |  | ||||||
| Requires:       pkgconfig(sm) |  | ||||||
| Requires:       pkgconfig(webkit2gtk-4.0) |  | ||||||
| Requires:       pkgconfig(x11) |  | ||||||
|  |  | ||||||
| %description devel |  | ||||||
| Files needed to build software that uses %{name}. |  | ||||||
|  |  | ||||||
| %prep | %prep | ||||||
| %setup -q -n wxPython-%{version} | %setup -q -n wxPython-%{version} | ||||||
|  | %patch0 -p1 | ||||||
| sed -i -e '/^#!\//, 1d' wx/py/*.py | sed -i -e '/^#!\//, 1d' wx/py/*.py | ||||||
| sed -i -e '/^#!\//, 1d' wx/tools/*.py | sed -i -e '/^#!\//, 1d' wx/tools/*.py | ||||||
| sed -i -e '/^#!\//, 1d' wx/py/tests/*.py | sed -i -e '/^#!\//, 1d' wx/py/tests/*.py | ||||||
| @@ -177,8 +156,8 @@ mv wx_temp wx | |||||||
| %python_uninstall_alternative pywxrc | %python_uninstall_alternative pywxrc | ||||||
|  |  | ||||||
| %files %{python_files} | %files %{python_files} | ||||||
| %defattr(-,root,root) | %license LICENSE.txt | ||||||
| %doc CHANGES.rst LICENSE.txt README.rst TODO.rst license/*.txt | %doc CHANGES.rst README.rst TODO.rst license/*.txt | ||||||
| %python_alternative %{_bindir}/helpviewer | %python_alternative %{_bindir}/helpviewer | ||||||
| %python_alternative %{_bindir}/img2png | %python_alternative %{_bindir}/img2png | ||||||
| %python_alternative %{_bindir}/img2py | %python_alternative %{_bindir}/img2py | ||||||
| @@ -194,14 +173,8 @@ mv wx_temp wx | |||||||
| %{python_sitearch}/wxPython-%{version}-py*.egg-info | %{python_sitearch}/wxPython-%{version}-py*.egg-info | ||||||
| %{python_sitearch}/wx/ | %{python_sitearch}/wx/ | ||||||
| %exclude %{python_sitearch}/wx/locale/ | %exclude %{python_sitearch}/wx/locale/ | ||||||
| %exclude %{python_sitearch}/wx/*.so |  | ||||||
|  |  | ||||||
| %files %{python_files devel} |  | ||||||
| %defattr(-,root,root) |  | ||||||
| %{python_sitearch}/wx/*.so |  | ||||||
|  |  | ||||||
| %files %{python_files lang} | %files %{python_files lang} | ||||||
| %defattr(-,root,root) |  | ||||||
| %{python_sitearch}/wx/locale/ | %{python_sitearch}/wx/locale/ | ||||||
|  |  | ||||||
| %changelog | %changelog | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user