diff --git a/atomic.spec b/atomic.spec index 92f90c6..482f3b2 100644 --- a/atomic.spec +++ b/atomic.spec @@ -3,7 +3,9 @@ %global pypkg python %global pysitelib %{python_sitelib} %global __python %{__python2} +%if 0%{?fedora} %global pylint pylint +%endif %else %global pypkg python3 %global pysitelib %{python3_sitelib} @@ -24,8 +26,7 @@ ExclusiveArch: x86_64 Source0: https://github.com/projectatomic/%{name}/archive/%{commit}.tar.gz BuildRequires: %{pypkg}-devel -%if 0%{?rhel} != 0 && 0%{?rhel} <= 7 -%else +%if 0%{?fedora} BuildRequires: %{pylint} %endif BuildRequires: %{pypkg}-requests @@ -60,10 +61,10 @@ management. %setup -qn %{name}-%{commit} %build -make PYTHON=%{__python} PYLINT=%{pylint} all +make PYTHON=%{__python} PYLINT=%{?pylint} all %install -make PYTHON=%{__python} PYLINT=%{pylint} install DESTDIR=%{buildroot} +make PYTHON=%{__python} PYLINT=%{?pylint} install DESTDIR=%{buildroot} %check [ ! -w /run/docker.sock ] || make PYTHON=%{__python} test