1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
%global import_path github.com/aquasecurity/k8s-node-collector %global _unpackaged_files_terminate_build 1 Name: k8s-trivy-node-collector Version: 0.0.9 Release: alt1 Epoch: 1 Summary: k8s-Node-collector is an open source collector who collect Node information (fs and process data) and output in a table/json format Group: Monitoring License: Apache-2.0 Url: https://%import_path Source: %name-%version.tar ExclusiveArch: %go_arches BuildRequires(pre): rpm-build-golang BuildRequires: /proc %description %summary. %prep %setup %build export BUILDDIR="$PWD/.gopath" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path" export GOFLAGS="-mod=vendor" export CGO_ENABLED=0 %golang_prepare %golang_build cmd/node-collector %install export BUILDDIR="$PWD/.gopath" mkdir -p %buildroot%_bindir %golang_install mv %buildroot%_bindir/node-collector %buildroot%_bindir/%name rm -rf -- %buildroot%_datadir rm -rf -- %buildroot%go_root %files %doc LICENSE README.md %_bindir/%name %changelog * Mon Mar 04 2024 Ivan Pepelyaev <fl0pp5@altlinux.org> 1:0.0.9-alt1 - Initial build for ALT