From b51356fbdd3fd2a39562e51c293836dc01a158fead4427d5d43f9a227db01279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Thu, 31 May 2012 21:34:50 +0000 Subject: [PATCH] Define python_sitelib and python_sitearch if undefined. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tevent?expand=0&rev=5 --- tevent.changes | 5 +++++ tevent.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/tevent.changes b/tevent.changes index fe4134e..a9432b4 100644 --- a/tevent.changes +++ b/tevent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 31 21:33:31 UTC 2012 - lmuelle@suse.com + +- Define python_sitelib and python_sitearch if undefined. + ------------------------------------------------------------------- Thu May 31 12:01:45 UTC 2012 - lmuelle@suse.com diff --git a/tevent.spec b/tevent.spec index 2ff8123..417031a 100644 --- a/tevent.spec +++ b/tevent.spec @@ -17,6 +17,9 @@ # norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + Name: libtevent0 BuildRequires: doxygen BuildRequires: libtalloc-devel >= 2.0.7