1
0
Matej Cepl 2024-03-22 09:10:55 +00:00 committed by Git OBS Bridge
parent 9c5a710deb
commit 1a5cd9516a
2 changed files with 17 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 22 09:10:48 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 19 16:42:20 UTC 2024 - Antonio Larrosa <alarrosa@suse.com> Tue Mar 19 16:42:20 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>

View File

@ -27,7 +27,6 @@ ExclusiveArch: x86_64 aarch64
%bcond_with test %bcond_with test
%endif %endif
%bcond_with ringdisabled %bcond_with ringdisabled
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-matplotlib%{psuffix} Name: python-matplotlib%{psuffix}
Version: 3.8.2 Version: 3.8.2
@ -69,6 +68,7 @@ BuildRequires: pkgconfig(libpng) >= 1.2
BuildRequires: pkgconfig(tcl) BuildRequires: pkgconfig(tcl)
# /SECTION # /SECTION
# SECTION runtime # SECTION runtime
Requires: (python-numpy >= 1.21 with python-numpy < 2)
Requires: python-Cycler >= 0.10 Requires: python-Cycler >= 0.10
Requires: python-FontTools >= 4.22.0 Requires: python-FontTools >= 4.22.0
Requires: python-Pillow >= 8 Requires: python-Pillow >= 8
@ -77,7 +77,6 @@ Requires: python-kiwisolver >= 1.3.1
Requires: python-packaging >= 20.0 Requires: python-packaging >= 20.0
Requires: python-pyparsing > 2.3.1 Requires: python-pyparsing > 2.3.1
Requires: python-python-dateutil >= 2.7 Requires: python-python-dateutil >= 2.7
Requires: (python-numpy >= 1.21 with python-numpy < 2)
%if 0%{?python_version_nodots} < 310 %if 0%{?python_version_nodots} < 310
Requires: python-importlib-resources >= 3.2.0 Requires: python-importlib-resources >= 3.2.0
%endif %endif
@ -88,21 +87,21 @@ BuildRequires: %{python_module matplotlib = %{version}}
BuildRequires: %{python_module matplotlib-cairo = %{version}} BuildRequires: %{python_module matplotlib-cairo = %{version}}
BuildRequires: %{python_module matplotlib-gtk3 = %{version}} BuildRequires: %{python_module matplotlib-gtk3 = %{version}}
BuildRequires: %{python_module matplotlib-gtk4 = %{version}} BuildRequires: %{python_module matplotlib-gtk4 = %{version}}
%if 0%{?suse_version} > 1500
BuildRequires: %{python_module matplotlib-nbagg = %{version} if %python-base >= 3.10}
%endif
BuildRequires: %{python_module matplotlib-qt5 = %{version}} BuildRequires: %{python_module matplotlib-qt5 = %{version}}
BuildRequires: %{python_module matplotlib-testdata = %{version}} BuildRequires: %{python_module matplotlib-testdata = %{version}}
BuildRequires: %{python_module matplotlib-tk = %{version}} BuildRequires: %{python_module matplotlib-tk = %{version}}
BuildRequires: %{python_module matplotlib-web = %{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 psutil}
BuildRequires: %{python_module pytest-xdist} 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
BuildRequires: %{python_module matplotlib-nbagg = %{version} if %python-base >= 3.10}
%endif
%if 0%{?suse_version} > 1500
BuildRequires: %{python_module matplotlib-wx = %{version}}
%endif
# SECTION latex test dependencies # SECTION latex test dependencies
BuildRequires: %{python_module matplotlib-latex = %{version}} BuildRequires: %{python_module matplotlib-latex = %{version}}
BuildRequires: ghostscript BuildRequires: ghostscript
@ -114,14 +113,14 @@ 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 !%{with ringdisabled} && 0%{?suse_version} > 1500 %if %{without ringdisabled} && 0%{?suse_version} > 1500
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
# /SECTION nbagg # /SECTION nbagg
# 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 !%{with ringdisabled} %if %{without ringdisabled}
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
BuildRequires: %{python_module PyQt6} BuildRequires: %{python_module PyQt6}
BuildRequires: python3-pyside2 BuildRequires: python3-pyside2
@ -296,12 +295,12 @@ cp %{SOURCE1} mplsetup.cfg
sed -i '/"certifi>=.*"/ d' pyproject.toml sed -i '/"certifi>=.*"/ d' pyproject.toml
%build %build
%if !%{with test} %if %{without test}
%pyproject_wheel %pyproject_wheel
%endif %endif
%install %install
%if !%{with test} %if %{without test}
%pyproject_install %pyproject_install
%{python_expand sed -i -e "s/install matplotlib from source/install the $python-matplotlib-testdata package/" \ %{python_expand sed -i -e "s/install matplotlib from source/install the $python-matplotlib-testdata package/" \
%{buildroot}%{$python_sitearch}/matplotlib/tests/__init__.py %{buildroot}%{$python_sitearch}/matplotlib/tests/__init__.py
@ -359,7 +358,7 @@ $python -m pytest --pyargs matplotlib.tests \
} }
%endif %endif
%if !%{with test} %if %{without test}
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE/ %license LICENSE/