CI: Use flit_core in python-entrypoints.spec for EL10 compatibility

This commit is contained in:
Miro Hrončok 2024-09-05 17:36:08 +02:00
parent 049eb198d0
commit 32a3b5613f

View File

@ -11,7 +11,7 @@ BuildArch: noarch
%description
This package contains one .py module
Building this tests the flit build backend.
Building this tests the flit(_core) build backend.
This package also has no explicit BuildRequires for python or the macros,
testing the minimal implementation of %%pyproject_buildrequires
from pyproject-srpm-macros.
@ -26,6 +26,10 @@ Summary: %{summary}
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
%if 0%{?rhel}
# force the flit-core build backend, as that is available rather than full flit
sed -i 's/"flit/"flit_core/' pyproject.toml
%endif
%generate_buildrequires