|
 |
b93289d |
%global module_name erfa
|
|
 |
b93289d |
%global pypi_name pyerfa
|
|
 |
259b5b8 |
# tests need pytest-astropy, needs astropy, needs pyerfa
|
|
 |
259b5b8 |
%bcond_without tests
|
|
 |
b93289d |
|
|
 |
b93289d |
Name: python-pyerfa
|
|
 |
bea3520 |
Version: 2.0.0.1
|
|
 |
fb62b05 |
Release: 6%{?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 setuptools}
|
|
 |
b93289d |
BuildRequires: %{py3_dist setuptools_scm}
|
|
 |
259b5b8 |
BuildRequires: %{py3_dist numpy}
|
|
 |
259b5b8 |
%if %{with tests}
|
|
 |
259b5b8 |
BuildRequires: %{py3_dist jinja2}
|
|
 |
259b5b8 |
BuildRequires: %{py3_dist pytest_astropy}
|
|
 |
259b5b8 |
%endif
|
|
 |
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
|
|
 |
259b5b8 |
%if %{with tests}
|
|
 |
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
|
|
 |
259b5b8 |
%else
|
|
 |
259b5b8 |
%py3_check_import %{module_name}
|
|
 |
259b5b8 |
%endif
|
|
 |
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
|
|
 |
fb62b05 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0.1-6
|
|
 |
fb62b05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
 |
fb62b05 |
|
|
 |
1175f4a |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0.1-5
|
|
 |
1175f4a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
1175f4a |
|
|
 |
9425cff |
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 2.0.0.1-4
|
|
 |
9425cff |
- Rebuilt for Python 3.11
|
|
 |
9425cff |
|
|
 |
68cbfbf |
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 2.0.0.1-3
|
|
 |
68cbfbf |
- Bootstrap for Python 3.11
|
|
 |
68cbfbf |
|
|
 |
c81eced |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0.1-2
|
|
 |
c81eced |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
c81eced |
|
|
 |
bea3520 |
* Sun Dec 26 2021 Christian Dersch <lupinix@fedoraproject.org> - 2.0.0.1-1
|
|
 |
bea3520 |
- new version
|
|
 |
bea3520 |
|
|
 |
2a11010 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
 |
2a11010 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
2a11010 |
|
|
 |
8ddfdf5 |
* Fri Jun 11 2021 Christian Dersch <lupinix@mailbox.org> - 2.0.0-1
|
|
 |
8ddfdf5 |
- new version
|
|
 |
8ddfdf5 |
|
|
 |
63a411a |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.7.1.1-3
|
|
 |
63a411a |
- Rebuilt for Python 3.10
|
|
 |
63a411a |
|
|
 |
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)
|