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)