!1 Package python-colorclass包初始化2.2.0
From: @liuliang1 Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
f2c791e7c2
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Robpol86
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
BIN
colorclass-2.2.0.tar.gz
Normal file
BIN
colorclass-2.2.0.tar.gz
Normal file
Binary file not shown.
53
python-colorclass.spec
Normal file
53
python-colorclass.spec
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
%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
|
||||||
Loading…
x
Reference in New Issue
Block a user