2012-09-14 08:33:28 +00:00
|
|
|
%global pypi_name colorama
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
2022-11-01 09:55:23 +00:00
|
|
|
Version: 0.4.6
|
2022-06-17 15:14:53 +00:00
|
|
|
Release: %autorelease
|
2012-09-14 08:33:28 +00:00
|
|
|
Summary: Cross-platform colored terminal text
|
|
|
|
|
2023-10-22 10:10:38 +00:00
|
|
|
License: BSD-3-Clause
|
2022-01-08 10:27:50 +00:00
|
|
|
URL: https://github.com/tartley/colorama
|
|
|
|
Source0: %{url}/archive/%{version}/colorama-%{version}.tar.gz
|
2012-09-14 08:33:28 +00:00
|
|
|
BuildArch: noarch
|
2020-11-19 13:34:01 +00:00
|
|
|
|
2022-01-08 10:27:50 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
# for check
|
|
|
|
BuildRequires: python3dist(pytest)
|
2012-09-14 08:33:28 +00:00
|
|
|
|
|
|
|
|
2022-01-08 10:27:50 +00:00
|
|
|
%description
|
2016-04-10 09:09:23 +00:00
|
|
|
Makes ANSI escape character sequences, for producing colored
|
|
|
|
terminal text and cursor positioning, work under MS Windows.
|
|
|
|
|
|
|
|
ANSI escape character sequences have long been used to produce colored terminal
|
|
|
|
text and cursor positioning on Unix and Macs. Colorama makes this work on
|
|
|
|
Windows, too.
|
|
|
|
It also provides some shortcuts to help generate ANSI sequences, and works fine
|
|
|
|
in conjunction with any other ANSI sequence generation library, such as
|
|
|
|
Termcolor.
|
2014-03-12 12:00:37 +00:00
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: Cross-platform colored terminal text
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
Makes ANSI escape character sequences, for producing colored
|
|
|
|
terminal text and cursor positioning, work under MS Windows.
|
|
|
|
|
|
|
|
ANSI escape character sequences have long been used to produce colored terminal
|
|
|
|
text and cursor positioning on Unix and Macs. Colorama makes this work on
|
|
|
|
Windows, too.
|
|
|
|
It also provides some shortcuts to help generate ANSI sequences, and works fine
|
|
|
|
in conjunction with any other ANSI sequence generation library, such as
|
|
|
|
Termcolor.
|
|
|
|
|
2012-09-14 08:33:28 +00:00
|
|
|
%prep
|
2016-04-10 09:09:23 +00:00
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
2022-01-08 10:27:50 +00:00
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires -r
|
2012-09-14 08:33:28 +00:00
|
|
|
|
|
|
|
%build
|
2022-01-08 10:27:50 +00:00
|
|
|
%pyproject_wheel
|
2012-09-14 08:33:28 +00:00
|
|
|
|
|
|
|
%install
|
2022-01-08 10:27:50 +00:00
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files colorama
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
2012-09-14 08:33:28 +00:00
|
|
|
|
2022-01-08 10:27:50 +00:00
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
|
%doc CHANGELOG.rst README.rst
|
2014-09-05 07:20:01 +00:00
|
|
|
%license LICENSE.txt
|
2014-03-12 12:00:37 +00:00
|
|
|
|
2012-09-14 08:33:28 +00:00
|
|
|
%changelog
|
2022-01-08 10:02:17 +00:00
|
|
|
%autochangelog
|