syft/syft.spec
Your Name fccc2e4422
All checks were successful
Run CI/CD... / main (push) Successful in 10m14s
1.20.0
2025-02-21 20:57:56 +00:00

38 lines
839 B
RPMSpec

%define debug %nil
%define debug_package %nil
Name: syft
Version: 1.20.0
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
BuildRequires: pkgconfig(openssl3.3)
%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=https://proxy.golang.org/cached-only
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}