From 0a1ad3d609b6f808425de12e361b459a0aa63b5e1bae02d902a7aa058f44c2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Wed, 30 May 2012 16:40:03 +0000 Subject: [PATCH] Define python_sitearch if undefined. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=4 --- tdb.changes | 4 ++-- tdb.spec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tdb.changes b/tdb.changes index 5baafe7..a51f0cc 100644 --- a/tdb.changes +++ b/tdb.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- -Wed May 30 16:08:28 UTC 2012 - lmuelle@suse.com +Wed May 30 16:39:26 UTC 2012 - lmuelle@suse.com -- Define missing python macros on pre-6 CentOS and RHEL systems. +- Define python_sitearch if undefined. ------------------------------------------------------------------- Wed May 30 15:36:34 UTC 2012 - lmuelle@suse.com diff --git a/tdb.spec b/tdb.spec index ae55e55..2205c27 100644 --- a/tdb.spec +++ b/tdb.spec @@ -17,7 +17,7 @@ # norootforbuild -%if 0%{?centos_version} && 0%{?centos_version} < 600 || 0%{rhel_version} && 0%{rhel_version} < 600 +%if "%{python_sitearch}" == "" # CentOS and RHEL pre-6 don't know python_sitearch %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))") %endif