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:
commit
1782fd5eae
@ -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>
|
Thu Feb 1 12:33:50 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -18,19 +18,10 @@
|
|||||||
|
|
||||||
# Ensure you update the tzdata_version for any minor version increase
|
# Ensure you update the tzdata_version for any minor version increase
|
||||||
# otherwise the update python library has the incorrect timezone data.
|
# otherwise the update python library has the incorrect timezone data.
|
||||||
%define tzdata_version 2023d
|
%define tzdata_version 2024a
|
||||||
%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 .. "}"))
|
|
||||||
} }
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pytz
|
Name: python-pytz
|
||||||
Version: 2023.4
|
Version: 2024.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: World timezone definitions, modern and historical
|
Summary: World timezone definitions, modern and historical
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -41,17 +32,15 @@ Source: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{ver
|
|||||||
Patch0: fix-tests.patch
|
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
|
# 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
|
Patch2: 0001-Fix-tests-for-older-timezone-versions.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: timezone >= %{tzdata_version}
|
BuildRequires: timezone >= %{tzdata_version}
|
||||||
Requires: python-base
|
Requires: python-base
|
||||||
Requires: timezone >= %{tzdata_version}
|
Requires: timezone >= %{tzdata_version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
|
||||||
Provides: %{oldpython}-tz = %{version}
|
|
||||||
Obsoletes: %{oldpython}-tz < %{version}
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -75,10 +64,10 @@ sed -i '/^#!/d' ./pytz/tzfile.py
|
|||||||
touch pytz/tests/__init__.py
|
touch pytz/tests/__init__.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
# Replace custom data with symlink to /usr/share/zoneinfo
|
# Replace custom data with symlink to /usr/share/zoneinfo
|
||||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/pytz/zoneinfo
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/pytz/zoneinfo
|
||||||
ln -s %{_datadir}/zoneinfo %{buildroot}%{$python_sitelib}/pytz/zoneinfo
|
ln -s %{_datadir}/zoneinfo %{buildroot}%{$python_sitelib}/pytz/zoneinfo
|
||||||
@ -97,6 +86,6 @@ fi || :
|
|||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/pytz
|
%{python_sitelib}/pytz
|
||||||
%{python_sitelib}/pytz-%{version}-py*.egg-info
|
%{python_sitelib}/pytz-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -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
BIN
pytz-2024.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user