## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 21; 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 click-default-group %global libname click_default_group %global common_description %{expand: Provides DefaultGroup, a subclass of click.Group that invokes a default subcommand instead of showing a help message when a subcommand is not passed.} Name: python-%{srcname} Version: 1.2.2 Release: %autorelease Summary: Extends click.Group to invoke a command without explicit subcommand name # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: https://github.com/sublee/click-default-group/ Source0: %url/archive/v%{version}/%{srcname}-%{version}.tar.gz # Fix detection of error message in test, related to click 8 Patch0: https://patch-diff.githubusercontent.com/raw/click-contrib/click-default-group/pull/18.patch#/0001-Fix-detection-of-error-message.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %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 %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{libname} %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md %changelog ## START: Generated by rpmautospec * Wed Sep 04 2024 Miroslav Suchý - 1.2.2-21 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.2.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.2.2-19 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.2.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.2.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.2.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 1.2.2-15 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.2.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.2.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jul 03 2022 Robert-André Mauchin - 1.2.2-12 - Minor fixes * Tue Jun 21 2022 Robert-André Mauchin - 1.2.2-11 - Remove deletion of egg.info * Tue Jun 21 2022 Robert-André Mauchin - 1.2.2-10 - Add a switch for the tests * Tue Jun 21 2022 Robert-André Mauchin - 1.2.2-9 - Convert to new Python guidelines * Mon Jun 13 2022 Python Maint - 1.2.2-8 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Aug 01 2021 Robert-André Mauchin - 1.2.2-6 - Fix FTBFS Close: rhbz#1981708 * Sat Jul 24 2021 Robert-André Mauchin - 1.2.2-5 - Convert to new guidelines * Fri Jul 23 2021 Fedora Release Engineering - 1.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.2-2 - Rebuilt for Python 3.10 * Mon May 24 2021 Robert-André Mauchin - 1.2.2-1 - Initial package. - Close: rhbz#1963936 ## END: Generated by rpmautospec