From f66ddbbed6602d8b74ba7d6670910b6360f91645 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Wed, 26 Mar 2014 16:09:33 -0700
Subject: [PATCH] Add test for %insserv_cleanup in slurm.spec

The macros is not defined on RHEL6.5
see bug 326
---
 slurm.spec | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/slurm.spec b/slurm.spec
index 222f6bf308f..7cae71d32b9 100644
--- a/slurm.spec
+++ b/slurm.spec
@@ -1051,7 +1051,10 @@ if [ "$1" = 0 ]; then
 	/sbin/ldconfig %{_libdir}
     fi
 fi
+%if %{?insserv_cleanup}0
 %insserv_cleanup
+%endif
+
 #############################################################################
 
 
-- 
GitLab