rhel: Define rundir for older distros.
authorFlavio Leitner <fbl@redhat.com>
Thu, 13 Aug 2015 18:39:33 +0000 (15:39 -0300)
committerBen Pfaff <blp@nicira.com>
Fri, 21 Aug 2015 18:18:37 +0000 (11:18 -0700)
Some older distros might not define _rundir yet so in this case the RPM
build breaks.  This patch defines it to Fedora's default.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
rhel/openvswitch-fedora.spec.in

index 5198dbe..1e62341 100644 (file)
 # Enable PIE, bz#955181
 %global _hardened_build 1
 
+# some distros (e.g: RHEL-7) don't define _rundir macro yet
+# Fedora 15 onwards uses /run as _rundir
+%if 0%{!?_rundir:1}
+%define _rundir /run
+%endif
+
 Name: openvswitch
 Summary: Open vSwitch
 Group: System Environment/Daemons