%global srcname xarray-einstats Name: python-%{srcname} Version: 0.5.1 Release: 2%{?dist} Summary: Stats, linear algebra and einops for xarray License: Apache-2.0 URL: https://github.com/arviz-devs/xarray-einstats Source0: %{url}/archive/v%{version}/xarray-einstats-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: xarray-einstats is an open source Python library part of the ArviZ project. It acts as a bridge between the xarray library for labelled arrays and libraries for raw arrays such as NumPy or SciPy.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files xarray_einstats # Packages numba and einops are not in Fedora %check %pytest --ignore=tests/test_numba.py --ignore=tests/test_einops.py %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md # license is not ncluded in pyproject_files %license LICENSE %changelog * Mon Jul 10 2023 Sergio Pascual - 0.5.1-2 - Get source from github - Perform testing - Include LICENSE * Sat Jun 03 2023 Sergio Pascual - 0.5.1-1 - Initial package