## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; 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 sum Standalone version of Django's feedgenerator module Name: python-feedgenerator Version: 2.1.0 Release: %autorelease Summary: %{sum} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: https://github.com/getpelican/feedgenerator Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %description FeedGenerator is a standalone version of Django’s feedgenerator module. It has evolved over time, including an update for Py3K and numerous other enhancements. %package -n python3-feedgenerator Summary: %{sum} %description -n python3-feedgenerator FeedGenerator is a standalone version of Django’s feedgenerator module. It has evolved over time, including an update for Py3K and numerous other enhancements. %prep %autosetup -n feedgenerator-%{version} # remove coverage related bits for pytest echo > setup.cfg rm -rf feedgenerator/django/utils/six.py for f in feedgenerator/django/utils/*py; do sed -i -e 's/from . import six/import six/' -e 's/from .six \(import .*$\)/from six \1/' $f done %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files feedgenerator %check %pytest %files -n python3-feedgenerator -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Wed Sep 04 2024 Miroslav Suchý - 2.1.0-6 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.1.0-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Ankur Sinha (Ankur Sinha Gmail) - 2.1.0-1 - feat: update to 2.1.0 (fixes rhbz#2186981) * Fri Jul 21 2023 Fedora Release Engineering - 2.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 2.0.0-6 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.0.0-3 - Rebuilt for Python 3.11 * Wed Feb 09 2022 Ankur Sinha (Ankur Sinha Gmail) - 2.0.0-2 - chore: bump for branch * Tue Feb 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 2.0.0-1 - feat: update to 2.0.0 (fixes rhbz#1995417) * Tue Feb 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.9.1-7 - feat: use pyproject macros * Fri Jan 21 2022 Fedora Release Engineering - 1.9.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 1.9.1-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.9.1-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 10 2021 Ankur Sinha - 1.9.1-1 - Update to latest release * Wed Jul 29 2020 Fedora Release Engineering - 1.9-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Ankur Sinha - 1.9-14 - Explicitly BR setuptools * Tue May 26 2020 Miro Hrončok - 1.9-13 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.9-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.9-11 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.9-10 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.9-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 31 2018 Miro Hrončok - 1.9-7 - Subpackage python2-feedgenerator has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Wed Aug 01 2018 Ankur Sinha - 1.9-6 - Include six and pytz as Requires * Wed Aug 01 2018 Ankur Sinha - 1.9-5 - Remove bundled six * Tue Jul 24 2018 Ankur Sinha - 1.9-4 - Use github tar for the time being * Tue Jul 24 2018 Ankur Sinha - 1.9-3 - Cosmetic improvements * Tue Sep 27 2016 Ankur Sinha - 1.9-2 - Update URL - Update global macro - Update source url - Readd tests * Tue Sep 27 2016 Ankur Sinha - 1.9-1 - Initial rpmbuild ## END: Generated by rpmautospec