diff --git a/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec b/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec index 20e63a045a..439dbf8fec 100644 --- a/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec +++ b/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec @@ -10,9 +10,12 @@ Summary: Sphinx domain for modern CMake License: BSD-3-Clause URL: https://github.com/scikit-build/moderncmakedomain Source0: %{pypi_source} +BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: python3dist(hatchling) +%if 0%{?fedora} BuildRequires: python3dist(nox) +%endif BuildRequires: python3dist(pip) BuildRequires: python3dist(pytest) BuildRequires: python3dist(setuptools) @@ -43,7 +46,11 @@ Modern CMake domain entries, originally from Kitware. %pyproject_install %check +%if 0%{?rhel} +%pytest tests/*.py +%else nox -s tests +%endif %files -n python3-%{real_name} %doc PKG-INFO