mirror of
https://abf.rosa.ru/djam/minio-client.git
synced 2025-02-23 06:32:59 +00:00
20240624
This commit is contained in:
parent
396054826f
commit
2efe480d0c
2 changed files with 22 additions and 2 deletions
1
.abf.yml
1
.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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue