From afb989113ee3816396a2c0f95ac1579b3a4c42c6 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 4 Mar 2016 23:53:18 +0100 Subject: Only build Python 3 packages on Fedora 24+ Fedora 23 doesn't have NSS and LDAP packages for Python 3. RHEL 7.2 doesn't ship Python 3. --- specs/pki-core.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/pki-core.spec b/specs/pki-core.spec index 7aa77f5f6..a46190bf4 100644 --- a/specs/pki-core.spec +++ b/specs/pki-core.spec @@ -2,7 +2,7 @@ %{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%if 0%{?rhel} +%if 0%{?rhel} || 0%{?fedora} < 24 %global with_python3 0 %else %global with_python3 1 -- cgit