## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 15; 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 srcname enrich %global pkgname python-enrich %global forge_url https://github.com/pycontribs/%{srcname} %global common_description %{expand: rich library functionality with a set of changes that were not accepted to rich itself. } %bcond_without tests Name: %{pkgname} Version: 1.2.7 %forgemeta Release: %autorelease Summary: Enrich adds few missing features to the wonderful rich library URL: %{forge_url} Source: %{pypi_source} License: MIT BuildArch: noarch patch: 0001-remove-unsuported-pytest-option.patch patch: 0002_remove_pytest_plus_dependency.patch # Backport of: # Remove mock from test dependencies (#46) # https://github.com/pycontribs/enrich/commit/6a21526fed438cdcd3ee0f9be27d8348293adcee Patch: remove-python-mock.patch # https://bugzilla.redhat.com/show_bug.cgi?id=2248708 # Backport of: # Update build-system requirement for setuptools-scm to >=7.0.0 (#45) # https://github.com/pycontribs/enrich/commit/6a21526fed438cdcd3ee0f9be27d8348293adcee Patch: remove-setuptools-scm-git-archive.patch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %description %{common_description} %package -n python3-%{srcname} Summary: %summary %description -n python3-%{srcname} %{common_description} %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -r %{?with_tests: -x test} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %if %{with tests} %check PYTHONPATH=src %{python3} -m pytest src/enrich/test -v -k "not test_rich_console_ex" %endif %files -n python3-%{srcname} %license LICENSE %{python3_sitelib}/enrich/ %{python3_sitelib}/enrich-%{version}.dist-info/ %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.2.7-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 1.2.7-14 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.2.7-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.2.7-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 12 2024 Maxwell G - 1.2.7-11 - Remove python3-setuptools-scm-git-archive dependency. - Fixes: rhbz#2248708 * Fri Jan 12 2024 Maxwell G - 1.2.7-10 - Remove dependency on python3-mock * Fri Sep 16 2022 Chedi Toueiti - 1.2.7-5 - Disabling faulty test and modernizing the spec file * Fri Jul 22 2022 Fedora Release Engineering - 1.2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 1.2.7-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jan 13 2022 Chedi Toueiti - 1.2.7-1 - Update to version 1.2.7 (#2038962) * Tue Jul 27 2021 Fedora Release Engineering - 1.2.6-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.6-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Dec 22 2020 Chedi Toueiti - 1.2.6-1 - Initial commit ## END: Generated by rpmautospec