diff --git a/0001-add-setup.patch b/0001-add-setup.patch new file mode 100644 index 0000000000000000000000000000000000000000..2dad8cc7aa5140690c9f67f5df2f0b5a9abdf558 --- /dev/null +++ b/0001-add-setup.patch @@ -0,0 +1,105 @@ +From 3d463cdb33635cea7ea3bff34a2264af51bdf8c3 Mon Sep 17 00:00:00 2001 +From: liqiuyu123 +Date: Fri, 11 Nov 2022 10:31:06 +0800 +Subject: [PATCH] add setup + +--- + setup.cfg | 10 ++++++++ + setup.py | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 78 insertions(+) + create mode 100644 setup.cfg + create mode 100644 setup.py + +diff --git a/setup.cfg b/setup.cfg +new file mode 100644 +index 0000000..aa96e7f +--- /dev/null ++++ b/setup.cfg +@@ -0,0 +1,10 @@ ++[bdist_wheel] ++universal = 1 ++ ++[metadata] ++license_file = LICENSE.txt ++ ++[egg_info] ++tag_build = ++tag_date = 0 ++ +diff --git a/setup.py b/setup.py +new file mode 100644 +index 0000000..4221fe1 +--- /dev/null ++++ b/setup.py +@@ -0,0 +1,68 @@ ++#!/usr/bin/env python ++# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. ++ ++from __future__ import with_statement ++ ++from io import open ++import os ++import re ++try: ++ from setuptools import setup ++except ImportError: ++ from distutils.core import setup ++ ++ ++NAME = 'colorama' ++ ++ ++def read_file(path, encoding='ascii'): ++ with open(os.path.join(os.path.dirname(__file__), path), ++ encoding=encoding) as fp: ++ return fp.read() ++ ++def _get_version_match(content): ++ # Search for lines of the form: # __version__ = 'ver' ++ regex = r"^__version__ = ['\"]([^'\"]*)['\"]" ++ version_match = re.search(regex, content, re.M) ++ if version_match: ++ return version_match.group(1) ++ raise RuntimeError("Unable to find version string.") ++ ++def get_version(path): ++ return _get_version_match(read_file(path)) ++ ++setup( ++ name=NAME, ++ version=get_version(os.path.join('colorama', '__init__.py')), ++ description='Cross-platform colored terminal text.', ++ long_description=read_file('README.rst'), ++ keywords='color colour terminal text ansi windows crossplatform xplatform', ++ author='Jonathan Hartley', ++ author_email='tartley@tartley.com', ++ maintainer='Arnon Yaari', ++ url='https://github.com/tartley/colorama', ++ license='BSD', ++ packages=[NAME], ++ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', ++ # see classifiers https://pypi.org/pypi?%3Aaction=list_classifiers ++ classifiers=[ ++ 'Development Status :: 5 - Production/Stable', ++ 'Environment :: Console', ++ 'Intended Audience :: Developers', ++ 'License :: OSI Approved :: BSD License', ++ 'Operating System :: OS Independent', ++ 'Programming Language :: Python', ++ 'Programming Language :: Python :: 2', ++ 'Programming Language :: Python :: 2.7', ++ 'Programming Language :: Python :: 3', ++ 'Programming Language :: Python :: 3.5', ++ 'Programming Language :: Python :: 3.6', ++ 'Programming Language :: Python :: 3.7', ++ 'Programming Language :: Python :: 3.8', ++ 'Programming Language :: Python :: 3.9', ++ 'Programming Language :: Python :: 3.10', ++ 'Programming Language :: Python :: Implementation :: CPython', ++ 'Programming Language :: Python :: Implementation :: PyPy', ++ 'Topic :: Terminals', ++ ] ++) +-- +2.37.1.windows.1 + diff --git a/colorama-0.4.5.tar.gz b/colorama-0.4.5.tar.gz deleted file mode 100644 index 7ff5f8e67475ce5bdc5dbef3729161ce72d17b0f..0000000000000000000000000000000000000000 Binary files a/colorama-0.4.5.tar.gz and /dev/null differ diff --git a/colorama-0.4.6.tar.gz b/colorama-0.4.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..81a071381b76d2a77c1501876932159be490b44c Binary files /dev/null and b/colorama-0.4.6.tar.gz differ diff --git a/python-colorama.spec b/python-colorama.spec index 422ec2c3d0cdf7bb71ab0f6ec8b1ae5097e5dc20..62676a547938426616618f06c5b69fa0ff40e76a 100644 --- a/python-colorama.spec +++ b/python-colorama.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-colorama -Version: 0.4.5 +Version: 0.4.6 Release: 1 Summary: Cross-platform colored terminal text. License: BSD URL: https://github.com/tartley/colorama -Source0: https://files.pythonhosted.org/packages/2b/65/24d033a9325ce42ccbfa3ca2d0866c7e89cc68e5b9d92ecaba9feef631df/colorama-0.4.5.tar.gz +Source0: https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz +Patch0: 0001-add-setup.patch BuildArch: noarch %description Makes ANSI escape character sequences (for producing colored terminal @@ -14,12 +15,9 @@ text and cursor positioning) work under MS Windows. %package -n python3-colorama Summary: Cross-platform colored terminal text. Provides: python-colorama -# Base build requires BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-pbr BuildRequires: python3-pip -BuildRequires: python3-wheel %description -n python3-colorama Makes ANSI escape character sequences (for producing colored terminal text and cursor positioning) work under MS Windows. @@ -32,12 +30,12 @@ Makes ANSI escape character sequences (for producing colored terminal text and cursor positioning) work under MS Windows. %prep -%autosetup -n colorama-0.4.5 +%autosetup -n colorama-%{version} +%patch0 %build %py3_build - %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} @@ -72,11 +70,13 @@ mv %{buildroot}/doclist.lst . %files -n python3-colorama -f filelist.lst %dir %{python3_sitelib}/* - %files help -f doclist.lst %{_docdir}/* %changelog +* Thu Nov 10 2022 liqiuyu - 0.4.6-1 +- Upgrade package to version 0.4.6 + * Wed Sep 14 2022 Qiao Jijun - 0.4.5-1 - Update to 0.4.5 * Tue Jul 13 2021 OpenStack_SIG - 0.4.4-1