diff --git a/slurm.spec b/slurm.spec
index 5675ef7417c06569d7bef4250310334477f66ca4..aec16e3e595446b9a4a3803040bfa651ecb2299f 100644
--- a/slurm.spec
+++ b/slurm.spec
@@ -57,7 +57,7 @@
 
 # Build with sgijob on CHAOS systems
 #  (add elan too when it is available)
-%if 0%{$chaos}
+%if %{$chaos}0
 %slurm_with_opt sgijob
 %else
 %slurm_without_opt sgijob