%global pypi_name openflexure-stitching %global mod_name openflexure_stitching Name: python-%{pypi_name} Version: 0.2.5 Release: 1%{?dist} Summary: Stitch microscopy images into large whole-slide scans License: LGPL-3.0-or-later URL: https://gitlab.com/openflexure/openflexure-stitching Source0: %{pypi_source %{mod_name}} BuildArch: noarch BuildRequires: python3-devel %description openflexure-stitching assembles the tiled images captured by an OpenFlexure microscope scan into a single large image, using pyvips for fast, low-memory compositing. All runtime deps (numpy, pyvips, piexif, pydantic, matplotlib, psutil, scipy) are packaged; pyvips comes from this same repo. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} openflexure-stitching assembles the tiled images captured by an OpenFlexure microscope scan into a single large whole-slide image. %prep %autosetup -n %{mod_name}-%{version} %generate_buildrequires # -R: skip runtime BR + import check — pyvips is our own package (not in the # base repos); runtime deps stay enforced via generated install-time Requires. %pyproject_buildrequires -R %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L %{mod_name} %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/openflexure-stitch %changelog * Fri Jul 10 2026 Morgan Hough - 0.2.5-1 - Initial package for the OpenFlexure-on-Fedora stack.