|
 |
b93289d |
%global module_name erfa
|
|
 |
b93289d |
%global pypi_name pyerfa
|
|
 |
b93289d |
|
|
 |
b93289d |
Name: python-pyerfa
|
|
 |
b93289d |
Version: 1.7.1.1
|
|
 |
8796aba |
Release: 2%{?dist}
|
|
 |
b93289d |
Summary: Python wrapper for the ERFA library
|
|
 |
b93289d |
License: BSD
|
|
 |
b93289d |
URL: https://github.com/liberfa/pyerfa
|
|
 |
b93289d |
Source0: %{pypi_source}
|
|
 |
b93289d |
|
|
 |
b93289d |
# Python BuildRequires
|
|
 |
b93289d |
BuildRequires: python3-devel
|
|
 |
b93289d |
BuildRequires: %{py3_dist jinja2}
|
|
 |
b93289d |
BuildRequires: %{py3_dist pytest_astropy}
|
|
 |
b93289d |
BuildRequires: %{py3_dist setuptools}
|
|
 |
b93289d |
BuildRequires: %{py3_dist setuptools_scm}
|
|
 |
b93289d |
# Non-Python BuildRequires
|
|
 |
b93289d |
BuildRequires: erfa-devel
|
|
 |
b93289d |
BuildRequires: gcc
|
|
 |
b93289d |
|
|
 |
b93289d |
|
|
 |
b93289d |
%description
|
|
 |
b93289d |
PyERFA is the Python wrapper for the ERFA library (Essential Routines for
|
|
 |
b93289d |
Fundamental Astronomy), a C library containing key algorithms for astronomy,
|
|
 |
b93289d |
which is based on the SOFA library published by the International Astronomical
|
|
 |
b93289d |
Union (IAU). All C routines are wrapped as Numpy universal functions, so that
|
|
 |
b93289d |
they can be called with scalar or array inputs.
|
|
 |
b93289d |
|
|
 |
b93289d |
|
|
 |
b93289d |
%package -n python3-%{pypi_name}
|
|
 |
b93289d |
Summary: %{summary}
|
|
 |
b93289d |
|
|
 |
b93289d |
%description -n python3-%{pypi_name}
|
|
 |
b93289d |
PyERFA is the Python wrapper for the ERFA library (Essential Routines for
|
|
 |
b93289d |
Fundamental Astronomy), a C library containing key algorithms for astronomy,
|
|
 |
b93289d |
which is based on the SOFA library published by the International Astronomical
|
|
 |
b93289d |
Union (IAU). All C routines are wrapped as Numpy universal functions, so that
|
|
 |
b93289d |
they can be called with scalar or array inputs.
|
|
 |
b93289d |
|
|
 |
b93289d |
|
|
 |
b93289d |
%prep
|
|
 |
b93289d |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
 |
b93289d |
|
|
 |
b93289d |
|
|
 |
b93289d |
%build
|
|
 |
b93289d |
# Build using system liberfa, not bundled one
|
|
 |
b93289d |
PYERFA_USE_SYSTEM_LIBERFA=1 %py3_build
|
|
 |
b93289d |
|
|
 |
b93289d |
|
|
 |
b93289d |
%install
|
|
 |
b93289d |
%py3_install
|
|
 |
b93289d |
|
|
 |
b93289d |
|
|
 |
b93289d |
%check
|
|
 |
b93289d |
pushd %{buildroot}%{python3_sitearch}/%{module_name}
|
|
 |
b93289d |
%{__python3} -m pytest
|
|
 |
b93289d |
rm -rf .pytest_cache
|
|
 |
b93289d |
rm tests/__pycache__/test_erfa*pytest*.pyc
|
|
 |
b93289d |
popd
|
|
 |
b93289d |
|
|
 |
b93289d |
|
|
 |
dde4568 |
%files -n python3-%{pypi_name}
|
|
 |
b93289d |
%license LICENSE.rst
|
|
 |
b93289d |
%doc AUTHORS.rst CHANGES.rst README.rst
|
|
 |
b93289d |
%{python3_sitearch}/%{module_name}
|
|
 |
b93289d |
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
|
 |
b93289d |
|
|
 |
b93289d |
|
|
 |
b93289d |
%changelog
|
|
 |
8796aba |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1.1-2
|
|
 |
8796aba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
8796aba |
|
|
 |
b93289d |
* Fri Nov 20 11:37:40 CET 2020 Christian Dersch <lupinix@fedoraproject.org> - 1.7.1.1-1
|
|
 |
dde4568 |
- initial package (Review: RHBZ #1898135)
|