diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d42eea7 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/colorclass-2.2.0.tar.gz b/colorclass-2.2.0.tar.gz new file mode 100644 index 0000000..af140cb Binary files /dev/null and b/colorclass-2.2.0.tar.gz differ diff --git a/python-colorclass.spec b/python-colorclass.spec new file mode 100644 index 0000000..5b2816e --- /dev/null +++ b/python-colorclass.spec @@ -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 - 2.2.0-1 +- Package init