2019-12-10 08:17:56 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-dist
|
|
|
|
|
#
|
2025-05-26 12:14:26 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-12-10 08:17:56 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2019-12-10 08:20:03 +00:00
|
|
|
|
2025-05-26 12:14:26 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-12-10 08:17:56 +00:00
|
|
|
Name: python-dist
|
|
|
|
|
Version: 1.0.3
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Compute distance between two coordinates on the map
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
URL: https://github.com/duboviy/dist
|
2019-12-10 08:30:23 +00:00
|
|
|
Source: https://github.com/duboviy/dist/archive/%{version}.tar.gz
|
2023-04-13 10:59:28 +00:00
|
|
|
# https://github.com/duboviy/dist/issues/8
|
|
|
|
|
Patch0: python-dist-no-six.patch
|
2019-12-10 08:17:56 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildRequires: unzip
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
As more and more apps are using maps, the more demand for geolocation capabilities increase.
|
|
|
|
|
Geolocation is about the reporting of your location to other users,
|
|
|
|
|
as well as associating real-world locations (such as landmarks) to your location.
|
|
|
|
|
This repo helps to accurately calculate the distance between two locations
|
|
|
|
|
and presents a time efficient practical solution,
|
|
|
|
|
that is almost 3 times faster than similar fast pure python implementation.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-04-13 10:59:28 +00:00
|
|
|
%autosetup -p1 -n dist-%{version}
|
2019-12-10 08:17:56 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags}"
|
2025-05-26 12:14:26 +00:00
|
|
|
%python_build
|
2019-12-10 08:17:56 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-05-26 12:14:26 +00:00
|
|
|
%python_install
|
2019-12-10 08:17:56 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
2019-12-10 08:20:03 +00:00
|
|
|
%check
|
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_performance.py
|
|
|
|
|
|
2019-12-10 08:17:56 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc README.md
|
2025-05-26 12:14:26 +00:00
|
|
|
%{python_sitearch}/*
|
2019-12-10 08:17:56 +00:00
|
|
|
|
|
|
|
|
%changelog
|