* Michael Andres <ma@suse.de> [Nov 24. 2009 13:40]:
ref: refs/heads/master commit 60317182679a5146fdd7950b910e43b33d536d80 Author: Michael Andres <ma@suse.de> Date: Tue Nov 24 13:40:09 2009 +0100
Fix to build on sle11-sp1 --- libzypp-bindings.spec.cmake | 5 +++++ package/libzypp-bindings.changes | 5 +++++ 2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/libzypp-bindings.spec.cmake b/libzypp-bindings.spec.cmake index 23aa13e..85aedad 100644 --- a/libzypp-bindings.spec.cmake +++ b/libzypp-bindings.spec.cmake @@ -21,6 +21,11 @@ BuildRequires: cmake gcc-c++ python-devel ruby-devel swig BuildRequires: libzypp-devel >= 5.8.0 Source: %{name}-%{version}.tar.bz2
+%if 0%{?suse_version} == 1110 +# not present on sle11-sp1: +%define python_sitelib /usr/lib/python%{python_version}/site-packages +%endif +
Uhm, you can remove the conditional (and replace the hard-coded path) by using %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org