## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-ndindex Version: 1.7 Release: %autorelease Summary: Python library for manipulating indices of ndarrays # Upstream specified license as MIT and this covers almost all source files. # ndindex-1.7/ndindex/_crt.py is BSD-3-Clause License: MIT AND BSD-3-Clause URL: https://quansight-labs.github.io/ndindex/ Source: https://github.com/quansight-labs/ndindex/archive/%{version}/%{name}-%{version}.tar.gz Patch: 0001-Use-configparser.ConfigParser-instead-of-SafeConfigP.patch Patch: 0002-setup.py-specify-cython-language_level.patch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-Cython BuildRequires: gcc # For tests: BuildRequires: python3-pytest BuildRequires: python3-hypothesis BuildRequires: python3-numpy ExcludeArch: %{ix86} %global _description %{expand: ndindex is a library that allows representing and manipulating objects that can be valid indices to numpy arrays, i.e., slices, integers, ellipses, None, integer and boolean arrays, and tuples thereof. The goals of the library are to provide a uniform API to manipulate these objects, match semantics of numpy's ndarray, and to provide useful transformation and manipulation functions on index objects.} %description %_description %package -n python3-ndindex Summary: %{summary} Requires: python3-numpy %description -n python3-ndindex %_description %prep %autosetup -p1 -n ndindex-%{version} # It wants to add coverage and flakes, which is not useful for us rm pytest.ini %build %py3_build %install %py3_install %check OPTIONS=( # This test is flaky --deselect=ndindex/tests/test_shapetools.py::test_iter_indices_matmul # https://github.com/Quansight-Labs/ndindex/issues/158 --deselect=ndindex/tests/test_ndindex.py::test_eq ) %pytest -v "${OPTIONS[@]}" %files -n python3-ndindex %license LICENSE %doc README.md %{python3_sitearch}/ndindex/ %{python3_sitearch}/ndindex-%{version}-py%{python3_version}.egg-info/ %changelog * Fri Jul 21 2023 Fedora Release Engineering - 1.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 16 2023 Zbigniew Jędrzejewski-Szmek - 1.7-8 - Fix build with python 3.12 (rhbz#2220349) * Thu Jun 15 2023 Python Maint - 1.7-7 - Rebuilt for Python 3.12 * Sat May 20 2023 Zbigniew Jędrzejewski-Szmek - 1.7-6 - Do not build for i686 * Fri May 19 2023 Zbigniew Jędrzejewski-Szmek - 1.7-2 - Fix license tag * Sun May 14 2023 Zbigniew Jędrzejewski-Szmek - 1.7-1 - First working version