## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 pypi_name pytzdata %global _description %{expand: The Olson timezone database for Python. This package contains the python bindings to the database provided by the tzdata package as installed (version %{version} or later).} Name: python-%{pypi_name} Version: 2020.1 Release: %autorelease License: MIT Summary: Timezone database for Python URL: https://github.com/sdispater/%{pypi_name} Source0: %{pypi_source} BuildArch: noarch # Cleo was updated to 1.0.0a5 because the latest version of poetry needed it. # It changed the way how some modules are imported and this patch should fix it. Patch1: %{pypi_name}-cleo-imports-fix.patch # Set mandatory name attribute in Command class to make pytzdata # compatible with cleo 2.0.0+. Patch2: %{pypi_name}-cleo-2.0.0-compatibility.patch BuildRequires: python3-devel BuildRequires: tzdata >= %{version} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} Requires: tzdata >= %{version} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} -p1 rm -r pytzdata/zoneinfo sed -i "s|os.path.dirname(__file__)|'%{_datadir}'|" pytzdata/__init__.py %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 2020.1-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2020.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 04 2024 Michael J Gruber - 2020.1-14 - Unbundle tzdata * Fri Jul 21 2023 Fedora Release Engineering - 2020.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 02 2023 Python Maint - 2020.1-12 - Rebuilt for Python 3.12 * Tue Feb 21 2023 Tomáš Hrnčiar - 2020.1-11 - Backport upstream patch to add support for cleo 2.0.0+ * Fri Jan 20 2023 Fedora Release Engineering - 2020.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Oct 10 2022 Tomáš Hrnčiar - 2020.1-9 - Add patch to fix cleo imports * Fri Jul 22 2022 Fedora Release Engineering - 2020.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 2020.1-7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2020.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Dec 12 2021 Vitaly Zaitsev - 2020.1-5 - Converted SPEC to 201x-era guidelines. * Fri Jul 23 2021 Fedora Release Engineering - 2020.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2020.1-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2020.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 14 2020 Vitaly Zaitsev - 2020.1-1 - Updated to version 2020.1. * Wed Jul 29 2020 Fedora Release Engineering - 2019.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 Vitaly Zaitsev - 2019.3-2 - Added python3-setuptools to build requirements. * Thu Jun 18 2020 Vitaly Zaitsev - 2019.3-1 - Initial SPEC release. ## END: Generated by rpmautospec