diff options
author | Flavio Leitner <fbl@redhat.com> | 2015-08-13 15:39:33 -0300 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-08-21 11:18:37 -0700 |
commit | b43666825cc29ef7c3bcef8017b52456548cc5ae (patch) | |
tree | 94553ff4aa9aca271729c5196ad25146d4c6ff69 /rhel | |
parent | 24605d4e58ff5d74845d9ae9339f723c0f13608f (diff) | |
download | openvswitch-b43666825cc29ef7c3bcef8017b52456548cc5ae.tar.gz |
rhel: Define rundir for older distros.
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>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/openvswitch-fedora.spec.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index 5198dbe1e..1e62341ed 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -16,6 +16,12 @@ # 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 |