Name: python-scikit-spatial Version: 9.0.1 Release: 2%{?dist} Summary: Spatial objects and computations based on NumPy arrays. License: BSD-3-Clause URL: https://github.com/ajhynes7/scikit-spatial Source: %{pypi_source scikit_spatial} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Spatial objects (Point, Vector, Line, Plane, Circle, Sphere, Triangle, Cylinder and their collections) built on NumPy arrays, with the computations between them: projections, intersections, distances, angles, best-fit lines and planes, and plotting through Matplotlib.} %description %_description %package -n python3-scikit-spatial Summary: %{summary} # skspatial.plotting is import-guarded and needs matplotlib only when used, so it # is a Recommends rather than a Requires -- the rest of the library is pure NumPy. Recommends: python3-matplotlib %description -n python3-scikit-spatial %_description %prep %autosetup -p1 -n scikit_spatial-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l skspatial %check # skspatial.plotting imports matplotlib at module scope and raises ImportError # with "install scikit-spatial[plotting]" when it is absent, so # %%pyproject_check_import fails on it (11028089, f45-aarch64). matplotlib is an # optional extra upstream, so the module is excluded from the import check and # offered as a Recommends instead -- pulling matplotlib into the buildroot purely # to import one optional module is not worth it. # # Not arch-specific: f45-x86_64 simply had matplotlib in its buildroot already. %pyproject_check_import -e 'skspatial.plotting' %files -n python3-scikit-spatial -f %{pyproject_files} %changelog * Thu Oct 22 2026 Morgan Hough - 9.0.1-2 - Real description in place of pyp2spec's placeholder, the template comments removed, and a plain Release/changelog instead of %%autorelease/%%autochangelog (inert under rpkg, so -1 could never be superseded). Found by the 2026-10-22 readiness review.