|
|
6501643 |
%global srcname astropy-healpix
|
|
|
6501643 |
%global modname astropy_healpix
|
|
|
6501643 |
|
|
|
6501643 |
Name: python-%{srcname}
|
|
Sergio Pascual |
fff8465 |
Version: 1.0.2
|
|
Sergio Pascual |
7ba5d22 |
Release: %autorelease
|
|
Sergio Pascual |
ce8e5c9 |
Summary: HEALPix for Astropy
|
|
|
6501643 |
|
|
|
3f971be |
License: BSD-3-Clause
|
|
|
6501643 |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
1eebda5 |
Source0: %{pypi_source astropy_healpix}
|
|
|
89ab69e |
# https://github.com/astropy/astropy-healpix/issues/183
|
|
|
89ab69e |
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026012
|
|
|
89ab69e |
# https://salsa.debian.org/debian-astro-team/astropy-healpix/-/blob/master/debian/patches/Temporarily-disable-tests-that-fail-due-to-limited-FP-pre.patch
|
|
|
89ab69e |
Patch0: astropy_healpix-0.7-disable-FP-limited-test.patch
|
|
|
6501643 |
|
|
|
616e81d |
BuildRequires: gcc
|
|
|
6501643 |
BuildRequires: python3-devel
|
|
Sergio Pascual |
fff8465 |
BuildRequires: %{py3_dist setuptools}
|
|
Sergio Pascual |
fff8465 |
#
|
|
Sergio Pascual |
fff8465 |
BuildRequires: %{py3_dist pytest-astropy}
|
|
|
6501643 |
# BuildRequires for tests, healpy only available on 64 bit architectures,
|
|
|
6501643 |
# thus these tests are skipped on 32 bit
|
|
|
6501643 |
%ifnarch %{ix86} %{arm}
|
|
|
1eebda5 |
BuildRequires: %{py3_dist healpy}
|
|
|
6501643 |
%endif
|
|
|
6501643 |
|
|
|
6501643 |
%description
|
|
|
6501643 |
This is a BSD-licensed Python package for HEALPix, which is based on the C
|
|
|
6501643 |
HEALPix code written by Dustin Lang originally in astrometry.net, and was
|
|
|
6501643 |
added here with a Cython wrapper and expanded with a Python interface.
|
|
|
6501643 |
|
|
|
6501643 |
|
|
|
6501643 |
%package -n python3-%{srcname}
|
|
Sergio Pascual |
ce8e5c9 |
Summary: %{summary}
|
|
|
6501643 |
|
|
|
6501643 |
%description -n python3-%{srcname}
|
|
|
6501643 |
%{description}
|
|
|
6501643 |
|
|
|
6501643 |
%prep
|
|
|
1eebda5 |
%autosetup -n %{modname}-%{version} -p1
|
|
|
1eebda5 |
|
|
|
1eebda5 |
# Remove egg files from source
|
|
|
1eebda5 |
rm -r %{modname}.egg-info
|
|
|
6501643 |
|
|
Sergio Pascual |
fff8465 |
%generate_buildrequires
|
|
Sergio Pascual |
fff8465 |
%pyproject_buildrequires
|
|
Sergio Pascual |
fff8465 |
|
|
|
6501643 |
%build
|
|
Sergio Pascual |
fff8465 |
%pyproject_wheel
|
|
|
6501643 |
|
|
|
6501643 |
%install
|
|
Sergio Pascual |
fff8465 |
%pyproject_install
|
|
Sergio Pascual |
fff8465 |
%pyproject_save_files %{modname}
|
|
|
6501643 |
|
|
|
6501643 |
%check
|
|
Sergio Pascual |
ce8e5c9 |
export PYTEST_ADDOPTS='-p no:cacheprovider'
|
|
|
6501643 |
pushd %{buildroot}/%{python3_sitearch}
|
|
Sergio Pascual |
ce8e5c9 |
%pytest \
|
|
Sergio Pascual |
ce8e5c9 |
%ifarch aarch64
|
|
Sergio Pascual |
ce8e5c9 |
--deselect "astropy_healpix/tests/test_healpy.py::test_ang2pix" \
|
|
Sergio Pascual |
ce8e5c9 |
--deselect "astropy_healpix/tests/test_healpy.py::test_ring2nest" \
|
|
Sergio Pascual |
ce8e5c9 |
--deselect "astropy_healpix/tests/test_healpy.py::test_interp_weights" \
|
|
Sergio Pascual |
d4b8cd2 |
%endif
|
|
|
6e9c6ef |
%ifarch riscv64
|
|
|
6e9c6ef |
--deselect "astropy_healpix/tests/test_healpy.py::test_pix2ang" \
|
|
|
6e9c6ef |
--deselect "astropy_healpix/tests/test_healpy.py::test_pix2vec" \
|
|
|
6e9c6ef |
--deselect "astropy_healpix/tests/test_healpy.py::test_ang2vec" \
|
|
|
6e9c6ef |
%endif
|
|
Sergio Pascual |
ce8e5c9 |
%ifarch s390x
|
|
Sergio Pascual |
ce8e5c9 |
--deselect "astropy_healpix/tests/test_healpy.py::test_ang2vec" \
|
|
Sergio Pascual |
ce8e5c9 |
%endif
|
|
Sergio Pascual |
ce8e5c9 |
%{modname}
|
|
Sergio Pascual |
ce8e5c9 |
|
|
Sergio Pascual |
ce8e5c9 |
# Hypothesis tests creates some files in sitearch... we remove them now
|
|
Sergio Pascual |
ce8e5c9 |
rm -rf .hypothesis
|
|
|
6501643 |
popd
|
|
|
6501643 |
|
|
Sergio Pascual |
fff8465 |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
|
6501643 |
%license LICENSE.md
|
|
|
0cf7a6f |
%doc README.rst
|
|
|
6501643 |
|
|
|
6501643 |
%changelog
|
|
Sergio Pascual |
7ba5d22 |
%autochangelog
|