# Generated by go2rpm 1.17.1 %bcond check 1 # https://github.com/fido-device-onboard/go-fdo-client %global goipath github.com/fido-device-onboard/go-fdo-client %global archivename %{name}-%{version} %global common_description %{expand: go-fdo-client is the device-side implementation of FIDO Device Onboard specification in Go. It provides an FDO client that interacts with FDO manufacturer, rendezvous, and owner servers to perform device on-boarding.} Name: go-fdo-client Version: 0 Release: 0.20251109220336376717.pr35%{?dist} Summary: FIDO FDO compliant device on-boarding tool License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: go-fdo-client-0.tar.gz Source1: %{archivename}-vendor.tar.gz BuildRequires: golang >= 1.25 BuildRequires: go-rpm-macros %gometa -L -f %description %{common_description} %prep %autosetup -n go-fdo-client-0 -a1 # %autopatch -p1 %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/go-fdo-client %{goipath} %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %if %{with check} %gotest ./... %endif %files %license LICENSE vendor/modules.txt %doc README.md %{_bindir}/go-fdo-client %changelog %autochangelog