Skip to content

Commit

Permalink
rhel: Define rundir for older distros.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Russell Bryant <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
fleitner authored and blp committed Aug 21, 2015
1 parent 24605d4 commit b436668
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rhel/openvswitch-fedora.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b436668

Please sign in to comment.