]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Don't require mdevctl on RHEL 7
authorAndrea Bolognani <abologna@redhat.com>
Sat, 18 Jul 2020 22:43:08 +0000 (00:43 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 20 Jul 2020 07:02:50 +0000 (09:02 +0200)
mdevctl is a relatively new tool that's packaged for Fedora and
RHEL 8, but not for RHEL 7. Make the dependency conditional to
avoid the libvirt-daemon-driver-nodedev package becoming
uninstallable on that platform.

Fixes: 9691440ecbc7d9383a1410f1067a4f9221f2de2c
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
libvirt.spec.in

index f335a7e06ec1093927328c06793f27a0e697a8eb..c700bf8e5ce3de666b9e46f08f7d0007aa4b174c 100644 (file)
@@ -526,7 +526,9 @@ Requires: libvirt-libs = %{version}-%{release}
 # needed for device enumeration
 Requires: systemd >= 185
 # For managing persistent mediated devices
+%if 0%{?fedora} || 0%{?rhel} > 7
 Requires: mdevctl
+%endif
 
 %description daemon-driver-nodedev
 The nodedev driver plugin for the libvirtd daemon, providing