Disable tests by default in RHEL builds

This avoids unwanted dependencies, particularly python-hypothesis, in
the RHEL buildroot.
This commit is contained in:
Yaakov Selkowitz 2023-02-10 12:17:27 -05:00
parent d64912f2ea
commit 618215c4a9

View File

@ -23,7 +23,8 @@ Source: %{pypi_source}
Patch1: %{url}/commit/2bdd63158b7f981fc6d70a869680451bdfd8d848.patch
# when bootstrapping dateutil-freezegun, we cannot run tests
%bcond_without tests
# on RHEL, we do not have or want all test dependencies
%bcond tests %{undefined rhel}
BuildArch: noarch
BuildRequires: make