2011-05-30 14:41:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-geopy
|
|
|
|
#
|
2019-08-13 11:20:47 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-05-30 14:41:38 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2013-10-25 09:17:11 +00:00
|
|
|
|
2011-05-30 14:41:38 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
2015-05-10 08:46:19 +00:00
|
|
|
|
2023-06-27 08:11:07 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-09-26 08:15:11 +00:00
|
|
|
Name: python-geopy
|
2023-06-27 08:11:07 +00:00
|
|
|
Version: 2.3.0
|
2011-09-26 08:15:11 +00:00
|
|
|
Release: 0
|
2011-05-30 14:41:38 +00:00
|
|
|
License: MIT
|
2019-08-13 11:20:47 +00:00
|
|
|
Summary: Python Geocoding Toolbox
|
|
|
|
Url: https://github.com/geopy/geopy
|
2011-05-30 14:41:38 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-08-13 11:20:47 +00:00
|
|
|
Source: https://github.com/geopy/geopy/archive/%{version}.tar.gz#/geopy-%{version}.tar.gz
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
# SECTION test requirements
|
2020-12-29 08:56:44 +00:00
|
|
|
BuildRequires: %{python_module async_generator}
|
2022-03-21 15:37:05 +00:00
|
|
|
BuildRequires: %{python_module docutils}
|
2019-08-13 11:20:47 +00:00
|
|
|
BuildRequires: %{python_module geographiclib >= 1.49}
|
|
|
|
BuildRequires: %{python_module pytest >= 3.10}
|
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module xml}
|
|
|
|
# /SECTION
|
|
|
|
BuildRequires: fdupes
|
|
|
|
Requires: python-geographiclib >= 1.49
|
|
|
|
Recommends: python-pytz
|
|
|
|
Recommends: python-xml
|
|
|
|
%ifpython2
|
|
|
|
Requires: python-statistics
|
2011-05-30 14:41:38 +00:00
|
|
|
%endif
|
2019-08-13 11:20:47 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
2011-05-30 14:41:38 +00:00
|
|
|
|
|
|
|
%description
|
2019-08-27 09:40:28 +00:00
|
|
|
Geopy can determine the coordinates of addresses, cities, countries,
|
|
|
|
and landmarks using third-party geocoders and other data sources such
|
|
|
|
as wikis.
|
2020-12-29 08:56:44 +00:00
|
|
|
|
2012-03-20 10:33:04 +00:00
|
|
|
Geopy currently includes support for six geocoders: Google Maps, Yahoo! Maps, Windows
|
2011-05-30 14:41:38 +00:00
|
|
|
Local Live (Virtual Earth), geocoder.us, GeoNames, MediaWiki pages (with the GIS
|
|
|
|
extension), and Semantic MediaWiki pages.
|
|
|
|
|
|
|
|
%prep
|
2011-09-26 08:15:11 +00:00
|
|
|
%setup -q -n geopy-%{version}
|
2011-05-30 14:41:38 +00:00
|
|
|
|
2019-08-13 11:20:47 +00:00
|
|
|
|
|
|
|
# Online services are not available
|
|
|
|
rm \
|
|
|
|
test/geocoders/arcgis.py \
|
|
|
|
test/geocoders/banfrance.py \
|
|
|
|
test/geocoders/databc.py \
|
|
|
|
test/geocoders/geonames.py \
|
|
|
|
test/geocoders/googlev3.py \
|
2020-12-29 08:56:44 +00:00
|
|
|
test/geocoders/ignfrance.py \
|
2019-08-13 11:20:47 +00:00
|
|
|
test/geocoders/nominatim.py \
|
|
|
|
test/geocoders/openmapquest.py \
|
|
|
|
test/geocoders/photon.py \
|
|
|
|
test/geocoders/pickpoint.py \
|
|
|
|
test/geocoders/yandex.py
|
|
|
|
|
2011-05-30 14:41:38 +00:00
|
|
|
%build
|
2019-08-13 11:20:47 +00:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%python_build
|
2011-05-30 14:41:38 +00:00
|
|
|
|
|
|
|
%install
|
2019-08-13 11:20:47 +00:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2021-05-25 07:19:35 +00:00
|
|
|
%pyunittest discover -v
|
2011-05-30 14:41:38 +00:00
|
|
|
|
2019-08-13 11:20:47 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc AUTHORS README.rst docs/changelog_09x.rst docs/changelog_1xx.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
2011-05-30 14:41:38 +00:00
|
|
|
|
|
|
|
%changelog
|