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/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
# nodebuginfo
%global goipath github.com/aquasecurity/trivy
Name: trivy Name: trivy
Version: 0.40.0 Version: 0.40.0
Release: 0 Release: 0
@ -46,17 +44,13 @@ name of the container.
%prep %prep
%setup -qa1 %setup -qa1
%autopatch -p1
%build %build
%goprep %{goipath}
export CGO_ENABLED=0 export CGO_ENABLED=0
go build -o trivy -mod=vendor -buildmode=pie -trimpath -ldflags "-s -w -X=main.version=%{version}" cmd/trivy/main.go
%gobuild -mod vendor -ldflags "-X=main.version=%{version}" cmd/trivy
%install %install
%goinstall install -D -m 755 trivy %{buildroot}/%{_bindir}/%{name}
%files %files
%license LICENSE %license LICENSE

BIN
vendor.tar.zst (Stored with Git LFS)

Binary file not shown.