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