From 953261f5b659b8c4b81c05d3d93e7618a511de4d Mon Sep 17 00:00:00 2001
From: Mark Grondona <mgrondona@llnl.gov>
Date: Fri, 14 Feb 2003 23:49:33 +0000
Subject: [PATCH]  o some specfile cleanup

---
 slurm.spec.in | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/slurm.spec.in b/slurm.spec.in
index 1dded4e3d74..77ffeee2cf9 100644
--- a/slurm.spec.in
+++ b/slurm.spec.in
@@ -40,19 +40,21 @@ and static libraries for the SLURM API.
 
 %build
 %if %{_with_elan}
-	WITH_ELAN=--with-elan
+	WITHELAN=--with-elan
 %endif
 %if %{_with_authd}
-	WITH_AUTHD=--with-authd
+	WITHAUTHD=--with-authd
 %endif
 %if %{_with_totalview}
-	WITH_TOTALVIEW=--with-totalview
+	WITHTV=--with-totalview
 %endif
 
+PFX_FIX=--program-prefix=%{?_program_prefix:%{_program_prefix}} 
+
+WITHCONF=--with-slurm-conf=/etc/slurm
+
+%configure --enable-debug $PFX_FIX $WITHCONF $WITHELAN $WITHAUTHD $WITHTV
 
-%configure  --program-prefix=%{?_program_prefix:%{_program_prefix}} \
-            --with-slurm-conf=/etc/slurm --enable-debug             \
-            $WITH_ELAN $WITH_AUTHD $WITH_TOTALVIEW
 make
 
 %install
@@ -115,6 +117,11 @@ if [ "$1" = 0 ]; then
     fi
 fi
 
+%postun
+if [ "$1" = 0 ]; then
+    /sbin/ldconfig %{_libdir}
+fi
+
 
 %changelog
 * Sat Jan 26 2003 Joey Ekstrom <jcekstrom@llnl.gov> 
-- 
GitLab