6bbd867
%global pypi_name geopy
6bbd867
6bbd867
Name:           python-%{pypi_name}
2dbd1c3
Version:        1.21.0
2fe0606
Release:        3%{?dist}
6bbd867
Summary:        Python client for several popular geocoding web services
6bbd867
6bbd867
License:        MIT
6bbd867
URL:            https://geopy.readthedocs.io
6bbd867
Source0:        https://github.com/geopy/geopy/archive/%{version}/%{pypi_name}-%{version}.tar.gz
6bbd867
BuildArch:      noarch
6bbd867
6bbd867
%description
6bbd867
geopy makes it easy for Python developers to locate the coordinates of
6bbd867
addresses, cities, countries, and landmarks across the globe using third-
6bbd867
party geocoders and other data sources.
6bbd867
6bbd867
geopy includes geocoder classes for the OpenStreetMap Nominatim, Google
6bbd867
Geocoding API (V3), and many other geocoding services.
6bbd867
6bbd867
%package -n python3-%{pypi_name}
6bbd867
Summary:        %{summary}
6bbd867
6bbd867
BuildRequires:  python3-devel
6bbd867
BuildRequires:  python3-setuptools
6bbd867
BuildRequires:  python3-Cython
6bbd867
BuildRequires:  python3-pytest
6bbd867
BuildRequires:  python3-GeographicLib
6bbd867
BuildRequires:  python3-pytz
6bbd867
BuildRequires:  python3-mock
6bbd867
%{?python_provide:%python_provide python3-%{pypi_name}}
6bbd867
6bbd867
%description -n python3-%{pypi_name}
6bbd867
geopy makes it easy for Python developers to locate the coordinates of
6bbd867
addresses, cities, countries, and landmarks across the globe using third-
6bbd867
party geocoders and other data sources.
6bbd867
6bbd867
geopy includes geocoder classes for the OpenStreetMap Nominatim, Google
6bbd867
Geocoding API (V3), and many other geocoding services.
6bbd867
6bbd867
%prep
6bbd867
%autosetup -n %{pypi_name}-%{version}
6bbd867
6bbd867
%build
6bbd867
%py3_build
6bbd867
6bbd867
%install
6bbd867
%py3_install
6bbd867
6bbd867
%check
6bbd867
PYTHONPATH=%{buildroot}/%{python3_sitelib}/ pytest-%{python3_version} -v test -k "not proxy and not yandex and not what3words and not banfrance and not arcgist and not databc and not geocodefarm and not geonames and not nominatim and not photon and not arcgis"
6bbd867
6bbd867
%files -n python3-%{pypi_name}
6bbd867
%doc AUTHORS CONTRIBUTING.md README.rst
6bbd867
%license LICENSE
6bbd867
%{python3_sitelib}/%{pypi_name}/
6bbd867
%{python3_sitelib}/%{pypi_name}*.egg-info
6bbd867
6bbd867
%changelog
2fe0606
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.21.0-3
2fe0606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2fe0606
c05d468
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 1.21.0-2
c05d468
- Rebuilt for Python 3.9
c05d468
2dbd1c3
* Mon Mar 23 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.21.0-1
2dbd1c3
- Update to latest upstream release 1.21.0
2dbd1c3
e8b868d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-3
e8b868d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e8b868d
6bbd867
* Tue Oct 22 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.20.0-2
6bbd867
- Address issues (rhbz#1723052)
6bbd867
6bbd867
* Thu Jun 20 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.20.0-1
6bbd867
- Initial package for Fedora