kubescape/kubescape.spec

45 lines
1.1 KiB
RPMSpec
Raw Normal View History

2021-08-23 10:10:39 +03:00
%define debug %nil
%define debug_package %nil
2023-04-06 22:08:47 +00:00
%define git2go_rev eae00773cce87d5282a8ac7c10b5c1961ee6f9cb
2021-08-23 10:10:39 +03:00
Name: kubescape
2025-02-20 09:43:02 +00:00
Version: 3.0.28
2021-08-23 10:10:39 +03:00
Release: 1
Summary: NSA and CISA kubernetes securely tests
2023-04-05 01:20:44 +00:00
URL: https://github.com/armosec/kubescape
2021-08-23 10:10:39 +03:00
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
2024-03-15 09:21:46 +00:00
#Source1: https://github.com/libgit2/git2go/archive/%{git2go_rev}/git2go-%{git2go_rev}.tar.gz
2021-08-23 10:10:39 +03:00
License: ASL 2.0
Group: Development/Other
BuildRequires: go >= 1.11
BuildRequires: git-core
BuildRequires: upx
2024-11-19 10:09:27 +00:00
BuildRequires: pkgconfig(openssl3.3)
2021-08-23 10:10:39 +03:00
%description
Kubescape is the first tool for testing if Kubernetes
is deployed securely as defined in Kubernetes Hardening
Guidance by to NSA and CISA Tests are configured with
YAML files, making this tool easy to update as test
specifications evolve.
%prep
%setup -q
2024-03-15 09:21:46 +00:00
#tar -xf %{SOURCE1}
#cp -a git2go-%{git2go_rev}/* git2go/
2023-04-06 22:08:47 +00:00
2021-08-23 10:10:39 +03:00
%build
2024-03-15 13:48:28 +00:00
export GOPROXY=https://proxy.golang.org/cached-only
2021-08-23 10:10:39 +03:00
go mod tidy
2024-01-10 20:42:28 +00:00
go build --ldflags="-s -w" -o %{name} .
2021-08-23 10:10:39 +03:00
upx %{name}
%install
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}