From c6fffb5bb679064cf500acab9ce087a6776eac38a06089e1012fcc17d2a0505c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Thu, 31 May 2012 22:43:53 +0000 Subject: [PATCH] Define python_sitearch if undefined. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=7 --- ldb.changes | 2 +- ldb.spec | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ldb.changes b/ldb.changes index 46e1ed1..33594c3 100644 --- a/ldb.changes +++ b/ldb.changes @@ -2,7 +2,7 @@ Thu May 31 22:22:49 UTC 2012 - lmuelle@suse.com - Define and use talloc, tdb, and tevent version macros. -- Define python_version if undefined. +- Define python_sitearch if undefined. ------------------------------------------------------------------- Thu May 31 13:46:42 UTC 2012 - lmuelle@suse.com diff --git a/ldb.spec b/ldb.spec index e8519ac..6532c9d 100644 --- a/ldb.spec +++ b/ldb.spec @@ -17,7 +17,7 @@ # norootforbuild -%{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print(get_python_version())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define talloc_version 2.0.7 %define tdb_version 1.2.10 @@ -144,9 +144,9 @@ DESTDIR=${RPM_BUILD_ROOT} make install %{_libdir}/libpyldb-util.so %{_libdir}/pkgconfig/ldb.pc %{_libdir}/pkgconfig/pyldb-util.pc -%{_libdir}/python%{python_version}/site-packages/ldb.so -%{_libdir}/python%{python_version}/site-packages/talloc.so -%{_libdir}/python%{python_version}/site-packages/tdb.so +%{python_sitearch}/ldb.so +%{python_sitearch}/talloc.so +%{python_sitearch}/tdb.so %files -n ldb-tools %defattr(-,root,root)