From d4381cdca3c7dda4afcca03f8551aa54aec4691f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Wed, 2 Oct 2013 16:53:58 +0200 Subject: [PATCH] %{python2_sitelib} is needed here --- pyelftools.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyelftools.spec b/pyelftools.spec index 9534b49..a2cea96 100644 --- a/pyelftools.spec +++ b/pyelftools.spec @@ -1,8 +1,8 @@ %if 0%{?fedora} || 0%{?rhel} >= 7 -%global __python_sitearch %{python2_sitearch} +%global __python_sitelib %{python2_sitelib} %else -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%global __python_sitearch %{python_sitearch} +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%global __python_sitelib %{python_sitelib} %{?__python2:%global __python2 %{__python}} %endif