Группа :: Development/Python3
Пакет: python3-module-haversine
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name haversine
%define mod_name %pypi_name
%def_with check
Name: python3-module-%pypi_name
Version: 2.8.0
Release: alt1
Summary: Calculate the distance between 2 points on Earth
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/haversine/
VCS: https://github.com/mapado/haversine.git
Source0: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
BuildRequires: python3(numpy.testing)
BuildRequires: python3(pytest)
%endif
%description
Calculate the distance (in km or in miles) between two points on Earth,
located by their latitude and longitude.
%prep
%setup
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -ra
%files
%doc README.md
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Полный changelog можно просмотреть здесь
%define pypi_name haversine
%define mod_name %pypi_name
%def_with check
Name: python3-module-%pypi_name
Version: 2.8.0
Release: alt1
Summary: Calculate the distance between 2 points on Earth
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/haversine/
VCS: https://github.com/mapado/haversine.git
Source0: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
BuildRequires: python3(numpy.testing)
BuildRequires: python3(pytest)
%endif
%description
Calculate the distance (in km or in miles) between two points on Earth,
located by their latitude and longitude.
%prep
%setup
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -ra
%files
%doc README.md
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Полный changelog можно просмотреть здесь