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
|
|
|
#
|
2023-01-02 10:59:11 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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
|
|
|
|
2023-06-11 13:29:37 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-09-23 12:39:43 +02:00
|
|
|
Name: python-termcolor
|
2023-12-27 17:11:45 +01:00
|
|
|
Version: 2.4.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
|
2022-10-03 18:04:44 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2022-10-10 09:44:47 +02:00
|
|
|
BuildRequires: %{python_module hatch_vcs}
|
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2017-07-05 13:42:41 +02:00
|
|
|
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
|
2022-10-10 09:44:47 +02:00
|
|
|
%pyproject_wheel
|
2009-11-24 14:51:30 +01:00
|
|
|
|
|
|
|
%install
|
2022-10-10 09:44:47 +02:00
|
|
|
%pyproject_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
|
2022-10-10 09:44:47 +02:00
|
|
|
%doc CHANGES.md README.md
|
2023-11-27 19:35:44 +01:00
|
|
|
%{python_sitelib}/termcolor
|
|
|
|
%{python_sitelib}/termcolor-%{version}.dist-info
|
2009-11-24 14:51:30 +01:00
|
|
|
|
|
|
|
%changelog
|