diff --git a/slurm.spec b/slurm.spec
index 37545f1e211501c2c1fc7161ab4e3509f9ac4c45..7ceda188956404307bf499f6b97da7176b454e3a 100644
--- a/slurm.spec
+++ b/slurm.spec
@@ -550,7 +550,7 @@ rm -rf $RPM_BUILD_ROOT
 %config %{_sysconfdir}/cgroup.release_agent
 %config %{_sysconfdir}/slurm.conf.example
 %config %{_sysconfdir}/slurm.epilog.clean
-%exclude %{_mandir}/man1/sjobexitmod.1
+%exclude %{_mandir}/man1/sjobexit*
 %if %{slurm_with blcr}
 %exclude %{_mandir}/man1/srun_cr*
 %exclude %{_bindir}/srun_cr
@@ -705,7 +705,7 @@ rm -rf $RPM_BUILD_ROOT
 %files sjobexit
 %defattr(-,root,root)
 %{_bindir}/sjobexitmod
-%{_mandir}/man1/sjobexitmod.1
+%{_mandir}/man1/sjobexit*
 #############################################################################
 
 %files slurmdb-direct