diff --git a/aide.spec b/aide.spec index 3dc2be7a45e7b9af2eb03ff227a3226c18802f6f..0ebe7642e23b4d5bad91ce8e1993f6fca9ad0bd7 100644 --- a/aide.spec +++ b/aide.spec @@ -1,6 +1,8 @@ +%bcond_without have_check + Name: aide Version: 0.17.3 -Release: 6 +Release: 7 Summary: Advanced Intrusion Detection Environment License: GPLv2+ URL: http://sourceforge.net/projects/aide @@ -12,6 +14,10 @@ BuildRequires: gcc make bison flex pcre2-devel libgpg-error-devel libgcrypt-dev BuildRequires: libacl-devel libselinux-devel libattr-devel e2fsprogs-devel audit-libs-devel # command autoreconf needs autoconf and automake BuildRequires: autoconf automake +# for make check +%if %{with have_check} +BuildRequires: check-devel +%endif Patch0: Add-sm3-algorithm-for-aide.patch Patch1: backport-CVE-2021-45417-Precalculate-buffer-size-in-base64-functions.patch @@ -44,6 +50,11 @@ install -Dpm0644 %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/aide mkdir -p %{buildroot}%{_localstatedir}/log/aide mkdir -p -m0700 %{buildroot}%{_localstatedir}/lib/aide +%check +%if %{with have_check} +make check +%endif + %pre %preun @@ -68,6 +79,12 @@ mkdir -p -m0700 %{buildroot}%{_localstatedir}/lib/aide %{_mandir}/*/* %changelog +* Tue Mar 28 2023 yixiangzhike - 0.17.3-7 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: enable make check + * Tue Oct 18 2022 yixiangzhike - 0.17.3-6 - Type:bugfix - ID:NA