Disable tests by default in RHEL builds

RHEL does not include all the test dependencies.
This commit is contained in:
Yaakov Selkowitz 2023-05-15 08:19:41 -04:00
parent 17d77b0a26
commit 3449703bd8

View File

@ -5,7 +5,8 @@
# Tests are enabled by default, unless we bootstrap.
# Disable them to avoid a circular build dependency on requests-download and testpath.
%bcond tests %{without bootstrap}
# RHEL does not have all the test dependencies
%bcond tests %[%{without bootstrap} && ! %[%{defined rhel} && %{undefined epel}]]
%global srcname flit