From c9d47e94c5d0bc0e2a6ca8fca3a1a26da3343e46 Mon Sep 17 00:00:00 2001 From: ruebb Date: Fri, 10 Jan 2020 21:55:09 -0500 Subject: [PATCH 1/2] delete %check for python2 --- python-pocketlint.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-pocketlint.spec b/python-pocketlint.spec index 9d49a90..030fa27 100644 --- a/python-pocketlint.spec +++ b/python-pocketlint.spec @@ -48,7 +48,6 @@ Python-based source projects. %make_install PYTHON=%{__python3} %check -make check PYTHON=%{__python2} make check PYTHON=%{__python3} %files -n python3-pocketlint From 91f43a18d477c101aaaeb1c6cac5b6f35af196a9 Mon Sep 17 00:00:00 2001 From: ruebb Date: Fri, 10 Jan 2020 22:52:58 -0500 Subject: [PATCH 2/2] close check --- python-pocketlint.spec | 4 ++++ 1 file changed, 4 insertions(+) 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