diff --git a/pyflakes.spec b/pyflakes.spec index 593d72a..05b7311 100644 --- a/pyflakes.spec +++ b/pyflakes.spec @@ -15,7 +15,7 @@ Name: pyflakes # WARNING: When updating pyflakes, check not to break flake8! Version: 2.0.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A simple program which checks Python source files for errors License: MIT @@ -98,7 +98,9 @@ ln -s pyflakes-%{defaultpython} %{buildroot}%{_bindir}/pyflakes ln -s pyflakes-%{defaultpython}.1 %{buildroot}%{_mandir}/man1/pyflakes.1 %check +%if %{with_python2} %{__python2} -Wall setup.py test +%endif %{__python3} -Wall setup.py test %if %{with_python2} @@ -134,6 +136,9 @@ ln -s pyflakes-%{defaultpython}.1 %{buildroot}%{_mandir}/man1/pyflakes.1 %endif %changelog +* Tue Jun 26 2018 Sandro Bonazzola - 2.0.0-4 +- Fixed check section on RHEL > 7 + * Fri Jun 22 2018 Sandro Bonazzola - 2.0.0-3 - Drop python2 support on RHEL 8 - Resolves: BZ#1594150