From 45f5cd8e369bbd836704f90d4ca7a589033bbc14 Mon Sep 17 00:00:00 2001 From: Gilver Date: Mon, 26 May 2025 08:24:55 -0500 Subject: [PATCH] chore(sphinxcontrib-moderncmakedomain): The ifcondening Signed-off-by: Gilver --- .../python-sphinxcontrib-moderncmakedomain.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec b/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec index 439dbf8fec..f8defb88a9 100644 --- a/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec +++ b/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec @@ -40,13 +40,21 @@ Modern CMake domain entries, originally from Kitware. %autosetup -n %{pypi_name}-%{version} %build +%if 0%{?fedora} <= 41 || 0%{?rhel} +%py3_build +%else %pyproject_wheel +%endif %install +%if 0%{?fedora} <= 41 || 0%{?rhel} +%py3_install +%else %pyproject_install +%endif %check -%if 0%{?rhel} +%if 0%{?fedora} <= 41 || 0%{?rhel} %pytest tests/*.py %else nox -s tests @@ -57,7 +65,11 @@ nox -s tests %doc README.md %license LICENSE %{python3_sitelib}/sphinxcontrib/moderncmakedomain +%if 0%{?fedora} <= 41 || 0%{?rhel} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ +%else %{python3_sitelib}/%{pypi_name}-%{version}.dist-info +%endif %changelog * Sat May 10 2025 Gilver E. - 3.29.0-1