## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name term-background %global srcname shell-term-background Name: python-%{pypi_name} Version: 1.0.1 Release: %autorelease Summary: Figure out if a terminal has a dark or light background License: GPL-2.0-or-later URL: https://github.com/rocky/shell-term-background # PyPI doesn't have a source tarball uploaded Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: Python package to figure out if a terminal has a dark or light background.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files term_background %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %license COPYING %doc README.rst NEWS.md ChangeLog %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.0.1-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.0.1-2 - Rebuilt for Python 3.12 * Sun Jan 22 2023 Davide Cavalca <dcavalca@fedoraproject.org> - 1.0.1-1 - Initial import; Fixes: RHBZ#2158954 ## END: Generated by rpmautospec