Name: syft Version: 1.18.1 Release: 1%{?dist} Summary: A CLI tool for generating SBOMs (Software Bill of Materials) License: Apache-2.0 URL: https://github.com/anchore/syft Source0: syft-1.18.1.tar.gz BuildRequires: python3 >= 3.9 BuildRequires: make BuildRequires: git BuildRequires: gcc %description Syft is a CLI tool and library for generating a Software Bill of Materials (SBOM) from container images and filesystems. %prep %autosetup -n syft-1.18.1 go mod tidy %build arch=unknown if [[ == x86_64* ]]; then SYSARCH="amd64" elif [[ == aarch64 ]]; then SYSARCH="arm64" fi wget -O go.tar.gz https://go.dev/dl/go1.23.5.linux-.tar.gz tar -xzf go.tar.gz go/bin/go build -o build/syft cmd/syft/main.go %install install -Dm0755 build/syft %{buildroot}/usr/bin/syft %files /usr/bin/syft %changelog * Fri Jan 17 2025 Christian Vonderstein - 1.18.1-1 - Initial packaging for Syft 1.18.1