From df5901862537db60c2423bc506806564eb338a91 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Jun 16 2014 14:39:46 +0000 Subject: No Python 3 for EL7 --- diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 16ecd50..5ba545d 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,4 +1,4 @@ -%if 0%{?rhel} && 0%{?rhel} <= 6 +%if 0%{?rhel} && 0%{?rhel} <= 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())")} %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}