summaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
authorJoe Stringer <joe@ovn.org>2017-05-18 15:44:51 -0700
committerJoe Stringer <joe@ovn.org>2017-05-18 16:02:02 -0700
commitb9b56b27b23926235338df4e2341ba893f55b39a (patch)
tree4ff7dafbf5d3b1daa5e2003e68359c20f08cd8d7 /rhel
parentf15010f6631fe6a7f960ab4a8fca6f777d92cf92 (diff)
downloadopenvswitch-b9b56b27b23926235338df4e2341ba893f55b39a.tar.gz
rhel: Fix openvswitch.spec install.
This is the equivalent change of 2f4f43bfddfd ("rhel: fix the fedora spec") for the regular openvswitch.spec. From that patch: When commit d0c961a99f57 ("lib/automake.mk: don't install runtime directories") landed, it broke RPM based builds since the requisite directories were no longer available. This commit adds those directories back when making RPMs so that the packagemanager can see them. Fixes: d0c961a99f57 ("lib/automake.mk: don't install runtime directories") Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Greg Rose <gvrose8192@gmail.com>
Diffstat (limited to 'rhel')
-rw-r--r--rhel/openvswitch.spec.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in
index 31a535c9f..412f3cd9d 100644
--- a/rhel/openvswitch.spec.in
+++ b/rhel/openvswitch.spec.in
@@ -107,7 +107,9 @@ rm \
(cd "$RPM_BUILD_ROOT" && rm -rf usr/%{_lib}/*.la)
(cd "$RPM_BUILD_ROOT" && rm -rf usr/include)
-install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch
+install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
+install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
+install -d -m 0755 $RPM_BUILD_ROOT/var/lib/openvswitch
copy_headers() {
src=$1