From 93393581fd8096abcaff754bd2419154da45fb8d3df5fa243a44985d97031869 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Sun, 4 Dec 2016 08:34:25 +0000 Subject: [PATCH] Accepting request 443222 from home:TheBlackCat:branches:devel:languages:python Fix SLE 11 build OBS-URL: https://build.opensuse.org/request/show/443222 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyparsing?expand=0&rev=34 --- python-pyparsing.changes | 5 +++++ python-pyparsing.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/python-pyparsing.changes b/python-pyparsing.changes index b733a50..f8a42a8 100644 --- a/python-pyparsing.changes +++ b/python-pyparsing.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 2 16:32:17 UTC 2016 - toddrme2178@gmail.com + +- Fix SLE 11 build. + ------------------------------------------------------------------- Tue Nov 1 19:46:14 UTC 2016 - toddrme2178@gmail.com diff --git a/python-pyparsing.spec b/python-pyparsing.spec index 11be512..140202e 100644 --- a/python-pyparsing.spec +++ b/python-pyparsing.spec @@ -31,7 +31,11 @@ BuildRequires: python-setuptools Requires: python Provides: python-parsing = %{version} Obsoletes: python-parsing < %{version} +%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 %description The pyparsing module is an alternative approach to creating and executing