Blame python-pyerfa.spec

b93289d
%global module_name erfa
b93289d
%global pypi_name pyerfa
b93289d
b93289d
Name:           python-pyerfa
8ddfdf5
Version:        2.0.0
2a11010
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
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)