From de86b97261963d402ad41aebda3ac148d3614540 Mon Sep 17 00:00:00 2001 From: Patrik Kopkan Date: Wed, 6 Nov 2019 12:26:14 +0100 Subject: [PATCH] add %bcond tests --- python-ply.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-ply.spec b/python-ply.spec index 3174282..791c2d7 100644 --- a/python-ply.spec +++ b/python-ply.spec @@ -1,5 +1,7 @@ %global modname ply +%bcond_without tests + Name: python-%{modname} Summary: Python Lex-Yacc Version: 3.11 @@ -59,12 +61,14 @@ rm -rf *.egg-info %install %py3_install +%if %{with tests} %check pushd test ./cleanup.sh %{__python3} testlex.py %{__python3} testyacc.py popd +%endif %files -n python3-%{modname} %doc CHANGES README.md