%global pypi_name medvol %global dist_name medvol Name: python-%{pypi_name} Version: 0.0.22 Release: 1%{?dist} Summary: Unified reading and writing of medical image volumes License: Apache-2.0 URL: https://github.com/MIC-DKFZ/MedVol Source0: %{pypi_source medvol} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-pytest %global _description %{expand: MedVol is a small Python wrapper from the DKFZ Division of Medical Image Computing that reads and writes NIfTI, NRRD and other medical image volumes through NiBabel, pynrrd and SimpleITK behind one interface, keeping the spacing, origin, direction and header metadata together with the array.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n medvol-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files medvol %check %pyproject_check_import %pytest -v tests %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Tue Nov 03 2026 Morgan Hough - 0.0.22-1 - Initial package; dependency of napari-nifti (napari-nninteractive, napari-voxtell).