Fixed few bugs related to vmtoolsd-init.service.

This commit is contained in:
Ravindra Kumar 2018-08-10 22:59:37 -07:00
parent 3f6bfd351d
commit 6296e846e8

View File

@ -28,14 +28,15 @@
Name: open-vm-tools Name: open-vm-tools
Version: %{toolsversion} Version: %{toolsversion}
Release: 3%{?dist} Release: 4%{?dist}
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
Group: Applications/System Group: Applications/System
License: GPLv2 License: GPLv2
URL: https://github.com/vmware/%{name} URL: https://github.com/vmware/%{name}
Source0: https://github.com/vmware/%{name}/releases/download/stable-%{version}/%{name}-%{version}-%{toolsbuild}.tar.gz Source0: https://github.com/vmware/%{name}/releases/download/stable-%{version}/%{name}-%{version}-%{toolsbuild}.tar.gz
Source1: %{toolsdaemon}.service Source1: %{toolsdaemon}-init.service
Source2: %{vgauthdaemon}.service Source2: %{toolsdaemon}.service
Source3: %{vgauthdaemon}.service
%if 0%{?rhel} >= 7 %if 0%{?rhel} >= 7
ExclusiveArch: x86_64 ExclusiveArch: x86_64
%else %else
@ -204,8 +205,9 @@ rm -fr %{buildroot}%{_sbindir} %{buildroot}/sbin/mount.vmhgfs
mv %{buildroot}%{_sysconfdir}/vmware-tools/vm-support %{buildroot}%{_bindir} mv %{buildroot}%{_sysconfdir}/vmware-tools/vm-support %{buildroot}%{_bindir}
# Systemd unit files # Systemd unit files
install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}-init.service
install -p -m 644 -D %{SOURCE2} %{buildroot}%{_unitdir}/%{vgauthdaemon}.service install -p -m 644 -D %{SOURCE2} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
install -p -m 644 -D %{SOURCE3} %{buildroot}%{_unitdir}/%{vgauthdaemon}.service
# 'make check' in open-vm-tools rebuilds docs and ends up regenerating # 'make check' in open-vm-tools rebuilds docs and ends up regenerating
# the font file. We can add %%check secion once 'make check' is fixed # the font file. We can add %%check secion once 'make check' is fixed
@ -224,10 +226,12 @@ if [ -f %{_bindir}/vmware-checkvm -a \
mkdir -p /mnt/hgfs mkdir -p /mnt/hgfs
fi fi
%systemd_post %{toolsdaemon}-init.service
%systemd_post %{vgauthdaemon}.service %systemd_post %{vgauthdaemon}.service
%systemd_post %{toolsdaemon}.service %systemd_post %{toolsdaemon}.service
%preun %preun
%systemd_preun %{toolsdaemon}-init.service
%systemd_preun %{toolsdaemon}.service %systemd_preun %{toolsdaemon}.service
%systemd_preun %{vgauthdaemon}.service %systemd_preun %{vgauthdaemon}.service
@ -253,6 +257,7 @@ if [ "$1" = "0" -a \
fi fi
%postun %postun
%systemd_postun_with_restart %{toolsdaemon}-init.service
%systemd_postun_with_restart %{toolsdaemon}.service %systemd_postun_with_restart %{toolsdaemon}.service
%systemd_postun_with_restart %{vgauthdaemon}.service %systemd_postun_with_restart %{vgauthdaemon}.service
@ -295,6 +300,7 @@ fi
%{_libdir}/%{name}/plugins/vmsvc/*.so %{_libdir}/%{name}/plugins/vmsvc/*.so
%{_datadir}/%{name}/ %{_datadir}/%{name}/
%{_udevrulesdir}/99-vmware-scsi-udev.rules %{_udevrulesdir}/99-vmware-scsi-udev.rules
%{_unitdir}/%{toolsdaemon}-init.service
%{_unitdir}/%{toolsdaemon}.service %{_unitdir}/%{toolsdaemon}.service
%{_unitdir}/%{vgauthdaemon}.service %{_unitdir}/%{vgauthdaemon}.service
@ -320,6 +326,9 @@ fi
%{_bindir}/vmware-vgauth-smoketest %{_bindir}/vmware-vgauth-smoketest
%changelog %changelog
* Fri Aug 10 2018 Ravindra Kumar <ravindrakumar@vmware.com> - 10.3.0-4
- Fixed few bugs related to vmtoolsd-init.service.
* Tue Aug 07 2018 Ravindra Kumar <ravindrakumar@vmware.com> - 10.3.0-3 * Tue Aug 07 2018 Ravindra Kumar <ravindrakumar@vmware.com> - 10.3.0-3
- Implement the https://pagure.io/packaging-committee/issue/506 guideline. - Implement the https://pagure.io/packaging-committee/issue/506 guideline.
- Added vmtoolsd-init.service per the guideline. - Added vmtoolsd-init.service per the guideline.