Name:     python3-module-pyerfa
Version:  2.0.1.4
Release:  alt1
Group:    Development/Python3
License:  BSD-3-Clause
Summary:  Python bindings for ERFA
URL:      https://github.com/liberfa/pyerfa
Packager: Alexander Lubyagin <dfpl@altlinux.org>
Source:   %name-%version.tar

BuildRequires(pre): rpm-macros-pyproject
BuildRequires:  python3-module-setuptools
BuildRequires:  python3-module-setuptools-wheel
BuildRequires:  python3-module-setuptools_scm
BuildRequires:  pkgconfig
BuildRequires:  python3-module-numpy
BuildRequires:  libnumpy-py3-devel
BuildRequires:  liberfa-devel
BuildRequires:  python3-module-jinja2

%description
A Python wrapper for the ERFA library (Essential Routines for Fundamental
Astronomy), a C library containing key algorithms for astronomy, which
is based on the SOFA library published by the International Astronomical
Union (IAU). All C routines are wrapped as Numpy universal functions,
so that they can be called with scalar or array inputs.

The project is a split of astropy._erfa module, developed in the context
of Astropy project, into a standalone package.

%prep
%setup

%build
export PYERFA_USE_SYSTEM_LIBERFA=1
%pyproject_build

%install
export PYERFA_USE_SYSTEM_LIBERFA=1
%pyproject_install

%files
%doc README.rst LICENSE.rst licenses/ERFA.rst
%python3_sitelibdir/erfa

%changelog
* Fri Jul 26 2024 Alexander Lubyagin <dfpl@altlinux.org> 2.0.1.4-alt1
- 2.0.1.4
