54 lines
1.5 KiB
RPMSpec
54 lines
1.5 KiB
RPMSpec
%global srcname colorclass
|
|
%global sum Yet another ANSI color text library for Python
|
|
|
|
Name: python-%{srcname}
|
|
Version: 2.2.0
|
|
Release: 1
|
|
Summary: Yet another ANSI color text library for Python
|
|
|
|
License: MIT
|
|
URL: https://pypi.python.org/pypi/%{srcname}
|
|
Source0: https://files.pythonhosted.org/packages/source/c/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/Robpol86/colorclass/blob/master/LICENSE
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Colorful worry-free console applications for Linux, Mac OS X, and Windows.
|
|
Yet another ANSI color text library for Python. Provides "auto colors" for
|
|
dark/light terminals. Works on Linux, OS X, and Windows.
|
|
|
|
%package -n python3-%{srcname}
|
|
Summary: Yet another ANSI color text library for Python
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
%description -n python3-%{srcname}
|
|
Colorful worry-free console applications for Linux, Mac OS X, and Windows.
|
|
Yet another ANSI color text library for Python. Provides "auto colors" for
|
|
dark/light terminals. Works on Linux, OS X, and Windows.
|
|
|
|
%prep
|
|
%autosetup -n %{srcname}-%{version}
|
|
cp %{SOURCE1} .
|
|
rm -rf colorclass.egg-info
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
|
|
%files -n python3-%{srcname}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python3_sitelib}/colorclass*
|
|
|
|
%changelog
|
|
* Fri Jul 2 2021 liuliang <liuliang1@kylinos.cn> - 2.2.0-1
|
|
- Package init
|