%global pypi_name sangaboard Name: python-%{pypi_name} Version: 0.4.1 Release: 1%{?dist} Summary: Driver for the OpenFlexure Sangaboard motor controller License: GPL-3.0-or-later URL: https://pypi.org/project/sangaboard/ Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %description Python driver for the Sangaboard, the motor controller used by the OpenFlexure microscope (USB-serial; pyserial + semver). %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} Python driver for the Sangaboard, the motor controller used by the OpenFlexure microscope (USB-serial; pyserial + semver). %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # upstream flat layout installs docs/ and tests/ as top-level site-packages dirs rm -rf %{buildroot}%{python3_sitelib}/docs %{buildroot}%{python3_sitelib}/tests %pyproject_save_files -L sangaboard %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt %changelog * Mon Jun 29 2026 Morgan Hough - 0.4.1-1 - Initial package for the OpenFlexure-on-Fedora (v3) stack.