From 26d36a5ff4e826141ab0c410eefaed4c44557116 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 14 May 2025 05:47:03 -0700 Subject: [PATCH] chore(sphinxcontrib-moderncmakedomain): Add explicit build dep on pyproject-rpm-macros (#4829) (#4834) (cherry picked from commit bf4274621a197141fe5f74e048a0b50832513201) Signed-off-by: Gilver Co-authored-by: Gilver --- .../python-sphinxcontrib-moderncmakedomain.spec | 7 +++++++ 1 file changed, 7 insertions(+) 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