This commit is contained in:
Sergey Zhemoytel 2024-06-28 09:57:23 +00:00
parent 3fd07915e7
commit 2dcd55868b
2 changed files with 21 additions and 3 deletions

View file

@ -1,2 +1,2 @@
sources: sources:
fastfetch-2.16.0.tar.gz: 88fc0b0daf5db5e32d01d061d7e25ddb17d9afbf fastfetch-2.17.0.tar.gz: bbbefb51525ee031e41f15f5f32abd760b51bdba

View file

@ -1,5 +1,7 @@
%define secscan 1
Name: fastfetch Name: fastfetch
Version: 2.16.0 Version: 2.17.0
Release: 1 Release: 1
Summary: Like neofetch, but much faster because written in c Summary: Like neofetch, but much faster because written in c
Group: Development/Other Group: Development/Other
@ -45,7 +47,12 @@ Recommends: glib2
Recommends: lib64opencl1 Recommends: lib64opencl1
Recommends: chafa Recommends: chafa
Recommends: ddcutil Recommends: ddcutil
%if %{secscan}
BuildRequires: clamav
BuildRequires: trivy
%endif
%description %description
fastfetch is a neofetch-like tool for fetching system information and fastfetch is a neofetch-like tool for fetching system information and
displaying them in a pretty way. It is written in c to achieve much better displaying them in a pretty way. It is written in c to achieve much better
@ -74,6 +81,11 @@ BuildArch: noarch
%prep %prep
%setup -q %setup -q
%if %{secscan}
clamscan -ir .
trivy fs --scanners vuln --format cosign-vuln .
%endif
%build %build
%cmake \ %cmake \
%if %{mdvver} <= 201610 %if %{mdvver} <= 201610
@ -102,3 +114,9 @@ rm -rf %{buildroot}%{_datadir}/licenses/fastfetch/LICENSE
%files fish-completion %files fish-completion
%{_datadir}/fish/vendor_completions.d/fastfetch.fish %{_datadir}/fish/vendor_completions.d/fastfetch.fish
%check
%if %{secscan}
clamscan -ir %{buildroot}
%endif