From af74c4bf0e03af2c93f98dd61170e75c1e9a55ce Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Sat, 14 Sep 2024 22:47:26 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ syft.spec | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .abf.yml create mode 100644 syft.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..1735eba --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + syft-1.12.2.tar.gz: a3557f0d46a5ed3900622178c5d203f97f92b530 diff --git a/syft.spec b/syft.spec new file mode 100644 index 0000000..60989ad --- /dev/null +++ b/syft.spec @@ -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} +