Resolves: #1902181 Don't run tests on the centos and rhel because of missing required packages

This commit is contained in:
Jan Horak 2021-04-22 10:31:07 +02:00
parent 4e21ec104b
commit 12d3a3c5c7

View File

@ -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}