Removed %defattr and BuildRoot.

- Added ExclusiveArch.
- Replaced /usr/sbin/ldconfig with /sbin/ldconfig.
This commit is contained in:
Ravindra Kumar 2013-04-24 15:24:06 -07:00
parent 42f92c73e3
commit 0074804eff

View File

@ -6,12 +6,11 @@
Name: open-vm-tools Name: open-vm-tools
Version: %{toolsversion} Version: %{toolsversion}
Release: 11%{?dist} Release: 12%{?dist}
Summary: Open VMware Tools for virtual machines hosted on VMware Summary: Open VMware Tools for virtual machines hosted on VMware
Group: Applications/System Group: Applications/System
License: GPLv2 License: GPLv2
URL: http://%{name}.sourceforge.net/ URL: http://%{name}.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/stable-%{majorversion}.x/%{name}-%{version}-%{toolsbuild}.tar.gz Source0: http://sourceforge.net/projects/%{name}/files/%{name}/stable-%{majorversion}.x/%{name}-%{version}-%{toolsbuild}.tar.gz
Source1: %{name}.service Source1: %{name}.service
@ -38,6 +37,8 @@ Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
ExclusiveArch: %{ix86} x86_64
%description %description
The %{name} project is an open source implementation of VMware Tools. It The %{name} project is an open source implementation of VMware Tools. It
is a suite of open source virtualization utilities and drivers to improve the is a suite of open source virtualization utilities and drivers to improve the
@ -107,22 +108,21 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
# upstream # upstream
%post %post
/usr/sbin/ldconfig /sbin/ldconfig
%systemd_post %{toolsdaemon}.service %systemd_post %{toolsdaemon}.service
%preun %preun
%systemd_preun %{toolsdaemon}.service %systemd_preun %{toolsdaemon}.service
%postun %postun
/usr/sbin/ldconfig /sbin/ldconfig
%systemd_postun_with_restart %{toolsdaemon}.service %systemd_postun_with_restart %{toolsdaemon}.service
%post devel -p /usr/sbin/ldconfig %post devel -p /sbin/ldconfig
%postun devel -p /usr/sbin/ldconfig %postun devel -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README %doc AUTHORS ChangeLog COPYING NEWS README
%config(noreplace) %{_sysconfdir}/pam.d/* %config(noreplace) %{_sysconfdir}/pam.d/*
%{_sysconfdir}/vmware-tools/ %{_sysconfdir}/vmware-tools/
@ -147,14 +147,12 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
%{_unitdir}/%{toolsdaemon}.service %{_unitdir}/%{toolsdaemon}.service
%files desktop %files desktop
%defattr(-,root,root,-)
%{_sysconfdir}/xdg/autostart/*.desktop %{_sysconfdir}/xdg/autostart/*.desktop
%{_bindir}/vmware-user-suid-wrapper %{_bindir}/vmware-user-suid-wrapper
%{_bindir}/vmware-vmblock-fuse %{_bindir}/vmware-vmblock-fuse
%{_libdir}/%{name}/plugins/vmusr/ %{_libdir}/%{name}/plugins/vmusr/
%files devel %files devel
%defattr(-,root,root,-)
%doc docs/api/build/* %doc docs/api/build/*
%{_includedir}/vmGuestLib/ %{_includedir}/vmGuestLib/
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
@ -163,6 +161,11 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
%{_libdir}/libvmtools.so %{_libdir}/libvmtools.so
%changelog %changelog
* Wed Apr 24 2013 Ravindra Kumar <ravindrakumar at vmware.com> - 9.2.2-12
- Removed %%defattr and BuildRoot.
- Added ExclusiveArch.
- Replaced /usr/sbin/ldconfig with /sbin/ldconfig.
* Mon Apr 22 2013 Ravindra Kumar <ravindrakumar at vmware.com> - 9.2.2-11 * Mon Apr 22 2013 Ravindra Kumar <ravindrakumar at vmware.com> - 9.2.2-11
- Removed the conditional steps for old versions of Fedora and RHEL. - Removed the conditional steps for old versions of Fedora and RHEL.