diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-03-04 23:53:18 +0100 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2016-03-04 23:55:19 +0100 |
commit | afb989113ee3816396a2c0f95ac1579b3a4c42c6 (patch) | |
tree | 4b0b5b80d21af20cf8604a181aef4fc3d627a82d | |
parent | 4dc934a5f3fbeea7e877aaadcb13a6eabb635463 (diff) | |
download | pki-afb989113ee3816396a2c0f95ac1579b3a4c42c6.tar.gz pki-afb989113ee3816396a2c0f95ac1579b3a4c42c6.tar.xz pki-afb989113ee3816396a2c0f95ac1579b3a4c42c6.zip |
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.
-rw-r--r-- | specs/pki-core.spec | 2 |
1 files changed, 1 insertions, 1 deletions
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 |