From fa92b49e143d8b3153c40afb8972c36d712c2abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Thu, 24 Nov 2022 16:05:46 +0100 Subject: [PATCH] Add bcond to disable tests --- python-typing-extensions.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python-typing-extensions.spec b/python-typing-extensions.spec index 1dbaf8e..94810db 100644 --- a/python-typing-extensions.spec +++ b/python-typing-extensions.spec @@ -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