diff --git a/slurm.spec.in b/slurm.spec.in
index 1dded4e3d742210040deae0a10251e4fd785e8fd..77ffeee2cf9d063612583feb43b1f25bfef0c5eb 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>