diff --git a/SPECS/ceph.spec b/SPECS/ceph.spec
index 213404871198421f779121c55237c8f1047feeda..2abb2df4c88465c6c06f050f2c4f3e75eb89e5db 100644
--- a/SPECS/ceph.spec
+++ b/SPECS/ceph.spec
@@ -279,7 +279,7 @@ BuildRequires:	patch
 BuildRequires:	perl
 BuildRequires:	pkgconfig
 BuildRequires:	procps
-BuildRequires:	python36-rpm-macros
+BuildRequires:	python%{python3_pkgversion}-rpm-macros
 BuildRequires:	python%{python3_pkgversion}
 BuildRequires:	python%{python3_pkgversion}-devel
 BuildRequires:	python%{python3_pkgversion}-setuptools