[packages/python3-termcolor] - python-termcolor.spec updated to 3.1.0 for python 3.9+

qboosh qboosh at pld-linux.org
Tue Jul 15 18:13:52 CEST 2025


commit 9fa24e6ccadce1cd683836b11ff0cd8633350653
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 15 18:15:30 2025 +0200

    - python-termcolor.spec updated to 3.1.0 for python 3.9+

 python-termcolor.spec  | 85 --------------------------------------------------
 python3-termcolor.spec | 51 ++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 85 deletions(-)
---
diff --git a/python-termcolor.spec b/python-termcolor.spec
deleted file mode 100644
index d899d5e..0000000
--- a/python-termcolor.spec
+++ /dev/null
@@ -1,85 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2	# CPython 2.x module
-%bcond_without	python3	# CPython 3.x module
-
-Summary:	ANSI Color formatting for output in terminal
-Summary(pl.UTF-8):	Kolorowe formatowanie wyjścia na terminalu przy użyciu sekwencji ANSI
-Name:		python-termcolor
-Version:	1.1.0
-Release:	10
-License:	MIT
-Group:		Development/Languages/Python
-Source0:	https://files.pythonhosted.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz
-# Source0-md5:	043e89644f8909d462fbbfa511c768df
-URL:		https://pypi.org/project/termcolor/
-%{?with_python2:BuildRequires:	python-modules >= 1:2.6}
-%{?with_python3:BuildRequires:	python3-modules >= 1:3.2}
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.6
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-ANSI Color formatting for output in terminal.
-
-%description -l pl.UTF-8
-Kolorowe formatowanie wyjścia na terminalu przy użyciu sekwencji ANSI.
-
-%package -n python3-termcolor
-Summary:	ANSI Color formatting for output in terminal
-Summary(pl.UTF-8):	Kolorowe formatowanie wyjścia na terminalu przy użyciu sekwencji ANSI
-Group:		Development/Languages/Python
-Requires:	python3-modules >= 1:3.2
-
-%description -n python3-termcolor
-ANSI Color formatting for output in terminal.
-
-%description -n python3-termcolor -l pl.UTF-8
-Kolorowe formatowanie wyjścia na terminalu przy użyciu sekwencji ANSI.
-
-%prep
-%setup -q -n termcolor-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYING.txt README.rst
-%{py_sitescriptdir}/termcolor.py[co]
-%{py_sitescriptdir}/termcolor-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-termcolor
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYING.txt README.rst
-%{py3_sitescriptdir}/termcolor.py
-%{py3_sitescriptdir}/__pycache__/termcolor.cpython-*.py[co]
-%{py3_sitescriptdir}/termcolor-%{version}-py*.egg-info
-%endif
diff --git a/python3-termcolor.spec b/python3-termcolor.spec
new file mode 100644
index 0000000..065284f
--- /dev/null
+++ b/python3-termcolor.spec
@@ -0,0 +1,51 @@
+Summary:	ANSI Color formatting for output in terminal
+Summary(pl.UTF-8):	Kolorowe formatowanie wyjścia na terminalu przy użyciu sekwencji ANSI
+Name:		python3-termcolor
+Version:	3.1.0
+Release:	1
+License:	MIT
+Group:		Development/Languages/Python
+Source0:	https://files.pythonhosted.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz
+# Source0-md5:	877fe6650412d9cea0384600870f0161
+URL:		https://pypi.org/project/termcolor/
+BuildRequires:	python3-build
+BuildRequires:	python3-hatch-vcs
+BuildRequires:	python3-hatchling >= 1.27
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ANSI Color formatting for output in terminal.
+
+%description -l pl.UTF-8
+Kolorowe formatowanie wyjścia na terminalu przy użyciu sekwencji ANSI.
+
+%prep
+%setup -q -n termcolor-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.md COPYING.txt README.md
+%{py3_sitescriptdir}/termcolor
+%{py3_sitescriptdir}/termcolor-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-termcolor.git/commitdiff/9fa24e6ccadce1cd683836b11ff0cd8633350653



More information about the pld-cvs-commit mailing list