add %bcond tests
This commit is contained in:
parent
1566f6de43
commit
de86b97261
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user