mirror of
https://abf.rosa.ru/djam/syft.git
synced 2025-02-23 10:52:57 +00:00
Imported from SRPM
This commit is contained in:
commit
af74c4bf0e
2 changed files with 39 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
syft-1.12.2.tar.gz: a3557f0d46a5ed3900622178c5d203f97f92b530
|
37
syft.spec
Normal file
37
syft.spec
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
%define debug %nil
|
||||||
|
%define debug_package %nil
|
||||||
|
|
||||||
|
Name: syft
|
||||||
|
Version: 1.12.2
|
||||||
|
Release: 1
|
||||||
|
Summary: CLI tool for generating a SBOM
|
||||||
|
URL: https://github.com/anchore/syft
|
||||||
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
License: ASL 2.0
|
||||||
|
Group: Security
|
||||||
|
BuildRequires: go
|
||||||
|
BuildRequires: git-core
|
||||||
|
BuildRequires: upx
|
||||||
|
|
||||||
|
%description
|
||||||
|
A CLI tool and Go library for generating a Software Bill of
|
||||||
|
Materials (SBOM) from container images and filesystems.
|
||||||
|
Exceptional for vulnerability detection when used with a
|
||||||
|
scanner like Grype.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
export GOPROXY=direct
|
||||||
|
go build -ldflags "-s -w" -o bin/%{name} ./cmd/%{name}
|
||||||
|
|
||||||
|
upx bin/%{name}
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENSE
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
Loading…
Add table
Reference in a new issue