mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 10:05:31 +00:00
spec: Introduce with_dmidecode
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>
This commit is contained in:
parent
33632cbeee
commit
0fef1fed0b
@ -94,6 +94,7 @@
|
||||
%define with_libssh2 0
|
||||
%define with_wireshark 0
|
||||
%define with_libssh 0
|
||||
%define with_dmidecode 0
|
||||
|
||||
# Finally set the OS / architecture specific special cases
|
||||
|
||||
@ -183,6 +184,10 @@
|
||||
%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
|
||||
@ -435,7 +440,7 @@ Requires: iproute-tc
|
||||
%endif
|
||||
|
||||
Requires: polkit >= 0.112
|
||||
%ifarch %{ix86} x86_64
|
||||
%if %{with_dmidecode}
|
||||
# For virConnectGetSysinfo
|
||||
Requires: dmidecode
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user