Name: python-pynrrd Version: 1.1.3 Release: 1%{?dist} Summary: Read and write NRRD files in pure Python License: MIT URL: https://github.com/mhe/pynrrd Source0: %{pypi_source pynrrd} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %global _description %{expand: pynrrd reads and writes NRRD (Nearly Raw Raster Data), the volumetric format 3D Slicer uses natively, as NumPy arrays plus a header dictionary. The import name is "nrrd", not "pynrrd".} %description %{_description} %package -n python3-pynrrd Summary: %{summary} %description -n python3-pynrrd %{_description} %prep %autosetup -n pynrrd-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Upstream's wheel installs the Sphinx config as a top-level "docs" package: # site-packages/docs/source/conf.py, from setuptools auto-discovery picking up # the docs directory. It is not importable content and claims the extremely # generic top-level name "docs" in site-packages, so remove it rather than # package it. Without this the build fails on unpackaged files. rm -rf %{buildroot}%{python3_sitelib}/docs %pyproject_save_files nrrd %check %pyproject_check_import %files -n python3-pynrrd -f %{pyproject_files} %license LICENSE %doc README.rst %changelog * Tue Sep 15 2026 Morgan Hough - 1.1.3-1 - Initial package: pynrrd 1.1.3. - Upstream wheel installs docs/source/conf.py as a top-level "docs" package in site-packages; removed in %%install rather than packaged. - MONAI Label dependency; also the natural reader for the .nrrd volumes 3D Slicer writes. Both declared dependencies (numpy, typing_extensions) are already in Fedora.