From aa6356a3f76adaff9e778c3b4ec74311a22d2331122d9ea611ec2877a473f6e8 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Thu, 30 Jan 2014 15:30:22 +0000
Subject: [PATCH] OBS-URL:
https://build.opensuse.org/package/show/devel:languages:python/python-sh?expand=0&rev=2
---
python-sh.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/python-sh.spec b/python-sh.spec
index ada3c2d..19a3360 100644
--- a/python-sh.spec
+++ b/python-sh.spec
@@ -1,5 +1,5 @@
#
-# spec file for package
+# spec file for python-sh
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -24,7 +24,11 @@ Url: https://github.com/amoffat/sh
Group: Development/Languages/Python
Source0: https://github.com/amoffat/sh/archive/%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%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
BuildRequires: python-devel
BuildRequires: python-setuptools