From ef6cee7688381fcfec337d16bb00cc19ffb24d1c1d495d29dd65770bf358c501 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 1 Nov 2022 08:29:47 +0000 Subject: [PATCH] Accepting request 1032472 from home:bnavigator:branches:devel:languages:python:numeric Required to test python-xyzservices, which is required by python-bokeh 3 OBS-URL: https://build.opensuse.org/request/show/1032472 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-mercantile?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + mercantile-1.2.1.tar.gz | 3 ++ python-mercantile.changes | 5 +++ python-mercantile.spec | 77 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mercantile-1.2.1.tar.gz create mode 100644 python-mercantile.changes create mode 100644 python-mercantile.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mercantile-1.2.1.tar.gz b/mercantile-1.2.1.tar.gz new file mode 100644 index 0000000..3505962 --- /dev/null +++ b/mercantile-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa3c6db15daffd58454ac198b31887519a19caccee3f9d63d17ae7ff61b3b56b +size 26352 diff --git a/python-mercantile.changes b/python-mercantile.changes new file mode 100644 index 0000000..2444844 --- /dev/null +++ b/python-mercantile.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Oct 31 12:05:35 UTC 2022 - Ben Greiner + +- Initial specfile for v1.2.1 +- Required to test xyzservices, which is required by bokeh 3 diff --git a/python-mercantile.spec b/python-mercantile.spec new file mode 100644 index 0000000..0601137 --- /dev/null +++ b/python-mercantile.spec @@ -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