From 0d69c5e0a5333b98e62b27360aba97abf609e1b9 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Mar 08 2023 17:16:27 +0000 Subject: Update to 0.1.1 Related-to: https://review.rdoproject.org/r/q/I5f64c70e5fd67db85eb144b96fc286b4c0605af7 --- diff --git a/.python-tcolorpy.metadata b/.python-tcolorpy.metadata new file mode 100644 index 0000000..d11592e --- /dev/null +++ b/.python-tcolorpy.metadata @@ -0,0 +1 @@ +32b39fd599e0017c97a83f9ee1518133190ea650 SOURCES/tcolorpy-0.1.1.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SOURCES/3.patch b/SOURCES/3.patch new file mode 100644 index 0000000..b0c5f6a --- /dev/null +++ b/SOURCES/3.patch @@ -0,0 +1,19 @@ +From dc1902a33f37b9244e4f53dfa452244734681130 Mon Sep 17 00:00:00 2001 +From: Jonny Heggheim +Date: Fri, 25 Feb 2022 22:38:33 +0100 +Subject: [PATCH] Removed shebang from __main__.py + +--- + tcolorpy/__main__.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/tcolorpy/__main__.py b/tcolorpy/__main__.py +index 75cd38a..cb85181 100644 +--- a/tcolorpy/__main__.py ++++ b/tcolorpy/__main__.py +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python3 +- + import argparse + import sys + diff --git a/SPECS/python-tcolorpy.spec b/SPECS/python-tcolorpy.spec new file mode 100644 index 0000000..b2d887a --- /dev/null +++ b/SPECS/python-tcolorpy.spec @@ -0,0 +1,71 @@ +Name: python-tcolorpy +Version: 0.1.1 +Release: 4%{?dist} +Summary: Python library to apply true color for terminal text + +License: MIT +URL: https://github.com/thombashi/tcolorpy +Source0: %{pypi_source tcolorpy} + +# Remove shebang from __main__.py. It makes no sense there +# Reported upstream https://github.com/thombashi/tcolorpy/issues/2 +# https://patch-diff.githubusercontent.com/raw/thombashi/tcolorpy/pull/3.patch +Patch0: 3.patch + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +# tox.ini uses the [test] extra, see also https://github.com/thombashi/tcolorpy/pull/1 +# the [test] extra brings in just pytest and pytest-md-report and we don't need the latter +# hence, manually specifying pytest instead: +BuildRequires: python3-pytest + +%description +%{summary}. + +%package -n python3-tcolorpy +Summary: %{summary} + +%description -n python3-tcolorpy +%{summary}. + + +%prep +%autosetup -p1 -n tcolorpy-%{version} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install + +%pyproject_save_files tcolorpy + + +%check +%pytest + + +%files -n python3-tcolorpy -f %{pyproject_files} +%doc README.rst + + +%changelog +* Fri Jan 20 2023 Fedora Release Engineering - 0.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.1.1-2 +- Rebuilt for Python 3.11 + +* Fri Feb 25 2022 Jonny Heggheim - 0.1.1-1 +- Initial package