%global pypi_name labthings-picamera2 %global mod_name labthings_picamera2 Name: python-%{pypi_name} Version: 0.0.2 Release: 1%{?dist} Summary: Picamera2 support for LabThings-FastAPI (the v3 OpenFlexure camera server) License: MIT URL: https://github.com/labthings/labthings-picamera2 Source0: %{pypi_source %{mod_name}} BuildArch: noarch BuildRequires: python3-devel %description labthings-picamera2 exposes a picamera2 camera as a LabThings-FastAPI "Thing", providing the streaming/capture web API for the modern (v3) OpenFlexure microscope server. Run it with the labthings-fastapi server; pair with the sangaboard (stage) and camera-stage-mapping (autofocus) Things for a full networked microscope. Runtime deps: picamera2, labthings-fastapi, numpy, scipy, pillow. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} labthings-picamera2 exposes a picamera2 camera as a LabThings-FastAPI Thing — the streaming/capture web API for the v3 OpenFlexure microscope server. %prep %autosetup -n %{mod_name}-%{version} %generate_buildrequires # -R: picamera2 and labthings-fastapi are our own packages (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 %changelog * Fri Jul 10 2026 Morgan Hough - 0.0.2-1 - Initial package for the OpenFlexure-on-Fedora v3 (LabThings-FastAPI) server.