diff --git a/libvirt.spec.in b/libvirt.spec.in
index cddf5c8..8638377 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -21,7 +21,7 @@
 %define with_xen_proxy 0
 %endif
 
-%if "%{fedora}"
+%if 0%{?fedora}
 %ifarch ppc64
 %define with_qemu 0
 %endif
