2009-11-24 14:51:30 +01:00
|
|
|
#
|
2011-09-23 12:39:43 +02:00
|
|
|
# spec file for package python-termcolor
|
2009-11-24 14:51:30 +01:00
|
|
|
#
|
2019-10-14 16:44:54 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-11-24 14:51:30 +01:00
|
|
|
#
|
2011-09-23 12:39:43 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2013-06-17 14:54:21 +02:00
|
|
|
|
2018-12-04 15:08:41 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-23 12:39:43 +02:00
|
|
|
#
|
|
|
|
|
2013-06-17 14:54:21 +02:00
|
|
|
|
2017-07-05 13:42:41 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-23 12:39:43 +02:00
|
|
|
Name: python-termcolor
|
|
|
|
Version: 1.1.0
|
2009-11-24 14:51:30 +01:00
|
|
|
Release: 0
|
2011-09-23 12:39:43 +02:00
|
|
|
Summary: ANSII Color formatting for output in terminal
|
|
|
|
License: MIT
|
2018-12-04 18:24:16 +01:00
|
|
|
URL: https://pypi.python.org/pypi/termcolor
|
2017-07-05 13:42:41 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2011-09-23 12:39:43 +02:00
|
|
|
BuildArch: noarch
|
2017-07-05 13:42:41 +02:00
|
|
|
%python_subpackages
|
2009-11-24 14:51:30 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Available text colors: grey, red, green, yellow, blue, magenta, cyan, white.
|
|
|
|
Available text highlights: on_grey, on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white.
|
|
|
|
Available attributes: bold, dark, underline, blink, reverse, concealed.
|
|
|
|
|
|
|
|
%prep
|
2011-09-23 12:39:43 +02:00
|
|
|
%setup -q -n termcolor-%{version}
|
2009-11-24 14:51:30 +01:00
|
|
|
|
|
|
|
%build
|
2017-07-05 13:42:41 +02:00
|
|
|
%python_build
|
2009-11-24 14:51:30 +01:00
|
|
|
|
|
|
|
%install
|
2017-07-05 13:42:41 +02:00
|
|
|
%python_install
|
2019-10-14 16:44:54 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2009-11-24 14:51:30 +01:00
|
|
|
|
2017-07-05 13:42:41 +02:00
|
|
|
%files %{python_files}
|
2018-12-04 18:24:16 +01:00
|
|
|
%license COPYING.txt
|
|
|
|
%doc CHANGES.rst README.rst
|
2011-09-23 12:39:43 +02:00
|
|
|
%{python_sitelib}/*
|
2009-11-24 14:51:30 +01:00
|
|
|
|
|
|
|
%changelog
|