Accepting request 679805 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/679805
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=69
This commit is contained in:
Stephan Kulow 2019-02-27 20:12:13 +00:00 committed by Git OBS Bridge
commit 9cc0ffe679
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 27 13:01:27 UTC 2019 - Fabian Vogt <fvogt@suse.com>
- Disable Qt4 support on Tumbleweed by default
-------------------------------------------------------------------
Mon Nov 12 05:54:05 UTC 2018 - Arun Persaud <arun@gmx.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-matplotlib
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,6 +20,13 @@
# The tests also pull in dependencies of all backends done in pure python
%bcond_with tests
# No Qt4 plugin on > Leap 15
%if 0%{?suse_version} > 1500
%bcond_with qt4
%else
%bcond_without qt4
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%define skip_python2 1
@ -79,8 +86,10 @@ BuildRequires: %{python_module cairocffi}
# GTK3 dependencies
BuildRequires: %{python_module gobject}
BuildRequires: pkgconfig(gtk+-3.0)
%if %{with qt4}
# Qt4 dependencies
BuildRequires: %{python_module qt4}
%endif
# Qt5 dependencies
BuildRequires: %{python_module qt5}
# Wx dependencies
@ -362,6 +371,7 @@ trap "kill $! || true" EXIT
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5agg.*.py*
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/qt_compat.*.py*
%if %{with qt4}
%files %{python_files qt4}
%license LICENSE/
%license doc/users/license.rst
@ -369,6 +379,7 @@ trap "kill $! || true" EXIT
%{python_sitearch}/matplotlib/backends/backend_qt4agg.py*
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt4.*.py*
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt4agg.*.py*
%endif
%files %{python_files qt5}
%license LICENSE/