Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
9e38f8c59e |
@@ -1,13 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed May 31 08:51:45 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
|
||||||
|
|
||||||
- Bring this Ring1 package to python packaging standards
|
|
||||||
* Switch to github tarball in order to run the tests
|
|
||||||
* Don't catchall sitelib
|
|
||||||
* Replace deprecated setup.py with PEP517
|
|
||||||
(poetry-core is enough to build)
|
|
||||||
* Pure python module: BuildArch is noarch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 8 04:54:25 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
Mon May 8 04:54:25 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytzdata
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
# Copyright (c) 2020 Dr. Axel Braun
|
# Copyright (c) 2020 Dr. Axel Braun
|
||||||
@@ -18,48 +18,41 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pytzdata
|
%define modname pytzdata
|
||||||
|
Name: python-%{modname}
|
||||||
Version: 2020.1
|
Version: 2020.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The pytzdata module for Python-pendulum
|
Summary: The pytzdata module for Python-pendulum
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/sdispater/pytzdata
|
URL: https://github.com/sdispater/pytzdata
|
||||||
Source: https://github.com/sdispater/pytzdata/archive/refs/tags/%{version}.tar.gz#/pytzdata-%{version}-gh.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module poetry-core}
|
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: timezone
|
BuildRequires: timezone
|
||||||
Requires: timezone
|
Requires: timezone
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Olson timezone database for Python. This version is linked to the systemwide zone info
|
The Olson timezone database for Python. This version is linked to the systemwide zone info
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytzdata-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
sed -i 's/poetry.masonry/poetry.core.masonry/' pyproject.toml
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%python_install
|
||||||
# delete internal database
|
# delete internal database
|
||||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo
|
||||||
ln -s /usr/share/zoneinfo %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo
|
ln -s /usr/share/zoneinfo %{buildroot}%{$python_sitelib}/pytzdata/zoneinfo
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
%fdupes %{buildroot}%{$python_sitelib}
|
||||||
}
|
}
|
||||||
|
|
||||||
%check
|
|
||||||
%pytest
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/pytzdata
|
%{python_sitelib}/*
|
||||||
%{python_sitelib}/pytzdata-%{version}.dist-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
BIN
pytzdata-2020.1-gh.tar.gz
(Stored with Git LFS)
BIN
pytzdata-2020.1-gh.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
pytzdata-2020.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
pytzdata-2020.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user