diff --git a/ceph.spec.in b/ceph.spec.in
index 82c9d073980..7e402e345ab 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -249,7 +249,7 @@ BuildRequires:  junit
 %description -n cephfs-java
 This package contains the Java libraries for the Ceph File System.
 
-%if (0%{?centos} || 0%{?opensuse} || 0%{?suse_version})
+%if 0%{?opensuse} || 0%{?suse_version})
 %debug_package
 %endif