## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 18; 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 Name: python-grabbit Version: 0.2.6 Release: %autorelease Summary: Get grabby with file trees # The bundled grabbit/external/inflect.py is GPLv3+, but we remove it. License: MIT URL: https://github.com/grabbles/grabbit Source0: %{url}/archive/%{version}/grabbit-%{version}.tar.gz # Update versioneer from 0.18 to 0.21 # Fixes Python 3.11 compatiblity (RHBZ#2026767) # https://github.com/grabbles/grabbit/pull/93 Patch0: %{url}/pull/93.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: \ Grabbit is a lightweight Python package for simple queries over filenames within a project. It is geared towards projects or applications with highly structured filenames that allow useful queries to be performed without having to inspect the file metadata or contents. } %description %{_description} %package -n python3-grabbit Summary: %{summary} %description -n python3-grabbit %{_description} %prep %autosetup -n grabbit-%{version} -p1 # Unbundle inflect and six for bundled in 'inflect' 'six' do cat > "grabbit/external/${bundled}.py" < 0.2.6-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering 0.2.6-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint 0.2.6-16 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 0.2.6-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 22 2021 Benjamin A. Beasley - 0.2.6-12 - Switch to pyproject-rpm-macros - Clean up obsolete cruft, like Python 2 support - Unbundle inflect and six * Wed Dec 22 2021 Benjamin A. Beasley - 0.2.6-11 - Update versioneer (fix RHBZ#2026767) * Fri Jul 23 2021 Fedora Release Engineering - 0.2.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.2.6-9 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.2.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.2.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.2.6-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.2.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.2.6-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.2.6-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 08 2019 Ankur Sinha - 0.2.6-1 - Update to new pstream release * Sat Feb 02 2019 Fedora Release Engineering - 0.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Nov 07 2018 Ankur Sinha - 0.2.5-1 - Update to latest release - Use conditional to use common spec for all releases - Include LICENSE * Thu Nov 01 2018 Miro Hrončok - 0.2.0-5 - Subpackage python2-grabbit has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Thu Jul 19 2018 Ankur Sinha - 0.2.0-4 - use py.test * Sat Jul 14 2018 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 02 2018 Miro Hrončok - 0.2.0-2 - Rebuilt for Python 3.7 * Thu Jun 28 2018 Ankur Sinha - 0.2.0-1 - Update to 0.2.0 - Update as per review comments * Mon Jan 15 2018 Ankur Sinha - 0.1.0-1 - Initial build