0b9b782c5c
See https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/thread/TFQGD7CSTD5WVKVT3WDIGF5D6DID5NK6/ Related: rhbz#2060109
31 lines
634 B
RPMSpec
31 lines
634 B
RPMSpec
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 <<EOF
|
|
click!=5.0.0,>=4.1 # comment to increase test complexity
|
|
toml>=0.10.0
|
|
EOF
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires requirements.txt -N
|
|
|
|
|
|
%check
|
|
pip show toml click
|
|
%if 0%{?fedora} > 34 || 0%{?rhel} > 9
|
|
# On F34, python3-devel requires (python3-setuptools if rpm-build)
|
|
pip show setuptools && exit 1 || true
|
|
%endif
|
|
pip show wheel && exit 1 || true
|