!42 【Mainline】Enable make check
From: @yixiangzhike Reviewed-by: @HuaxinLuGitee Signed-off-by: @HuaxinLuGitee
This commit is contained in:
commit
e2d280f55e
19
aide.spec
19
aide.spec
@ -1,6 +1,8 @@
|
||||
%bcond_without have_check
|
||||
|
||||
Name: aide
|
||||
Version: 0.17.4
|
||||
Release: 1
|
||||
Release: 2
|
||||
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-Handle-malformed-database-lines.patch
|
||||
@ -43,6 +49,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
|
||||
@ -67,6 +78,12 @@ mkdir -p -m0700 %{buildroot}%{_localstatedir}/lib/aide
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 28 2023 yixiangzhike <yixiangzhike007@163.com> - 0.17.4-2
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: enable make chck
|
||||
|
||||
* Mon Jun 27 2022 yixiangzhike <yixiangzhike007@163.com> - 0.17.4-1
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user