This commit is contained in:
Sergey Zhemoytel 2024-06-27 08:09:52 +00:00
parent 396054826f
commit 2efe480d0c
2 changed files with 22 additions and 2 deletions

View file

@ -12,3 +12,4 @@ sources:
mc-RELEASE.2024-06-10T16-44-15Z.tar.gz: bc4b9578d28a93ca6965cb5c7179e595fe4c9d7f mc-RELEASE.2024-06-10T16-44-15Z.tar.gz: bc4b9578d28a93ca6965cb5c7179e595fe4c9d7f
mc-RELEASE.2024-06-12T14-34-03Z.tar.gz: 66f2ad529b558323e23ce54fe70ccd050d5191e5 mc-RELEASE.2024-06-12T14-34-03Z.tar.gz: 66f2ad529b558323e23ce54fe70ccd050d5191e5
mc-RELEASE.2024-06-20T14-50-54Z.tar.gz: 9242702f9ce085f5877316e9794b20fbae1c9fba mc-RELEASE.2024-06-20T14-50-54Z.tar.gz: 9242702f9ce085f5877316e9794b20fbae1c9fba
mc-RELEASE.2024-06-24T19-40-33Z.tar.gz: fdaef3d4719ecdfd8827093cabb80d69015abe8f

View file

@ -1,12 +1,13 @@
%define debug_package %nil %define debug_package %nil
%define oname mc %define oname mc
%define rel 2024-06-20T14-50-54Z %define rel 2024-06-24T19-40-33Z
%define ver RELEASE %define ver RELEASE
%define commit 060b0762fb17e26829fdcc5b43e42fdc437aeefc %define commit 060b0762fb17e26829fdcc5b43e42fdc437aeefc
%define shortcommit %(c=%{commit}; echo ${c:0:12}) %define shortcommit %(c=%{commit}; echo ${c:0:12})
%define secscan 1
Name: minio-client Name: minio-client
Version: 20240620 Version: 20240624
Release: 1 Release: 1
Summary: MinIO client Summary: MinIO client
License: ASL 2.0 License: ASL 2.0
@ -17,6 +18,11 @@ BuildRequires: golang >= 1.13
BuildRequires: git-core BuildRequires: git-core
BuildRequires: upx BuildRequires: upx
%if %{secscan}
BuildRequires: clamav
BuildRequires: trivy
%endif
%description %description
MinIO Client is a replacement for ls, cp, mkdir, diff and MinIO Client is a replacement for ls, cp, mkdir, diff and
rsync commands for filesystems and object storage. rsync commands for filesystems and object storage.
@ -24,6 +30,11 @@ rsync commands for filesystems and object storage.
%prep %prep
%setup -qn %{oname}-RELEASE.%{rel} %setup -qn %{oname}-RELEASE.%{rel}
%if %{secscan}
clamscan -ir .
trivy fs --scanners vuln --format cosign-vuln .
%endif
%build %build
export GOPROXY=direct export GOPROXY=direct
#make BUILD_LDFLAGS="-X cmd.Version=RELEASE.%{rel}" #make BUILD_LDFLAGS="-X cmd.Version=RELEASE.%{rel}"
@ -43,3 +54,11 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%doc README.md LICENSE %doc README.md LICENSE
%{_bindir}/%{name} %{_bindir}/%{name}
%check
export GOPROXY=direct
go test ./...
%if %{secscan}
clamscan -ir %{buildroot}
%endif