Initial commit on c10s
Resolves: RHEL-129926 Signed-off-by: Paul Whalen <pwhalen@fedoraproject.org>
This commit is contained in:
parent
c148e801c1
commit
b23929e7ba
4
.gitignore
vendored
4
.gitignore
vendored
@ -0,0 +1,4 @@
|
||||
/go-fdo-client-0.0.2-vendor.tar.bz2
|
||||
/go-fdo-client-0.0.2.tar.gz
|
||||
/go-fdo-client-0.0.3-vendor.tar.bz2
|
||||
/go-fdo-client-0.0.3.tar.gz
|
||||
64
go-fdo-client.spec
Normal file
64
go-fdo-client.spec
Normal file
@ -0,0 +1,64 @@
|
||||
# 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 with_debug 1
|
||||
|
||||
%if 0%{?with_debug}
|
||||
%global _find_debuginfo_dwz_opts %{nil}
|
||||
%global _dwz_low_mem_die_limit 0
|
||||
%else
|
||||
%global debug_package %{nil}
|
||||
%endif
|
||||
|
||||
Version: 0.0.3
|
||||
%gometa -L -f
|
||||
|
||||
Name: go-fdo-client
|
||||
Release: %autorelease
|
||||
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
|
||||
|
||||
%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
|
||||
|
||||
%build
|
||||
%global gomodulesmode GO111MODULE=on
|
||||
|
||||
# https://discussion.fedoraproject.org/t/why-does-the-go-compiler-uses-x-nodwarf5-by-default/179804
|
||||
# https://github.com/golang/go/issues/75079
|
||||
export GOEXPERIMENT="nodwarf5"
|
||||
|
||||
export GO_LDFLAGS="-X %{goipath}/internal/version.VERSION=%{version}"
|
||||
%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
|
||||
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (go-fdo-client-0.0.3-vendor.tar.bz2) = 646823100ac311c3bd0b71106a28467befe1a6f33fc39c083205d3144918f6e6e98b2be655661dc4da9b0e002fe37c45179851a66bdac029514c75f25f3f0ad7
|
||||
SHA512 (go-fdo-client-0.0.3.tar.gz) = a3cf2b992f30210137e6edb36d90ad990dafab42ebd57da893b7704ef515eeebb0ffa15af62295889cffa52e9db838604fd077a6917a60ffd40787f80b3a421d
|
||||
Loading…
Reference in New Issue
Block a user