%global pypi_name labthings-fastapi %global mod_name labthings_fastapi Name: python-%{pypi_name} Version: 0.2.1 Release: 1%{?dist} Summary: FastAPI-based framework for networked lab instruments (LabThings) License: GPL-3.0-or-later URL: https://github.com/labthings/labthings-fastapi Source0: %{pypi_source labthings_fastapi} BuildArch: noarch BuildRequires: python3-devel %description The modern, FastAPI + pydantic LabThings framework — the web API foundation for the v3 OpenFlexure microscope server. All runtime deps (fastapi, pydantic, anyio, httpx, zeroconf, jsonschema, numpy) are in Fedora. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} The modern, FastAPI + pydantic LabThings framework — the web API foundation for the v3 OpenFlexure microscope server. %prep %autosetup -n %{mod_name}-%{version} # Fedora 44 ships pydantic 2.12.5; relax the >=2.13 floor (compatible in practice) sed -i 's/"pydantic ~= 2.13"/"pydantic >= 2.12"/' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L %{mod_name} %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %{_bindir}/labthings-server %changelog * Mon Jun 29 2026 Morgan Hough - 0.2.1-1 - Initial package for the OpenFlexure-on-Fedora (v3) stack.