From: Cole Robinson Date: Mon, 18 Mar 2019 19:01:28 +0000 (-0400) Subject: spec: Only call ldconfig on RHEL7 X-Git-Tag: v5.2.0-rc1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=769eab7d788f62652d5576693c0e655e47169d3c;p=thirdparty%2Flibvirt.git 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 79f3d31d19..5fa0b22f31 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