From 2efe480d0c3c7df2f8cd99a72411129a5849b12d Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Thu, 27 Jun 2024 08:09:52 +0000 Subject: [PATCH] 20240624 --- .abf.yml | 1 + minio-client.spec | 23 +++++++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.abf.yml b/.abf.yml index 2aa8f63..7e92b2e 100644 --- a/.abf.yml +++ b/.abf.yml @@ -12,3 +12,4 @@ sources: mc-RELEASE.2024-06-10T16-44-15Z.tar.gz: bc4b9578d28a93ca6965cb5c7179e595fe4c9d7f mc-RELEASE.2024-06-12T14-34-03Z.tar.gz: 66f2ad529b558323e23ce54fe70ccd050d5191e5 mc-RELEASE.2024-06-20T14-50-54Z.tar.gz: 9242702f9ce085f5877316e9794b20fbae1c9fba + mc-RELEASE.2024-06-24T19-40-33Z.tar.gz: fdaef3d4719ecdfd8827093cabb80d69015abe8f diff --git a/minio-client.spec b/minio-client.spec index f071613..42b6043 100644 --- a/minio-client.spec +++ b/minio-client.spec @@ -1,12 +1,13 @@ %define debug_package %nil %define oname mc -%define rel 2024-06-20T14-50-54Z +%define rel 2024-06-24T19-40-33Z %define ver RELEASE %define commit 060b0762fb17e26829fdcc5b43e42fdc437aeefc %define shortcommit %(c=%{commit}; echo ${c:0:12}) +%define secscan 1 Name: minio-client -Version: 20240620 +Version: 20240624 Release: 1 Summary: MinIO client License: ASL 2.0 @@ -17,6 +18,11 @@ BuildRequires: golang >= 1.13 BuildRequires: git-core BuildRequires: upx +%if %{secscan} +BuildRequires: clamav +BuildRequires: trivy +%endif + %description MinIO Client is a replacement for ls, cp, mkdir, diff and rsync commands for filesystems and object storage. @@ -24,6 +30,11 @@ rsync commands for filesystems and object storage. %prep %setup -qn %{oname}-RELEASE.%{rel} +%if %{secscan} +clamscan -ir . +trivy fs --scanners vuln --format cosign-vuln . +%endif + %build export GOPROXY=direct #make BUILD_LDFLAGS="-X cmd.Version=RELEASE.%{rel}" @@ -43,3 +54,11 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} %doc README.md LICENSE %{_bindir}/%{name} +%check +export GOPROXY=direct + +go test ./... + +%if %{secscan} +clamscan -ir %{buildroot} +%endif \ No newline at end of file