Name: python-solo1 Version: 0.1.1 Release: %autorelease Summary: Python library for SoloKeys. License: Apache-2.0 OR MIT URL: https://github.com/solokeys/solo1-cli Source: %{pypi_source solo1} # The Debian maintainers have patched it to work with current python-fido2 # https://github.com/solokeys/solo1-cli/pull/169 Patch: 169.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Python tool and library for SoloKeys Solo 1} %description %_description %package -n python3-solo1 Summary: %{summary} %description -n python3-solo1 %_description %prep %autosetup -p1 -n solo1-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %if 0%{fedora} <= 42 %pyproject_save_files -L solo %else %pyproject_save_files -l solo %endif # Drop the deprecated solo (unversioned) CLI tool rm %{buildroot}%{_bindir}/solo %check %pyproject_check_import %files -n python3-solo1 -f %{pyproject_files} %if 0%{fedora} <= 42 %license LICENSE-APACHE LICENSE-MIT %endif %doc README.md CHANGELOG.md %{_bindir}/solo1 %changelog %autochangelog