[packages/python-pyflakes] make some use of tests bcond; rel 5

atler atler at pld-linux.org
Mon Mar 1 17:42:13 CET 2021


commit 1c918c747709214385641db1ad796a0847d35bdc
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Mar 1 17:41:07 2021 +0100

    make some use of tests bcond; rel 5

 python-pyflakes.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/python-pyflakes.spec b/python-pyflakes.spec
index c1272e6..b5ed717 100644
--- a/python-pyflakes.spec
+++ b/python-pyflakes.spec
@@ -10,7 +10,7 @@ Summary(pl.UTF-8):	Pasywny program do sprawdzania programów w Pythonie
 Name:		python-%{module}
 # NOTE: before upgrading to >=2.2.0 check for flake8 release supporting new pyflakes
 Version:	2.1.1
-Release:	4
+Release:	5
 License:	MIT
 Group:		Development/Tools
 #Source0Download: https://pypi.org/simple/pyflakes/
@@ -82,14 +82,18 @@ tylko błędów logicznych w programach; nie sprawdza stylu.
 %if %{with python2}
 %py_build
 
+%if %{with tests}
 %{__python} -m unittest discover -s pyflakes/test
 %endif
+%endif
 
 %if %{with python3}
 %py3_build
 
+%if %{with tests}
 %{__python3} -m unittest discover -s pyflakes/test
 %endif
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyflakes.git/commitdiff/1c918c747709214385641db1ad796a0847d35bdc



More information about the pld-cvs-commit mailing list