%global pypi_name napari-voxtell %global dist_name napari_voxtell Name: python-%{pypi_name} Version: 0.2.0 Release: 1%{?dist} Summary: VoxTell text-promptable segmentation plugin for napari # The code is Apache-2.0. The VoxTell weights it uses are CC-BY-NC-SA-4.0 and # are not packaged (see python-voxtell.spec). License: Apache-2.0 URL: https://github.com/MIC-DKFZ/napari-voxtell Source0: %{pypi_source %{dist_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-pyqt6 %global _description %{expand: napari-voxtell adds VoxTell to the napari viewer: type what to segment ("brain stem", "liver lesion") and VoxTell segments the open 3D volume. It runs VoxTell in-process or talks to a voxtell-server on another machine. No model weights are included. VoxTell downloads its checkpoint on first use; that checkpoint is CC-BY-NC-SA-4.0 (non-commercial use only).} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{dist_name}-%{version} # napari[all] only adds a Qt binding and optional extras; python3-napari plus # python3-pyqt6 (which python3-napari Recommends) is the Fedora equivalent. sed -i 's/"napari\[all\]"/"napari"/' pyproject.toml grep -q 'napari\[all\]' pyproject.toml && exit 1 || : %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{dist_name} %check export QT_QPA_PLATFORM=offscreen %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Tue Nov 03 2026 Morgan Hough - 0.2.0-1 - Initial package. napari[all] replaced by napari (see %%prep).