Add bcond to disable tests

This commit is contained in:
Tomáš Hrnčiar 2022-11-24 16:05:46 +01:00
parent 98ce110097
commit fa92b49e14

View File

@ -1,3 +1,6 @@
# when building packages with new Python we need to build typing-extension without tests before pytest is available
%bcond tests 1
Name: python-typing-extensions
Version: 4.2.0
Release: 5%{?dist}
@ -11,7 +14,9 @@ BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-test
%if %{without tests}
BuildRequires: python3-pytest
%end
%global _description %{expand:
@ -65,8 +70,10 @@ Summary: %{summary}
%pyproject_save_files typing_extensions
%if %{without tests}
%check
%pytest
%end
%files -n python3-typing-extensions -f %{pyproject_files}
%license LICENSE