From 0493bbd0867bcea937096a67332b73d5be992f3f Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 15 Feb 2017 11:58:26 -0800 Subject: [PATCH] Use %epel not %rhel for Python 3 enabling check This is more correct because Python 3 is really available in *EPEL* not in RHEL. This is important here because the same spec (kept in productmd SCM) is used to do builds for RHEL in contexts without EPEL, and Python 3 building will fail in that scenario. --- python-productmd.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-productmd.spec b/python-productmd.spec index 0ef7bdf..c3b08aa 100644 --- a/python-productmd.spec +++ b/python-productmd.spec @@ -1,5 +1,7 @@ # Enable Python 3 builds for Fedora + EPEL >5 -%if 0%{?fedora} || 0%{?rhel} > 5 +# NOTE: do **NOT** change 'epel' to 'rhel' here, as this spec is also +# used to do RHEL builds without EPEL +%if 0%{?fedora} || 0%{?epel} > 5 # If the definition isn't available for python3_pkgversion, define it %{?!python3_pkgversion:%global python3_pkgversion 3} %bcond_without python3