diff --git a/python-scour.spec b/python-scour.spec index 732734a..157479b 100644 --- a/python-scour.spec +++ b/python-scour.spec @@ -14,8 +14,12 @@ Source0: %{url}/archive/v%{gitversion}.tar.gz#/%{modname}-%{version}. BuildRequires: python3-devel BuildRequires: python3-setuptools # Tests +%if !0%{?rhel} +%if !0%{?centos} BuildRequires: python3-six BuildRequires: python3-flake8 +%endif +%endif BuildArch: noarch @@ -47,7 +51,11 @@ find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';' %check +%if !0%{?rhel} +%if !0%{?centos} %{__python3} setup.py test +%endif +%endif %{!?_licensedir: %global license %doc}