diff --git a/python-pocketlint.spec b/python-pocketlint.spec index 030fa27..43f3a4e 100644 --- a/python-pocketlint.spec +++ b/python-pocketlint.spec @@ -1,3 +1,4 @@ +%global with_tests 0%{?_with_tests:0} Name: python-pocketlint Version: 0.17 Release: 2 @@ -48,7 +49,10 @@ Python-based source projects. %make_install PYTHON=%{__python3} %check +%if %{with_tests} +make check PYTHON=%{__python2} make check PYTHON=%{__python3} +%endif %files -n python3-pocketlint %license COPYING