%global pypi_name tzdata

Name:          python-tzdata
Version:       2026.2
Release:       1
License:       MIT
Summary:       Provider of IANA time zone data
URL:           https://github.com/python/tzdata
Source0:       %{pypi_source}
BuildArch:     noarch

BuildRequires: python3-devel
BuildRequires: python3-pip python3-wheel

%description
Python package providing IANA time zone data.

%package -n python3-%{pypi_name}
Summary: %{summary}

%description -n python3-%{pypi_name}
Provider of IANA time zone data.

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%pyproject_build

%install
%pyproject_install

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/*


%changelog
* Fri Apr 24 2026 lichenguang <lichenguang@kylinos.cn> - 2026.2-1
- Update to 2026.2
  * Upstream version 2026b released 2026-04-23T06:06:43+00:00
  * British Columbia moved to permanent -07 on 2026-03-09
  * Some more overflow bugs have been fixed in zic

* Mon Dec 29 2025 chukaiping <chukaiping@baidu.com> - 2025.3-1
- Update to 2025.3
  * Several code changes for compatibility with FreeBSD.
  * Baja California agreed with California’s DST rules in 1953 and in 1961 through
    1975, instead of observing standard time all year. (Thanks to Alois Treindl.)

* Thu Jul 31 2025 yaoxin <1024769339@qq.com> - 2025.2-1
- Update to 2025.2:
  * Upstream version 2025b released 2025-03-22T20:40:46+00:00
  * New zone for Aysén Region in Chile which moves from -04/-03
    to -03.
  * Chile's Aysén Region moves from -04/-03 to -03 year-round,
    joining Magallanes Region.
  * Iran switched from +04 to +0330 on 1978-11-10 at 24:00, not
    at year end.

* Tue Mar 04 2025 Ge Wang <wang__ge@126.com> - 2025.1-1
- Update package to version 2025.1
    * Paraguay adopts permanent -03 starting spring 2024
    * Improve pre-1991 data for the Philippines

* Thu Oct 24 2024 shaoning <shaoning@kylinos.cn> - 2024.2-1
- Update package to version 2024.2
    * Add support for Python 3.13
    * Drop 3.6 and 3.7 to support Matrix
    * Remove POSIXRULES= from make invocation
    * Update tzdata to 2024b

* Mon Feb 19 2024 wangkai <13474090681@163.com> - 2024.1-1
- Package init