Use macro to control whether to enable make check
Signed-off-by: yixiangzhike <yixiangzhike007@163.com> (cherry picked from commit 201f1d72e8e8ae583eafc6c0818d5834280892b9)
This commit is contained in:
parent
807872082c
commit
116c822921
@ -2,9 +2,11 @@
|
|||||||
%global sysctl_optmem_max 81920
|
%global sysctl_optmem_max 81920
|
||||||
%global distroname_ext %{_vendor}
|
%global distroname_ext %{_vendor}
|
||||||
|
|
||||||
|
%bcond_with enable_test
|
||||||
|
|
||||||
Name: libkcapi
|
Name: libkcapi
|
||||||
Version: 1.2.0
|
Version: 1.2.0
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: libkcapi - Linux Kernel Crypto API User Space Interface Library
|
Summary: libkcapi - Linux Kernel Crypto API User Space Interface Library
|
||||||
|
|
||||||
License: BSD or GPLv2
|
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
|
ln -s libkcapi.so.%{version}.hmac %{buildroot}/%{_lib}/fipscheck/libkcapi.so.1.hmac
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with enable_test}
|
||||||
for t in cppcheck scan;do
|
for t in cppcheck scan;do
|
||||||
%make_build $t
|
%make_build $t
|
||||||
done
|
done
|
||||||
@ -174,6 +177,7 @@ NO_32BIT_TEST=1 \
|
|||||||
./test-invocation.sh ||:
|
./test-invocation.sh ||:
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc %dir %{_pkgdocdir}
|
%doc %dir %{_pkgdocdir}
|
||||||
@ -204,6 +208,9 @@ fi
|
|||||||
%{_mandir}/man3/kcapi_*.3.*
|
%{_mandir}/man3/kcapi_*.3.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 9 2023 yixiangzhike <yixiangzhike007@163.com> - 1.2.0-6
|
||||||
|
- Use macro to control whether to enable make check
|
||||||
|
|
||||||
* Wed Feb 8 2023 yixiangzhike <yixiangzhike007@163.com> - 1.2.0-5
|
* Wed Feb 8 2023 yixiangzhike <yixiangzhike007@163.com> - 1.2.0-5
|
||||||
- Enable make check
|
- Enable make check
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user