diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index decbdaf..90bd22d 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -47,7 +47,12 @@ Summary: %{summary} sed -r -i '/^[[:blank:]]*.hunter.,[[:blank:]]*$/d' setup.py %generate_buildrequires + +%if 0%{?rhel} >= 9 +%pyproject_buildrequires +%else %pyproject_buildrequires -x testing +%endif %build @@ -59,6 +64,9 @@ sed -r -i '/^[[:blank:]]*.hunter.,[[:blank:]]*$/d' setup.py %pyproject_save_files pytest_cov +%if 0%{?rhel} >= 9 +echo "disabling tests in epel until all the dependencies are satisfied" +%else %check k="$(awk 'NR>1 {pre=" and " } { printf "%snot %s", pre, $0 }' <