diff --git a/SPECS/glusterfs.spec b/SPECS/glusterfs.spec
index d66ed1c..bae33a7 100644
--- a/SPECS/glusterfs.spec
+++ b/SPECS/glusterfs.spec
@@ -291,6 +291,9 @@ BuildRequires:    gperftools-devel
 %if ( 0%{?rhel} && 0%{?rhel} < 8 )
 BuildRequires:    python-ctypes
 %endif
+%if ( 0%{?rhel} && 0%{?rhel} == 8 )
+BuildRequires:    python36-rpm-macros
+%endif
 %if ( ( 0%{?_with_ipv6default:1} ) || ( 0%{!?_without_libtirpc:1} ) )
 BuildRequires:    libtirpc-devel
 %endif
@@ -1662,6 +1665,9 @@ exit 0
 %endif
 
 %changelog
+* Thu May 25 2023 Niels de Vos <ndevos@redhat.com>
+- include BuildRequires python36-rpm-macros for correct Python shebang
+
 * Mon Feb 13 2023 Niels de Vos <ndevos@redhat.com> - 11.0-1
 - GlusterFS 11.0 GA