To keep things maintainable, we want to have architecture handling
all in one spot instead of sprinkling %ifarch conditionals all over
the place.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
%define with_libssh2 0
%define with_wireshark 0
%define with_libssh 0
+%define with_dmidecode 0
# Finally set the OS / architecture specific special cases
%endif
%endif
+%ifarch %{ix86} x86_64
+ %define with_dmidecode 0%{!?_without_dmidecode:1}
+%endif
+
# Force QEMU to run as non-root
%define qemu_user qemu
%define qemu_group qemu
%endif
Requires: polkit >= 0.112
-%ifarch %{ix86} x86_64
+%if %{with_dmidecode}
# For virConnectGetSysinfo
Requires: dmidecode
%endif