Initial package

This commit is contained in:
Daniel Uvehag
2022-04-20 13:33:20 +02:00
commit 5cbcf2b312
+56
View File
@@ -0,0 +1,56 @@
%global pypi_name colorama
%global pypi_version 0.4.4
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: Cross-platform colored terminal text
License: BSD
URL: https://github.com/tartley/colorama
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_version}dist(setuptools)
%global _description %{expand:
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.}
%description %_description
%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
%description -n python%{python3_pkgversion}-%{pypi_name} %_description
%prep
%autosetup -n %{pypi_name}-%{pypi_version}
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info
%changelog
* Wed Apr 20 2022 Daniel Uvehag <ufven+pkgs@protonmail.com> - 0.4.4-1
- Initial package.