SHA256
1
0
forked from pool/trivy
Dirk Mueller 2023-04-16 19:13:49 +00:00 committed by Git OBS Bridge
parent 1c04f09b2d
commit b634bc69af
3 changed files with 6 additions and 12 deletions

BIN
trivy-0.40.0.tar.zst (Stored with Git LFS)

Binary file not shown.

View File

@ -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)

Binary file not shown.