Use /sbin/ldconfig on older than Fedora 28 and RHEL 8 platforms.

This commit is contained in:
Ravindra Kumar 2020-03-24 19:30:13 -07:00
parent 37b8e5295a
commit de4cf5cfe9

View File

@ -28,7 +28,7 @@
Name: open-vm-tools
Version: %{toolsversion}
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
License: GPLv2
URL: https://github.com/vmware/%{name}
@ -110,6 +110,10 @@ Requires: tar
Requires: which
# xmlsec1-openssl needs to be added explicitly
Requires: xmlsec1-openssl
%if 0%{?fedora} < 28 || 0%{?rhel} < 8
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%endif
# open-vm-tools >= 10.0.0 do not require open-vm-tools-deploypkg
# provided by VMware. That functionality is now available as part
@ -214,7 +218,11 @@ install -p -m 644 -D %{SOURCE4} %{buildroot}%{_modulesloaddir}/open-vm-tools.con
# upstream
%post
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
%{?ldconfig}
%else
/sbin/ldconfig
%endif
# Setup mount point for Shared Folders
# NOTE: Use systemd-detect-virt to detect VMware platform because
# vmware-checkvm might misbehave on non-VMware platforms.
@ -271,7 +279,11 @@ fi
%systemd_preun run-vmblock\x2dfuse.mount
%postun
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
%{?ldconfig}
%else
/sbin/ldconfig
%endif
%systemd_postun_with_restart %{toolsdaemon}.service
%systemd_postun_with_restart %{vgauthdaemon}.service
@ -344,6 +356,9 @@ fi
%{_bindir}/vmware-vgauth-smoketest
%changelog
* Tue Mar 24 2020 Ravindra Kumar <ravindrakumar@vmware.com> - 11.0.5-3
- Use /sbin/ldconfig on older than Fedora 28 and RHEL 8 platforms.
* Fri Feb 07 2020 Ravindra Kumar <ravindrakumar@vmware.com> - 11.0.5-2
- Added patch diskinfo-log-spew.patch.