diff --git a/slurm.spec b/slurm.spec
index 48eb3d8f552ad655d6e2bc3ebc33062ea260cc72..18f91f4270bf88bd0697b8c398b20fb1342d48e0 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 %{?chaos:1}
+%if %{?chaos}0
 %slurm_with_opt sgijob
 %else
 %slurm_without_opt sgijob