# Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/fido-device-onboard/go-fdo-client %global goipath github.com/fido-device-onboard/go-fdo-client %global commit 9f63fe36b50fe88c37d70bb33386fa258a62bb82 %global debug_package %{nil} %gometa -L -f Name: go-fdo-client Version: 0 Release: %autorelease -p 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: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description 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 and owner servers to perform device on-boarding. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} #%%autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export LDFLAGS="-X %{goipath}/internal/version.VERSION=%{version}" %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