From 769eab7d788f62652d5576693c0e655e47169d3c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mar 22 2019 15:32:45 +0000 Subject: spec: Only call ldconfig on RHEL7 Since Fedora 28 (our minimum supported build), ldconfig is called automatically for us: https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets These changes appear to be implemented for RHEL > 7 as well, so only run ldconfig on RHEL7 Reviewed-by: Andrea Bolognani Signed-off-by: Cole Robinson --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 79f3d31..5fa0b22 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1480,12 +1480,16 @@ exit 0 %post client +%if 0%{?rhel} == 7 /sbin/ldconfig +%endif %systemd_post libvirt-guests.service %postun client +%if 0%{?rhel} == 7 /sbin/ldconfig +%endif %systemd_postun libvirt-guests.service %triggerun client -- libvirt < 0.9.4