diff --git a/libvirt.spec b/libvirt.spec
index 2900b81..591c3b9 100644
--- a/libvirt.spec
+++ b/libvirt.spec
@@ -26,7 +26,7 @@
 %endif
 %endif
 
-%if 0%{fedora} >= 8
+%if 0%{?fedora} >= 8
 %define with_polkit    0%{!?_without_polkit:1}
 %define with_xen_proxy 0
 %endif