[open-vm-tools] Removed %defattr and BuildRoot.

ravindrakumar ravindrakumar at fedoraproject.org
Wed Apr 24 22:26:07 UTC 2013


commit 0074804eff4578b23b8ec708aeb849936e9bd267
Author: Ravindra Kumar <ravindrakumar at vmware.com>
Date:   Wed Apr 24 15:24:06 2013 -0700

    Removed %defattr and BuildRoot.
    
    - Added ExclusiveArch.
    - Replaced /usr/sbin/ldconfig with /sbin/ldconfig.

 open-vm-tools.spec |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/open-vm-tools.spec b/open-vm-tools.spec
index 6ff2568..3d883ec 100644
--- a/open-vm-tools.spec
+++ b/open-vm-tools.spec
@@ -6,12 +6,11 @@
 
 Name:             open-vm-tools
 Version:          %{toolsversion}
-Release:          11%{?dist}
+Release:          12%{?dist}
 Summary:          Open VMware Tools for virtual machines hosted on VMware
 Group:            Applications/System
 License:          GPLv2
 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
 Source1:          %{name}.service
 
@@ -38,6 +37,8 @@ Requires(post):         systemd
 Requires(preun):        systemd
 Requires(postun):       systemd
 
+ExclusiveArch:          %{ix86} x86_64
+
 %description
 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
@@ -107,22 +108,21 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
 # upstream
 
 %post
-/usr/sbin/ldconfig
+/sbin/ldconfig
 %systemd_post %{toolsdaemon}.service
 
 %preun
 %systemd_preun %{toolsdaemon}.service
 
 %postun
-/usr/sbin/ldconfig
+/sbin/ldconfig
 %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
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS README
 %config(noreplace) %{_sysconfdir}/pam.d/*
 %{_sysconfdir}/vmware-tools/
@@ -147,14 +147,12 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
 %{_unitdir}/%{toolsdaemon}.service
 
 %files desktop
-%defattr(-,root,root,-)
 %{_sysconfdir}/xdg/autostart/*.desktop
 %{_bindir}/vmware-user-suid-wrapper
 %{_bindir}/vmware-vmblock-fuse
 %{_libdir}/%{name}/plugins/vmusr/
 
 %files devel
-%defattr(-,root,root,-)
 %doc docs/api/build/*
 %{_includedir}/vmGuestLib/
 %{_libdir}/pkgconfig/*.pc
@@ -163,6 +161,11 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
 %{_libdir}/libvmtools.so
 
 %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
 - Removed the conditional steps for old versions of Fedora and RHEL.
 


More information about the scm-commits mailing list