Removed unnecessary package dependency on 'dbus'. Moved 'vm-support' script to /usr/bin. Added a call to 'tools.set.version' RPC to inform VMware platform when open-vm-tools has been uninstalled.
This commit is contained in:
parent
f6ef9c2505
commit
17141dd91c
@ -27,7 +27,7 @@
|
||||
|
||||
Name: open-vm-tools
|
||||
Version: %{toolsversion}
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
||||
Group: Applications/System
|
||||
License: GPLv2
|
||||
@ -64,7 +64,6 @@ BuildRequires: systemd
|
||||
Requires: initscripts
|
||||
Requires: coreutils
|
||||
Requires: net-tools
|
||||
Requires: dbus
|
||||
Requires: grep
|
||||
Requires: sed
|
||||
Requires: systemd
|
||||
@ -135,6 +134,9 @@ find %{buildroot}%{_libdir} -name '*.la' -delete
|
||||
rm -fr %{buildroot}%{_defaultdocdir}
|
||||
rm -f docs/api/build/html/FreeSans.ttf
|
||||
|
||||
# Move vm-support to /usr/bin
|
||||
mv %{buildroot}%{_sysconfdir}/vmware-tools/vm-support %{buildroot}%{_bindir}
|
||||
|
||||
# Systemd unit files
|
||||
install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
|
||||
|
||||
@ -149,6 +151,14 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
|
||||
%preun
|
||||
%systemd_preun %{toolsdaemon}.service
|
||||
|
||||
# Tell VMware that open-vm-tools is being uninstalled
|
||||
if [ "$1" = "0" -a \
|
||||
-e %{_bindir}/vmware-checkvm -a \
|
||||
-e %{_bindir}/vmware-rpctool ] && \
|
||||
%{_bindir}/vmware-checkvm &> /dev/null; then
|
||||
%{_bindir}/vmware-rpctool 'tools.set.version 0' &> /dev/null || /bin/true
|
||||
fi
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%systemd_postun_with_restart %{toolsdaemon}.service
|
||||
@ -167,6 +177,7 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
|
||||
%{_bindir}/vmware-rpctool
|
||||
%{_bindir}/vmware-toolbox-cmd
|
||||
%{_bindir}/vmware-xferlogs
|
||||
%{_bindir}/vm-support
|
||||
%{_libdir}/libguestlib.so.*
|
||||
%{_libdir}/libhgfs.so.*
|
||||
%{_libdir}/libvmtools.so.*
|
||||
@ -196,6 +207,12 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
|
||||
%{_libdir}/libvmtools.so
|
||||
|
||||
%changelog
|
||||
* Wed Apr 23 2014 Ravindra Kumar <ravindrakumar@vmware.com> - 9.4.0-9
|
||||
- Removed unnecessary package dependency on 'dbus'
|
||||
- Moved 'vm-support' script to /usr/bin
|
||||
- Added a call to 'tools.set.version' RPC to inform VMware
|
||||
platform when open-vm-tools has been uninstalled
|
||||
|
||||
* Wed Mar 26 2014 Ravindra Kumar <ravindrakumar@vmware.com> - 9.4.0-8
|
||||
- Add missing package dependency on 'which' (BZ#1045709)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user