From 8f84ffbad3cb3a62c084aec202515c4163a4f59c Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Fri, 14 Feb 2025 23:34:31 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ openclarity.spec | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .abf.yml create mode 100644 openclarity.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..7ca19e4 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + openclarity-1.1.3.tar.gz: 4cc8b68a6fa7d79d77bbe59be33b4548487742f6 diff --git a/openclarity.spec b/openclarity.spec new file mode 100644 index 0000000..1d14cfc --- /dev/null +++ b/openclarity.spec @@ -0,0 +1,40 @@ +%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 +