File python-timezonefinder.spec of Package python-timezonefinder
#
# spec file for package python-timezonefinder
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-timezonefinder
Version: 8.2.1
Release: 0
License: MIT
Summary: Fast command for finding the timezone of any point on earth offline
Url: https://github.com/MrMinimal64/timezonefinder
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/t/timezonefinder/timezonefinder-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module pytest}
# SECTION test requirements
BuildRequires: %{python_module numpy >= 2}
BuildRequires: %{python_module h3 >= 4}
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module flatbuffers >= 25.2.10}
# /SECTION
BuildRequires: fdupes
Requires: python-numpy >= 2
Requires: python-h3 >= 4
Requires: python-cffi
Requires: python-flatbuffers >= 25.2.10
%python_subpackages
%description
fast python package for finding the timezone of any point on earth (coordinates) offline.
%prep
%setup -q -n timezonefinder-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
rm %{buildroot}/usr/DATA_LICENSE
%python_clone -a %{buildroot}%{_bindir}/timezonefinder
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%post
%python_install_alternative timezonefinder
%postun
%python_uninstall_alternative timezonefinder
%files %{python_files}
%doc README.rst DATA_LICENSE
%license LICENSE
%{python_sitearch}/*
%python_alternative %{_bindir}/timezonefinder
%changelog