forked from pool/trivy
This commit is contained in:
parent
1c04f09b2d
commit
b634bc69af
BIN
trivy-0.40.0.tar.zst
(Stored with Git LFS)
BIN
trivy-0.40.0.tar.zst
(Stored with Git LFS)
Binary file not shown.
10
trivy.spec
10
trivy.spec
@ -14,10 +14,8 @@
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
# nodebuginfo
|
||||
|
||||
|
||||
%global goipath github.com/aquasecurity/trivy
|
||||
Name: trivy
|
||||
Version: 0.40.0
|
||||
Release: 0
|
||||
@ -46,17 +44,13 @@ name of the container.
|
||||
|
||||
%prep
|
||||
%setup -qa1
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%goprep %{goipath}
|
||||
|
||||
export CGO_ENABLED=0
|
||||
|
||||
%gobuild -mod vendor -ldflags "-X=main.version=%{version}" cmd/trivy
|
||||
go build -o trivy -mod=vendor -buildmode=pie -trimpath -ldflags "-s -w -X=main.version=%{version}" cmd/trivy/main.go
|
||||
|
||||
%install
|
||||
%goinstall
|
||||
install -D -m 755 trivy %{buildroot}/%{_bindir}/%{name}
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
|
BIN
vendor.tar.zst
(Stored with Git LFS)
BIN
vendor.tar.zst
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue
Block a user