Sync from SUSE:SLFO:Main python-mercantile revision 171a7f286c6f0e77df3e2f397bce0cb4

This commit is contained in:
Adrian Schröter 2024-05-03 21:30:59 +02:00
commit b15ca71951
4 changed files with 108 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
mercantile-1.2.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Mon Oct 31 12:05:35 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v1.2.1
- Required to test xyzservices, which is required by bokeh 3

77
python-mercantile.spec Normal file
View File

@ -0,0 +1,77 @@
#
# spec file for package python-mercantile
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: python-mercantile
Version: 1.2.1
Release: 0
Summary: Spherical mercator tile and coordinate utilities
License: BSD-3-Clause
URL: https://github.com/mapbox/mercantile
Source: https://files.pythonhosted.org/packages/source/m/mercantile/mercantile-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click >= 3.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module click >= 3.0}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
The mercantile module provides ul(xtile, ytile, zoom) and bounds(xtile, ytile, zoom)
functions that respectively return the upper left corner and bounding longitudes and
latitudes for XYZ tiles, a xy(lng, lat) function that returns spherical mercator
x and y coordinates, a tile(lng, lat, zoom) function that returns the tile containing
a given point, and quadkey conversion functions quadkey(xtile, ytile, zoom) and
quadkey_to_tile(quadkey) for translating between quadkey and tile coordinates.
%prep
%setup -q -n mercantile-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/mercantile
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative mercantile
%postun
%python_uninstall_alternative mercantile
%files %{python_files}
%doc AUTHORS.txt CHANGES.txt README.rst
%license LICENSE.txt
%python_alternative %{_bindir}/mercantile
%{python_sitelib}/mercantile
%{python_sitelib}/mercantile-%{version}*-info
%changelog