diff --git a/python-matplotlib.changes b/python-matplotlib.changes index 95c2bd2..5d4998d 100644 --- a/python-matplotlib.changes +++ b/python-matplotlib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 24 12:24:37 UTC 2025 - Antonio Larrosa + +- We're removing all python Qt bindings from SLE16, so don't build + the qt backend nor test it there. + ------------------------------------------------------------------- Fri Mar 21 08:55:15 UTC 2025 - Markéta Machová diff --git a/python-matplotlib.spec b/python-matplotlib.spec index 4954adc..1899f4c 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -29,6 +29,13 @@ ExclusiveArch: x86_64 aarch64 %bcond_with test %endif %bcond_with ringdisabled + +%if 0%{?suse_version} == 1600 && !0%{?is_opensuse} +%bcond_with qt +%else +%bcond_without qt +%endif + %{?sle15_python_module_pythons} Name: python-matplotlib%{psuffix} Version: 3.10.1 @@ -87,7 +94,9 @@ BuildRequires: %{python_module matplotlib = %{version}} BuildRequires: %{python_module matplotlib-cairo = %{version}} BuildRequires: %{python_module matplotlib-gtk3 = %{version}} BuildRequires: %{python_module matplotlib-gtk4 = %{version}} +%if %{with qt} BuildRequires: %{python_module matplotlib-qt5 = %{version}} +%endif BuildRequires: %{python_module matplotlib-testdata = %{version}} BuildRequires: %{python_module matplotlib-tk = %{version}} BuildRequires: %{python_module matplotlib-web = %{version}} @@ -120,6 +129,7 @@ BuildRequires: %{python_module nbformat if %python-base >= 3.10} %endif # /SECTION nbagg # SECTION qt backends: Only test PyQt5 in Minimal-X +%if %{with qt} BuildRequires: %{python_module qt5} %if %{without ringdisabled} %if 0%{?suse_version} > %SLE_VERSION @@ -128,6 +138,7 @@ BuildRequires: python3-pyside2 BuildRequires: python3-pyside6 %endif %endif +%endif # /SECTION qt # /SECTION test %endif @@ -225,6 +236,7 @@ BuildArch: noarch This package allows %{name} to display latex in plots and figures. +%if %{with qt} %package qt Summary: Qt backend for %{name} Requires: %{name} = %{version} @@ -239,6 +251,7 @@ Obsoletes: %{name}-qt5 < 3.8.2 This package includes the Qt-based backend for the %{name} plotting package PyQt5, PyQt6, Pyside2 or Pyside 6 may be used +%endif %package testdata Summary: Test data for %{name} @@ -473,6 +486,7 @@ $python -m pytest --pyargs matplotlib.tests \ %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_nbagg.*.py* %endif +%if %{with qt} %files %{python_files qt} %license LICENSE/ %{python_sitearch}/matplotlib/backends/backend_qt5.py* @@ -484,6 +498,7 @@ $python -m pytest --pyargs matplotlib.tests \ %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5agg.*.py* %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5cairo.*.py* %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/qt_compat.*.py* +%endif %files %{python_files testdata} %license LICENSE/