%global debug_package %{nil} Name: cvetool Version: v0.1.1 Release: 1.20251112082828759666.main.4.gf6f9986%{?dist} Summary: A Claircore-based CVE manager License: Apache-2.0 URL: https://github.com/ComplianceAsCode/cvetool Source0: cvetool-v0.1.1.tar.gz BuildRequires: golang BuildRequires: git Requires: glibc %description %{summary} %prep %setup -q -n cvetool-v0.1.1 %build export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" go mod tidy #go build -v -o cvetool go build ./cmd/cvetool %install install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name} %files %{_bindir}/%{name} %license LICENSE %doc README.md