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/
|
# 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)
BIN
vendor.tar.zst
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue
Block a user