# 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.20250915164150799327.pr22%{?dist} Summary: FIDO FDO compliant device on-boarding tool # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: go-fdo-client-0.tar.gz Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools BuildRequires: go-rpm-macros BuildRequires: golang %gometa -L -f %description %{common_description} %prep %autosetup -n go-fdo-client-0 -a1 # %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/go-fdo-client %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/go-fdo-client %changelog %autochangelog