add %bcond tests
This commit is contained in:
parent
1566f6de43
commit
de86b97261
@ -1,5 +1,7 @@
|
|||||||
%global modname ply
|
%global modname ply
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Summary: Python Lex-Yacc
|
Summary: Python Lex-Yacc
|
||||||
Version: 3.11
|
Version: 3.11
|
||||||
@ -59,12 +61,14 @@ rm -rf *.egg-info
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
pushd test
|
pushd test
|
||||||
./cleanup.sh
|
./cleanup.sh
|
||||||
%{__python3} testlex.py
|
%{__python3} testlex.py
|
||||||
%{__python3} testyacc.py
|
%{__python3} testyacc.py
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
%files -n python3-%{modname}
|
||||||
%doc CHANGES README.md
|
%doc CHANGES README.md
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user