From be1415b6cc8f5dadc1ac3766305a33f370fdf9bb Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Fri, 26 May 2017 22:30:28 +0200 Subject: [PATCH] pylint: explicitly depends on python2-pylint F26 defaults to python3 with pylint package, we have to explicitly ask for python2 version of pylint https://pagure.io/freeipa/issue/6986 Reviewed-By: Stanislav Laznicka --- freeipa.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freeipa.spec.in b/freeipa.spec.in index 7debe777e..1446dfbb7 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -170,7 +170,11 @@ BuildRequires: samba-python # 1.6: x509.Name.rdns (https://github.com/pyca/cryptography/issues/3199) BuildRequires: python2-cryptography >= 1.6 BuildRequires: python-gssapi >= 1.2.0 +%if 0%{?fedora} >= 26 +BuildRequires: python2-pylint +%else BuildRequires: pylint >= 1.6 +%endif # workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1096506 BuildRequires: python2-polib BuildRequires: python-libipa_hbac