15
0

Update to 5.3.1, bsc#1254971

This commit is contained in:
2025-12-16 13:58:19 +01:00
parent 972d3b704f
commit c989dadae3
4 changed files with 53 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-tzlocal
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,31 +16,27 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname tzlocal
%{?sle15_python_module_pythons}
Name: python-%{modname}
Version: 4.3
Version: 5.3.1
Release: 0
Summary: tzinfo object for the local timezone
License: MIT
Group: Development/Libraries/Python
URL: https://github.com/regebro/tzlocal
Source: https://github.com/regebro/tzlocal/archive/%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz-deprecation-shim}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: (python38-backports.zoneinfo if python38-base)
Requires: python-pytz
Requires: python-pytz-deprecation-shim
BuildArch: noarch
%ifpython38
Requires: python38-backports.zoneinfo
%endif
%python_subpackages
%description
@@ -63,10 +59,10 @@ file. However, if the timezone name is readily available it will be used.
%setup -q -n %{modname}-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -76,6 +72,6 @@ file. However, if the timezone name is readily available it will be used.
%license LICENSE.txt
%doc README.rst CHANGES.txt
%{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
%{python_sitelib}/%{modname}-%{version}.dist-info
%changelog