diff --git a/aide.spec b/aide.spec index cfce823..8b26a2a 100644 --- a/aide.spec +++ b/aide.spec @@ -22,7 +22,9 @@ Patch5: aide-0.13.1-libgrypt-init.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n) BuildRequires: mktemp BuildRequires: prelink autoconf automake elfutils-libelf-devel +%if 0%{?rhel} == 0 Buildrequires: mhash-devel +%endif Buildrequires: zlib-devel libgcrypt-devel Buildrequires: flex bison Buildrequires: libattr-devel libacl-devel libselinux-devel @@ -51,13 +53,15 @@ autoreconf %configure --with-config_file=%{_sysconfdir}/aide.conf \ --with-zlib \ --disable-static \ +%if 0%{?rhel} == 0 --with-mhash \ +%endif %{?_with_curl} %{?_without_curl} \ --with-selinux --with-posix-acl --with-audit \ --with-xattr \ --with-prelink -make %{?_smp_mflags} +make %install