forked from rpms/open-vm-tools
Use /sbin/ldconfig on older than Fedora 28 and RHEL 8 platforms.
This commit is contained in:
parent
37b8e5295a
commit
de4cf5cfe9
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
Name: open-vm-tools
|
Name: open-vm-tools
|
||||||
Version: %{toolsversion}
|
Version: %{toolsversion}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/vmware/%{name}
|
URL: https://github.com/vmware/%{name}
|
||||||
@ -110,6 +110,10 @@ Requires: tar
|
|||||||
Requires: which
|
Requires: which
|
||||||
# xmlsec1-openssl needs to be added explicitly
|
# xmlsec1-openssl needs to be added explicitly
|
||||||
Requires: xmlsec1-openssl
|
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
|
# open-vm-tools >= 10.0.0 do not require open-vm-tools-deploypkg
|
||||||
# provided by VMware. That functionality is now available as part
|
# 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
|
# upstream
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
|
||||||
%{?ldconfig}
|
%{?ldconfig}
|
||||||
|
%else
|
||||||
|
/sbin/ldconfig
|
||||||
|
%endif
|
||||||
# Setup mount point for Shared Folders
|
# Setup mount point for Shared Folders
|
||||||
# NOTE: Use systemd-detect-virt to detect VMware platform because
|
# NOTE: Use systemd-detect-virt to detect VMware platform because
|
||||||
# vmware-checkvm might misbehave on non-VMware platforms.
|
# vmware-checkvm might misbehave on non-VMware platforms.
|
||||||
@ -271,7 +279,11 @@ fi
|
|||||||
%systemd_preun run-vmblock\x2dfuse.mount
|
%systemd_preun run-vmblock\x2dfuse.mount
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
|
||||||
%{?ldconfig}
|
%{?ldconfig}
|
||||||
|
%else
|
||||||
|
/sbin/ldconfig
|
||||||
|
%endif
|
||||||
%systemd_postun_with_restart %{toolsdaemon}.service
|
%systemd_postun_with_restart %{toolsdaemon}.service
|
||||||
%systemd_postun_with_restart %{vgauthdaemon}.service
|
%systemd_postun_with_restart %{vgauthdaemon}.service
|
||||||
|
|
||||||
@ -344,6 +356,9 @@ fi
|
|||||||
%{_bindir}/vmware-vgauth-smoketest
|
%{_bindir}/vmware-vgauth-smoketest
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Feb 07 2020 Ravindra Kumar <ravindrakumar@vmware.com> - 11.0.5-2
|
||||||
- Added patch diskinfo-log-spew.patch.
|
- Added patch diskinfo-log-spew.patch.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user