diff --git a/slurm.spec b/slurm.spec
index c3b04386cd4dd6d8a79cdc0170cd5f529b60b340..7f37b056102e8cd9e7311dcf521ea5cffa82cab7 100644
--- a/slurm.spec
+++ b/slurm.spec
@@ -355,6 +355,9 @@ install -D -m644 etc/federation.conf.example ${RPM_BUILD_ROOT}%{_sysconfdir}/fed
 %if %{slurm_with bluegene}
 rm ${RPM_BUILD_ROOT}%{_bindir}/srun
 install -D -m644 etc/bluegene.conf.example ${RPM_BUILD_ROOT}%{_sysconfdir}/bluegene.conf.example
+%else
+# Delete unpackaged file
+rm -f $RPM_BUILD_ROOT/%{_mandir}/man5/bluegene*
 %endif
 
 LIST=./aix.files