# 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 commit 2282b5a8a2f177fb37b2cbd0b6265db9ea88c06f %global debug_package %{nil} %gometa -L -f # Vendoring: vendor/ directory is included in Source0 %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: %autorelease -p Summary: FIDO FDO compliant device on-boarding tool # Upstream license: Apache-2.0 # Bundled dependencies licenses determined from vendor/modules.txt License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang >= 1.23 %description %{common_description} %prep %goprep -k -A #%autopatch -p1 %build export GO111MODULE=on export GOFLAGS=-mod=vendor %gobuild -o %{gobuilddir}/bin/go-fdo-client %{goipath} %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp -s %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %if %{with check} # Run tests with vendored dependencies export GO111MODULE=on export GOFLAGS=-mod=vendor %gotest ./... %endif %files %license LICENSE vendor/modules.txt %doc README.md %{_bindir}/go-fdo-client %changelog %autochangelog