From d5f11e6525734583cd652154f0847c701e53a5705e91cb5f0a399aafa878abf1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 5 Jul 2017 11:42:41 +0000 Subject: [PATCH] Accepting request 508276 from home:alois:branches:devel:languages:python Converted to single-spec OBS-URL: https://build.opensuse.org/request/show/508276 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=12 --- python-termcolor.changes | 5 +++++ python-termcolor.spec | 25 +++++++++++++------------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/python-termcolor.changes b/python-termcolor.changes index 29ebc33..1c32b78 100644 --- a/python-termcolor.changes +++ b/python-termcolor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 5 08:49:09 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec + ------------------------------------------------------------------- Thu Oct 24 11:15:45 UTC 2013 - speilicke@suse.com diff --git a/python-termcolor.spec b/python-termcolor.spec index 775b8cd..33bce71 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -1,7 +1,7 @@ # # spec file for package python-termcolor # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,22 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-termcolor Version: 1.1.0 Release: 0 -Url: http://pypi.python.org/pypi/termcolor Summary: ANSII Color formatting for output in terminal License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz +Url: https://pypi.python.org/pypi/termcolor +Source: https://files.pythonhosted.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -%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 +%python_subpackages %description Available text colors: grey, red, green, yellow, blue, magenta, cyan, white. @@ -42,12 +42,13 @@ Available attributes: bold, dark, underline, blink, reverse, concealed. %setup -q -n termcolor-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst COPYING.txt README.rst %{python_sitelib}/*