From e24b63fbeef5bfe2a0bd7994ca36790840709de9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Aug 07 2015 15:12:11 +0000 Subject: atomic: Only BR pylint on Fedora As it's not in RHEL core. --- 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