add %bcond tests

This commit is contained in:
Patrik Kopkan 2019-11-06 12:26:14 +01:00
parent 1566f6de43
commit de86b97261

View File

@ -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