From ef821875884e6b5ab533837d2fda386f1498db0b67351aff8800b748c9848174 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 19 Nov 2012 13:39:09 +0000 Subject: [PATCH] - Macro cleanup OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=4 --- python-termcolor.changes | 5 +++++ python-termcolor.spec | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/python-termcolor.changes b/python-termcolor.changes index 0aed232..520ec8c 100644 --- a/python-termcolor.changes +++ b/python-termcolor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 19 13:37:43 UTC 2012 - saschpe@suse.de + +- Macro cleanup + ------------------------------------------------------------------- Fri Sep 23 10:36:16 UTC 2011 - saschpe@suse.de diff --git a/python-termcolor.spec b/python-termcolor.spec index 9d45102..b11afe4 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -26,13 +26,11 @@ Source: http://pypi.python.org/packages/source/t/termcolor/termcolor-%{v BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute -%if 0%{?suse_version} -%py_requires -%if 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 -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description Available text colors: grey, red, green, yellow, blue, magenta, cyan, white.