Open
Fix license and enable upstream tests #12
iBaka9Add on Oct 10
Fix license and enable upstream tests #12
Open
Total: 1 files changed+11-3
| @@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | Name: python-tzdata | 3 | Name: python-tzdata |
| 4 | Version: 2026.5 | 4 | Version: 2026.5 |
| 5 | -Release: 1 | 5 | +Release: 2 |
| 6 | -License: MIT | 6 | +License: Apache-2.0 |
| 7 | Summary: Provider of IANA time zone data | 7 | Summary: Provider of IANA time zone data |
| 8 | URL: https://github.com/python/tzdata | 8 | URL: https://github.com/python/tzdata |
| 9 | Source0: https://files.pythonhosted.org/packages/d9/68/f1b440335057bfce71b6e50a9d09445aa2ecbd08359a337976627b8409e7/tzdata-2026.5.tar.gz | 9 | Source0: https://files.pythonhosted.org/packages/d9/68/f1b440335057bfce71b6e50a9d09445aa2ecbd08359a337976627b8409e7/tzdata-2026.5.tar.gz |
| @@ -11,6 +11,7 @@ BuildArch: noarch | |||
| 11 | 11 | ||
| 12 | BuildRequires: python3-devel | 12 | BuildRequires: python3-devel |
| 13 | BuildRequires: python3-pip python3-wheel | 13 | BuildRequires: python3-pip python3-wheel |
| 14 | +BuildRequires: python3-pytest python3-pytest-subtests | ||
| 14 | 15 | ||
| 15 | %description | 16 | %description |
| 16 | Python package providing IANA time zone data. | 17 | Python package providing IANA time zone data. |
| @@ -30,13 +31,20 @@ Provider of IANA time zone data. | |||
| 30 | %install | 31 | %install |
| 31 | %pyproject_install | 32 | %pyproject_install |
| 32 | 33 | ||
| 34 | +%check | ||
| 35 | +PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v tests | ||
| 36 | + | ||
| 33 | %files -n python3-%{pypi_name} | 37 | %files -n python3-%{pypi_name} |
| 34 | -%license LICENSE | 38 | +%license LICENSE licenses/LICENSE_APACHE |
| 35 | %doc README.rst | 39 | %doc README.rst |
| 36 | %{python3_sitelib}/* | 40 | %{python3_sitelib}/* |
| 37 | 41 | ||
| 38 | 42 | ||
| 39 | %changelog | 43 | %changelog |
| 44 | +* Thu Oct 15 2026 iBaka9 <bakazh@outlook.com> - 2026.5-2 | ||
| 45 | +- Correct the license to Apache-2.0 and include the full license text. | ||
| 46 | +- Run upstream tests during the package build. | ||
| 47 | + | ||
| 40 | * Thu Oct 15 2026 dev01212 <dev01212@linx-info.com> - 2026.5-1 | 48 | * Thu Oct 15 2026 dev01212 <dev01212@linx-info.com> - 2026.5-1 |
| 41 | - Update to 2026.5 | 49 | - Update to 2026.5 |
| 42 | 50 | ||