forked from pool/python-matplotlib
Accepting request 1149747 from Application:ERP:GNUHealth:4.4
OBS-URL: https://build.opensuse.org/request/show/1149747 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=86
This commit is contained in:
parent
1ea6cc2e54
commit
47718e923c
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 23 07:40:01 UTC 2024 - Max Lin <mlin@suse.com>
|
||||
|
||||
- Disable nbagg and wx plugin on Leap15/SLE15
|
||||
* Leap 15 doesn't have IPython stack with python 3.11 build
|
||||
* python-wxPython with python 3.11 supported needs wxWidgets
|
||||
version >= 3.2.0 as the minimal requirement which Leap15/SLE15
|
||||
don't have that
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 22 15:09:27 UTC 2024 - Lubos Kocman <lubos.kocman@suse.com>
|
||||
|
||||
|
@ -95,12 +95,16 @@ BuildRequires: %{python_module matplotlib = %{version}}
|
||||
BuildRequires: %{python_module matplotlib-cairo = %{version}}
|
||||
BuildRequires: %{python_module matplotlib-gtk3 = %{version}}
|
||||
BuildRequires: %{python_module matplotlib-gtk4 = %{version}}
|
||||
%if 0%{?suse_version} > 1500
|
||||
BuildRequires: %{python_module matplotlib-nbagg = %{version}}
|
||||
%endif
|
||||
BuildRequires: %{python_module matplotlib-qt5 = %{version}}
|
||||
BuildRequires: %{python_module matplotlib-testdata = %{version}}
|
||||
BuildRequires: %{python_module matplotlib-tk = %{version}}
|
||||
BuildRequires: %{python_module matplotlib-web = %{version}}
|
||||
%if 0%{?suse_version} > 1500
|
||||
BuildRequires: %{python_module matplotlib-wx = %{version}}
|
||||
%endif
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest-xvfb}
|
||||
@ -117,7 +121,7 @@ BuildRequires: %{python_module cairo >= 1.14.0}
|
||||
BuildRequires: %{python_module cairocffi >= 0.8}
|
||||
# /SECTION cairo
|
||||
# SECTION nbagg backend tests
|
||||
%if !%{with ringdisabled}
|
||||
%if !%{with ringdisabled} && 0%{?suse_version} > 1500
|
||||
BuildRequires: %{python_module nbconvert}
|
||||
BuildRequires: %{python_module nbformat}
|
||||
%endif
|
||||
@ -182,6 +186,7 @@ Requires: python-gobject-cairo
|
||||
This package provides code common for the GTK3 and GTK4 backends
|
||||
for the %{name} plotting package
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%package nbagg
|
||||
Summary: Jupyter nbagg backend for %{name}
|
||||
Requires: %{name} = %{version}
|
||||
@ -190,6 +195,7 @@ Requires: python-ipykernel
|
||||
%description nbagg
|
||||
This package includes the Jupyter notebook backend
|
||||
for the %{name} plotting package
|
||||
%endif
|
||||
|
||||
%package latex
|
||||
Summary: Allow rendering latex in %{name}
|
||||
@ -271,6 +277,7 @@ Requires: python-tornado
|
||||
This package includes the browser-based webagg backend
|
||||
for the %{name} plotting package
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%package wx
|
||||
Summary: WxWidgets backend for %{name}
|
||||
Requires: %{name} = %{version}
|
||||
@ -279,6 +286,7 @@ Requires: python-wxPython >= 4
|
||||
%description wx
|
||||
This package includes the wxWidgets-based wxagg backend
|
||||
for %{name} plotting package
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n matplotlib-%{version}
|
||||
@ -460,11 +468,13 @@ $python -m pytest --pyargs matplotlib.tests \
|
||||
%{python_sitearch}/matplotlib/backends/_backend_gtk.py
|
||||
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/_backend_gtk.*.py*
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%files %{python_files nbagg}
|
||||
%license LICENSE/
|
||||
%license doc/users/project/license.rst
|
||||
%{python_sitearch}/matplotlib/backends/backend_nbagg.py*
|
||||
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_nbagg.*.py*
|
||||
%endif
|
||||
|
||||
%files %{python_files qt}
|
||||
%license LICENSE/
|
||||
@ -510,6 +520,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_core.*.py*
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%files %{python_files wx}
|
||||
%license LICENSE/
|
||||
%license doc/users/project/license.rst
|
||||
@ -520,5 +531,6 @@ $python -m pytest --pyargs matplotlib.tests \
|
||||
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_wxagg.*.py*
|
||||
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_wxcairo.*.py*
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user