%global pypi_name pyvips Name: python-%{pypi_name} Version: 3.1.1 Release: 1%{?dist} Summary: Python bindings for libvips (image processing) License: MIT URL: https://github.com/libvips/pyvips Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel # No vips-devel here on purpose: pyvips tries cffi "API mode" (compiled) first # and falls back to noarch "ABI mode" when the libvips headers are absent. ABI # mode dlopen()s libvips at runtime, which is what we want for a noarch package. %description pyvips is the Python binding for libvips, a fast, low-memory image-processing library. Used by openflexure-stitching to assemble microscope scans. %package -n python3-%{pypi_name} Summary: %{summary} # ABI mode dlopen()s the shared library at runtime; make the dep explicit. Requires: vips %description -n python3-%{pypi_name} pyvips is the Python binding for libvips, a fast, low-memory image-processing library (ABI mode: loads the system libvips at runtime). %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L %{pypi_name} %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt %doc README.rst %changelog * Fri Jul 10 2026 Morgan Hough - 3.1.1-1 - Initial package for the OpenFlexure-on-Fedora stack (openflexure-stitching).