From 116c8229218e5afe3a7c994cf120f192a088be9a Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Thu, 9 Feb 2023 16:52:46 +0800 Subject: [PATCH] Use macro to control whether to enable make check Signed-off-by: yixiangzhike (cherry picked from commit 201f1d72e8e8ae583eafc6c0818d5834280892b9) --- libkcapi.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libkcapi.spec b/libkcapi.spec index 7b7934d..24ed2a7 100644 --- a/libkcapi.spec +++ b/libkcapi.spec @@ -2,9 +2,11 @@ %global sysctl_optmem_max 81920 %global distroname_ext %{_vendor} +%bcond_with enable_test + Name: libkcapi Version: 1.2.0 -Release: 5 +Release: 6 Summary: libkcapi - Linux Kernel Crypto API User Space Interface Library License: BSD or GPLv2 @@ -155,6 +157,7 @@ bin/kcapi-hasher -n fipshmac -d %{buildroot}/%{_lib}/fipscheck %{buildroot}/%{ ln -s libkcapi.so.%{version}.hmac %{buildroot}/%{_lib}/fipscheck/libkcapi.so.1.hmac %check +%if %{with enable_test} for t in cppcheck scan;do %make_build $t done @@ -174,6 +177,7 @@ NO_32BIT_TEST=1 \ ./test-invocation.sh ||: popd fi +%endif %files %doc %dir %{_pkgdocdir} @@ -204,6 +208,9 @@ fi %{_mandir}/man3/kcapi_*.3.* %changelog +* Thu Feb 9 2023 yixiangzhike - 1.2.0-6 +- Use macro to control whether to enable make check + * Wed Feb 8 2023 yixiangzhike - 1.2.0-5 - Enable make check