diff --git a/python-matplotlib.changes b/python-matplotlib.changes index 416dcb8..d4b3876 100644 --- a/python-matplotlib.changes +++ b/python-matplotlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 27 13:01:27 UTC 2019 - Fabian Vogt + +- Disable Qt4 support on Tumbleweed by default + ------------------------------------------------------------------- Mon Nov 12 05:54:05 UTC 2018 - Arun Persaud diff --git a/python-matplotlib.spec b/python-matplotlib.spec index 87dd081..490c75f 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -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/