Accepting request 1205391 from devel:languages:python:numeric

- Disable nbagg and wx plugin also on Leap16

OBS-URL: https://build.opensuse.org/request/show/1205391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=110
This commit is contained in:
Ana Guerrero 2024-10-04 15:08:30 +00:00 committed by Git OBS Bridge
commit 424dab1348
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 3 08:52:39 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Disable nbagg and wx plugin also on Leap16
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 5 12:55:45 UTC 2024 - Ben Greiner <code@bnavigator.de> Wed Jun 5 12:55:45 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@ -16,6 +16,8 @@
# #
%define SLE_VERSION 1600
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
%define psuffix -test %define psuffix -test
@ -97,10 +99,10 @@ BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest-xvfb} BuildRequires: %{python_module pytest-xvfb}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz} BuildRequires: %{python_module pytz}
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > %SLE_VERSION
BuildRequires: %{python_module matplotlib-nbagg = %{version} if %python-base >= 3.10} BuildRequires: %{python_module matplotlib-nbagg = %{version} if %python-base >= 3.10}
%endif %endif
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > %SLE_VERSION
BuildRequires: %{python_module matplotlib-wx = %{version}} BuildRequires: %{python_module matplotlib-wx = %{version}}
%endif %endif
# SECTION latex test dependencies # SECTION latex test dependencies
@ -115,7 +117,7 @@ BuildRequires: %{python_module cairo >= 1.14.0}
BuildRequires: %{python_module cairocffi >= 0.8} BuildRequires: %{python_module cairocffi >= 0.8}
# /SECTION cairo # /SECTION cairo
# SECTION nbagg backend tests # SECTION nbagg backend tests
%if %{without ringdisabled} && 0%{?suse_version} > 1500 %if %{without ringdisabled} && 0%{?suse_version} > %SLE_VERSION
BuildRequires: %{python_module nbconvert if %python-base >= 3.10} BuildRequires: %{python_module nbconvert if %python-base >= 3.10}
BuildRequires: %{python_module nbformat if %python-base >= 3.10} BuildRequires: %{python_module nbformat if %python-base >= 3.10}
%endif %endif
@ -123,7 +125,7 @@ BuildRequires: %{python_module nbformat if %python-base >= 3.10}
# SECTION qt backends: Only test PyQt5 in Minimal-X # SECTION qt backends: Only test PyQt5 in Minimal-X
BuildRequires: %{python_module qt5} BuildRequires: %{python_module qt5}
%if %{without ringdisabled} %if %{without ringdisabled}
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > %SLE_VERSION
BuildRequires: %{python_module PyQt6} BuildRequires: %{python_module PyQt6}
BuildRequires: python3-pyside2 BuildRequires: python3-pyside2
BuildRequires: python3-pyside6 BuildRequires: python3-pyside6
@ -269,7 +271,7 @@ Requires: python-tornado
This package includes the browser-based webagg backend This package includes the browser-based webagg backend
for the %{name} plotting package for the %{name} plotting package
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > %SLE_VERSION
%package wx %package wx
Summary: WxWidgets backend for %{name} Summary: WxWidgets backend for %{name}
Requires: %{name} = %{version} Requires: %{name} = %{version}
@ -451,7 +453,7 @@ $python -m pytest --pyargs matplotlib.tests \
%{python_sitearch}/matplotlib/backends/_backend_gtk.py %{python_sitearch}/matplotlib/backends/_backend_gtk.py
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/_backend_gtk.*.py* %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/_backend_gtk.*.py*
%if 0%{?suse_version} > 1500 && 0%{?python_version_nodots} >= 310 %if 0%{?suse_version} > %SLE_VERSION && 0%{?python_version_nodots} >= 310
%files %{python_files nbagg} %files %{python_files nbagg}
%license LICENSE/ %license LICENSE/
%{python_sitearch}/matplotlib/backends/backend_nbagg.py* %{python_sitearch}/matplotlib/backends/backend_nbagg.py*
@ -498,7 +500,7 @@ $python -m pytest --pyargs matplotlib.tests \
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg.*.py* %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg.*.py*
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg_core.*.py* %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg_core.*.py*
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > %SLE_VERSION
%files %{python_files wx} %files %{python_files wx}
%license LICENSE/ %license LICENSE/
%{python_sitearch}/matplotlib/backends/backend_wx.py* %{python_sitearch}/matplotlib/backends/backend_wx.py*