Blame SPECS/python-tcolorpy.spec

rdobuilder 0d69c5
Name:          python-tcolorpy
rdobuilder 0d69c5
Version:       0.1.1
rdobuilder 0d69c5
Release:       4%{?dist}
rdobuilder 0d69c5
Summary:       Python library to apply true color for terminal text
rdobuilder 0d69c5
rdobuilder 0d69c5
License:       MIT
rdobuilder 0d69c5
URL:           https://github.com/thombashi/tcolorpy
rdobuilder 0d69c5
Source0:       %{pypi_source tcolorpy}
rdobuilder 0d69c5
rdobuilder 0d69c5
# Remove shebang from __main__.py. It makes no sense there
rdobuilder 0d69c5
# Reported upstream https://github.com/thombashi/tcolorpy/issues/2
rdobuilder 0d69c5
# https://patch-diff.githubusercontent.com/raw/thombashi/tcolorpy/pull/3.patch
rdobuilder 0d69c5
Patch0:        3.patch
rdobuilder 0d69c5
rdobuilder 0d69c5
BuildArch:     noarch
rdobuilder 0d69c5
BuildRequires: python3-devel
rdobuilder 0d69c5
BuildRequires:  pyproject-rpm-macros
rdobuilder 0d69c5
rdobuilder 0d69c5
# tox.ini uses the [test] extra, see also https://github.com/thombashi/tcolorpy/pull/1
rdobuilder 0d69c5
# the [test] extra brings in just pytest and pytest-md-report and we don't need the latter
rdobuilder 0d69c5
# hence, manually specifying pytest instead:
rdobuilder 0d69c5
BuildRequires: python3-pytest
rdobuilder 0d69c5
rdobuilder 0d69c5
%description
rdobuilder 0d69c5
%{summary}.
rdobuilder 0d69c5
rdobuilder 0d69c5
%package -n python3-tcolorpy
rdobuilder 0d69c5
Summary:        %{summary}
rdobuilder 0d69c5
rdobuilder 0d69c5
%description -n python3-tcolorpy
rdobuilder 0d69c5
%{summary}.
rdobuilder 0d69c5
rdobuilder 0d69c5
rdobuilder 0d69c5
%prep
rdobuilder 0d69c5
%autosetup -p1 -n tcolorpy-%{version}
rdobuilder 0d69c5
rdobuilder 0d69c5
rdobuilder 0d69c5
%generate_buildrequires
rdobuilder 0d69c5
%pyproject_buildrequires
rdobuilder 0d69c5
rdobuilder 0d69c5
rdobuilder 0d69c5
%build
rdobuilder 0d69c5
%pyproject_wheel
rdobuilder 0d69c5
rdobuilder 0d69c5
rdobuilder 0d69c5
%install
rdobuilder 0d69c5
%pyproject_install
rdobuilder 0d69c5
rdobuilder 0d69c5
%pyproject_save_files tcolorpy
rdobuilder 0d69c5
rdobuilder 0d69c5
rdobuilder 0d69c5
%check
rdobuilder 0d69c5
%pytest
rdobuilder 0d69c5
rdobuilder 0d69c5
rdobuilder 0d69c5
%files -n python3-tcolorpy -f %{pyproject_files}
rdobuilder 0d69c5
%doc README.rst
rdobuilder 0d69c5
rdobuilder 0d69c5
rdobuilder 0d69c5
%changelog
rdobuilder 0d69c5
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-4
rdobuilder 0d69c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder 0d69c5
rdobuilder 0d69c5
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-3
rdobuilder 0d69c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder 0d69c5
rdobuilder 0d69c5
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1.1-2
rdobuilder 0d69c5
- Rebuilt for Python 3.11
rdobuilder 0d69c5
rdobuilder 0d69c5
* Fri Feb 25 2022 Jonny Heggheim <hegjon@gmail.com> - 0.1.1-1
rdobuilder 0d69c5
- Initial package