|
|
2b29f15 |
%global pypi_name colorama
|
|
|
2b29f15 |
|
|
|
2b29f15 |
Name: python-%{pypi_name}
|
|
|
ab3b23f |
Version: 0.4.6
|
|
|
15578a5 |
Release: %autorelease
|
|
|
2b29f15 |
Summary: Cross-platform colored terminal text
|
|
|
2b29f15 |
|
|
|
011ad1b |
License: BSD-3-Clause
|
|
|
d3cc067 |
URL: https://github.com/tartley/colorama
|
|
|
d3cc067 |
Source0: %{url}/archive/%{version}/colorama-%{version}.tar.gz
|
|
|
2b29f15 |
BuildArch: noarch
|
|
|
4fa97c8 |
|
|
|
d3cc067 |
BuildRequires: python3-devel
|
|
|
d3cc067 |
# for check
|
|
|
d3cc067 |
BuildRequires: python3dist(pytest)
|
|
|
2b29f15 |
|
|
|
2b29f15 |
|
|
|
d3cc067 |
%description
|
|
Igor Gnatenko |
7f6b746 |
Makes ANSI escape character sequences, for producing colored
|
|
Igor Gnatenko |
7f6b746 |
terminal text and cursor positioning, work under MS Windows.
|
|
Igor Gnatenko |
7f6b746 |
|
|
Igor Gnatenko |
7f6b746 |
ANSI escape character sequences have long been used to produce colored terminal
|
|
Igor Gnatenko |
7f6b746 |
text and cursor positioning on Unix and Macs. Colorama makes this work on
|
|
Igor Gnatenko |
7f6b746 |
Windows, too.
|
|
Igor Gnatenko |
7f6b746 |
It also provides some shortcuts to help generate ANSI sequences, and works fine
|
|
Igor Gnatenko |
7f6b746 |
in conjunction with any other ANSI sequence generation library, such as
|
|
Igor Gnatenko |
7f6b746 |
Termcolor.
|
|
|
0c6494a |
|
|
|
0c6494a |
%package -n python3-%{pypi_name}
|
|
|
0c6494a |
Summary: Cross-platform colored terminal text
|
|
|
0c6494a |
|
|
|
0c6494a |
%description -n python3-%{pypi_name}
|
|
|
0c6494a |
Makes ANSI escape character sequences, for producing colored
|
|
|
0c6494a |
terminal text and cursor positioning, work under MS Windows.
|
|
|
0c6494a |
|
|
|
0c6494a |
ANSI escape character sequences have long been used to produce colored terminal
|
|
|
0c6494a |
text and cursor positioning on Unix and Macs. Colorama makes this work on
|
|
|
0c6494a |
Windows, too.
|
|
|
0c6494a |
It also provides some shortcuts to help generate ANSI sequences, and works fine
|
|
|
0c6494a |
in conjunction with any other ANSI sequence generation library, such as
|
|
|
0c6494a |
Termcolor.
|
|
|
0c6494a |
|
|
|
2b29f15 |
%prep
|
|
Igor Gnatenko |
7f6b746 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
d3cc067 |
|
|
|
d3cc067 |
%generate_buildrequires
|
|
|
d3cc067 |
%pyproject_buildrequires -r
|
|
|
2b29f15 |
|
|
|
2b29f15 |
%build
|
|
|
d3cc067 |
%pyproject_wheel
|
|
|
2b29f15 |
|
|
|
2b29f15 |
%install
|
|
|
d3cc067 |
%pyproject_install
|
|
|
d3cc067 |
%pyproject_save_files colorama
|
|
|
d3cc067 |
|
|
|
d3cc067 |
%check
|
|
|
d3cc067 |
%pytest
|
|
|
2b29f15 |
|
|
|
d3cc067 |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
d3cc067 |
%doc CHANGELOG.rst README.rst
|
|
|
606e11f |
%license LICENSE.txt
|
|
|
0c6494a |
|
|
|
2b29f15 |
%changelog
|
|
|
ee4c302 |
%autochangelog
|