Both RHEL and Fedora build with audit enabled at all
times.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
# Non-server/HV driver defaults which are always enabled
%define with_sasl 0%{!?_without_sasl:1}
-%define with_audit 0%{!?_without_audit:1}
%define with_nss_plugin 0%{!?_without_nss_plugin:1}
%if %{with_hyperv}
BuildRequires: libwsman-devel >= 2.2.3
%endif
-%if %{with_audit}
BuildRequires: audit-libs-devel
-%endif
%if %{with_dtrace}
# we need /usr/sbin/dtrace
BuildRequires: systemtap-sdt-devel
%define _without_macvtap --without-macvtap
%endif
-%if ! %{with_audit}
- %define _without_audit --without-audit
-%endif
-
%if ! %{with_dtrace}
%define _without_dtrace --without-dtrace
%endif
%{?_without_sanlock} \
%{?_without_libpcap} \
%{?_without_macvtap} \
- %{?_without_audit} \
+ --with-audit \
%{?_without_dtrace} \
--with-driver-modules \
%{?_with_firewalld} \