This commit is contained in:
Sergey Zhemoytel 2024-07-02 22:20:41 +00:00
parent 600a1667e7
commit f387a4dced
2 changed files with 19 additions and 3 deletions

View file

@ -1,2 +1,2 @@
sources:
finch-1.2.0.tar.gz: 26260f4359c8846d42e7d61594a529f160108b13
finch-1.2.1.tar.gz: 3bee43459379b67ceae0afe496b3877916441a72

View file

@ -1,8 +1,9 @@
%define debug %nil
%define debug_package %nil
%define secscan 1
Name: finch
Version: 1.2.0
Version: 1.2.1
Release: 1
Summary: The Finch CLI an open source client for container development
URL: https://github.com/runfinch/finch
@ -12,6 +13,10 @@ Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
%if %{secscan}
BuildRequires: clamav
BuildRequires: trivy
%endif
%description
@ -25,9 +30,13 @@ offering a simple native client to tie it all together
%prep
%setup -q
%if %{secscan}
clamscan -ir .
trivy fs --scanners vuln --format cosign-vuln .
%endif
%build
export GOPROXY=direct
export GOPROXY=https://proxy.golang.org/cached-only
export VERSION=%{verson}
#make %{name}
@ -42,3 +51,10 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%doc README.md LICENSE
%{_bindir}/%{name}
%check
export GOPROXY=https://proxy.golang.org/cached-only
#go test ./...
%if %{secscan}
clamscan -ir %{buildroot}
%endif