- add the python magic for package build on SLE 11

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=15
This commit is contained in:
Robert Schweikert 2014-06-24 19:50:04 +00:00 committed by Git OBS Bridge
parent 7e9476e0dc
commit fff2928063
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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