From 45288d71bd18e66c35d24a60dab9d4c648fdc024 Mon Sep 17 00:00:00 2001 From: Thomas Spura Date: Tue, 26 Oct 2010 12:52:47 +0200 Subject: [PATCH] use new macro for python_sitearch --- numpy.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/numpy.spec b/numpy.spec index d8768d9..5605617 100644 --- a/numpy.spec +++ b/numpy.spec @@ -1,4 +1,6 @@ -%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif # eval to 2.3 if python isn't yet present, workaround for no python in fc4 minimal buildroot %{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]' || echo "2.3")}