diff --git a/cloud-init.changes b/cloud-init.changes index 898af47..9b54cbd 100644 --- a/cloud-init.changes +++ b/cloud-init.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 24 19:49:34 UTC 2014 - rschweikert@suse.com + +- add the python magic for package build on SLE 11 + ------------------------------------------------------------------- Tue Jun 24 19:23:07 UTC 2014 - rschweikert@suse.com diff --git a/cloud-init.spec b/cloud-init.spec index 198751e..2192352 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -60,7 +60,9 @@ Requires: sudo Requires: util-linux BuildRoot: %{_tmppath}/%{name}-%{version}-build %define docdir %{_defaultdocdir}/%{name} -%if 0%{?suse_version} && 0%{?suse_version} >= 1110 +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else BuildArch: noarch %endif %if 0%{?suse_version} && 0%{?suse_version} <= 1210