adjust build conditionals

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-03-09 14:53:39 -05:00
parent bae00581fe
commit ffa67d5bf4

View File

@ -43,7 +43,7 @@ Summary: %{summary}
%prep
%autosetup -Sgit_am -n %{pypi_name}-%{built_tag_strip}
%if ! 0%{?rhel} <= 8
%if 0%{?fedora} || 0%{?rhel} >= 9
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-t}
%endif