SHA256
1
0
forked from pool/python-pytz

Accepting request 1177996 from devel:languages:python

- Clean up SPEC file.
- update to 2024.1:
  * Update olson to 2024a

OBS-URL: https://build.opensuse.org/request/show/1177996
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytz?expand=0&rev=57
This commit is contained in:
Ana Guerrero 2024-06-04 10:50:52 +00:00 committed by Git OBS Bridge
commit 1782fd5eae
4 changed files with 21 additions and 21 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri May 31 21:53:27 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up SPEC file.
-------------------------------------------------------------------
Fri May 31 11:52:05 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- update to 2024.1:
* Update olson to 2024a
-------------------------------------------------------------------
Thu Feb 1 12:33:50 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -18,19 +18,10 @@
# Ensure you update the tzdata_version for any minor version increase
# otherwise the update python library has the incorrect timezone data.
%define tzdata_version 2023d
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!pyunittest:%define pyunittest(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-=) \\\
%{lua: local args = rpm.expand("%**");
local broot = rpm.expand("%buildroot");
local intro = "%{python_expand PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}" .. broot .. "%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1 $python -m unittest ";
print(rpm.expand(intro .. args .. "}"))
} }
%define tzdata_version 2024a
%{?sle15_python_module_pythons}
Name: python-pytz
Version: 2023.4
Version: 2024.1
Release: 0
Summary: World timezone definitions, modern and historical
License: MIT
@ -41,17 +32,15 @@ Source: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{ver
Patch0: fix-tests.patch
# PATCH-FIX-UPSTREAM 0001-Fix-tests-for-older-timezone-versions.patch -- https://code.launchpad.net/~toabctl/pytz/+git/pytz/+merge/326419
Patch2: 0001-Fix-tests-for-older-timezone-versions.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: timezone >= %{tzdata_version}
Requires: python-base
Requires: timezone >= %{tzdata_version}
BuildArch: noarch
%ifpython2
Provides: %{oldpython}-tz = %{version}
Obsoletes: %{oldpython}-tz < %{version}
%endif
%python_subpackages
%description
@ -75,10 +64,10 @@ sed -i '/^#!/d' ./pytz/tzfile.py
touch pytz/tests/__init__.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
# Replace custom data with symlink to /usr/share/zoneinfo
%{python_expand rm -r %{buildroot}%{$python_sitelib}/pytz/zoneinfo
ln -s %{_datadir}/zoneinfo %{buildroot}%{$python_sitelib}/pytz/zoneinfo
@ -97,6 +86,6 @@ fi || :
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/pytz
%{python_sitelib}/pytz-%{version}-py*.egg-info
%{python_sitelib}/pytz-%{version}*-info
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31d4583c4ed539cd037956140d695e42c033a19e984bfce9964a3f7d59bc2b40
size 319467

BIN
pytz-2024.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.