diff --git a/castor.spec.in.head b/castor.spec.in.head
index 2f3fafe8da89098891ead90e0871909d2b961803..a13fe83e4411386eeaf64d8864288dd7d882add4 100644
--- a/castor.spec.in.head
+++ b/castor.spec.in.head
@@ -10,7 +10,7 @@
 # server side is only supported on x86_64 / SLC6
 %define compile_server 0
 %else
-%if "%{?dist}" == ".el6"
+%if "%{?dist}" == ".slc6"
 # rpmbuild --define "clientonly 1" ...
 %if 0%{?clientonly:1} > 0 
 %define compile_server 0