openclarity/openclarity.spec

40 lines
1 KiB
RPMSpec

%define debug %nil
%define debug_package %nil
Name: openclarity
Version: 1.1.3
Release: 1
Summary: A tool built to enhance security and observability of cloud native applications
URL: https://openclarity.io
Source0: https://github.com/openclarity/openclarity/archive/v%{version}/%{name}-%{version}.tar.gz
License: ASL 2.0
Group: Security
Provides: %{name}-cli == %{EVRD}
BuildRequires: go
BuildRequires: git-core
BuildRequires: nodejs14
BuildRequires: pkgconfig(gpgme)
%description
OpenClarity is an open source tool for agentless detection
and management of Virtual Machine Software Bill Of Materials
(SBOM) and security threats such as vulnerabilities, exploits,
malware, rootkits, misconfigurations and leaked secrets.
%prep
%setup -q
%build
export GOPROXY=https://proxy.golang.org,direct
export PATH=$PATH:/opt/nodejs14/bin
#go build --ldflags="-s -w" -o bin/%{name}-cli ./cli
%make build-all-go
%install
install -Dm0755 bin/%{name}-cli %{buildroot}%{_bindir}/%{name}-cli
%files
%doc README.md LICENSE docs ARCHITECTURE.md
%{_bindir}/%{name}-cli