Name: fake-requirements Version: 0 Release: 0%{?dist} Summary: ... License: MIT BuildRequires: pyproject-rpm-macros %description Fake spec file to test %%pyproject_buildrequires -N works as expected %prep cat > requirements.txt <=4.1 # comment to increase test complexity tomli>=0.10.0 EOF %generate_buildrequires %pyproject_buildrequires requirements.txt -N %check pip show tomli click %if 0%{?fedora} || 0%{?rhel} > 9 # On RHEL 9, python3-devel requires (python3-setuptools if rpm-build) pip show setuptools && exit 1 || true %endif pip show wheel && exit 1 || true