From: Chris Wright <chrisw@sous-sol.org>
Date: Fri, 9 Dec 2011 07:36:01 +0000 (-0800)
Subject: rhel: openvswitch.spec.in installs README as executable
X-Git-Tag: v1.4.0~47
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=17872e9e31ce88e14b3023ddab8f76aedb938e14;p=sliver-openvswitch.git

rhel: openvswitch.spec.in installs README as executable

Fix this rpmlint warning:

 W: spurious-executable-perm /usr/share/doc/openvswitch-1.4.0/README.RHEL

by specifying mode on install.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
---

diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in
index 14496e7dd..f9a4e12a8 100644
--- a/rhel/openvswitch.spec.in
+++ b/rhel/openvswitch.spec.in
@@ -47,7 +47,7 @@ for base in \
 done
 docdir=$RPM_BUILD_ROOT/usr/share/doc/openvswitch-%{version}
 install -d -m755 "$docdir"
-install rhel/README.RHEL "$docdir"
+install -m 0644 rhel/README.RHEL "$docdir"
 install python/compat/uuid.py $RPM_BUILD_ROOT/usr/share/openvswitch/python
 install python/compat/argparse.py $RPM_BUILD_ROOT/usr/share/openvswitch/python