diff --git a/python-numpydoc.spec b/python-numpydoc.spec index 97677b8..2e488b4 100644 --- a/python-numpydoc.spec +++ b/python-numpydoc.spec @@ -1,3 +1,10 @@ +# No matplot yet in EPEL10 +%if 0%{?rhel} >= 10 +%bcond_with matplotlib +%else +%bcond_without matplotlib +%endif + Name: python-numpydoc Version: 1.8.0 Release: 6%{?dist} @@ -36,6 +43,9 @@ Summary: %{summary} # let's not measure coverage: sed -i '/pytest-cov/d' requirements/test.txt pyproject.toml sed -Ei 's/\s+--cov\S+//g' pyproject.toml +%if %{without matplotlib} +sed -i '/matplotlib/d' requirements/test.txt pyproject.toml +%endif # Remove a useless shebang sed -i '\,#!/usr/bin/env python,d' numpydoc/validate.py