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