If the SLURM RPMs are built with a non-standard value for _prefix, i.e.,
rpmbuild -ba --define="_prefix /opt/slurm" ...
the build ultimately breaks on trying to find the doc/ directory.
There's an odd construct in the %files list that presumably handles
systems that don't use the /usr/share structure. However, while it works
in the plain vanilla case, it breaks on my RHEL6 system with an
alternate _prefix location supplied. I'm using the patch below on my own
system, but presume it will be invalid on other non-Linux Unices.
Not a matter of supreme importance, but if anyone has a good idea on how
to fix this...
Andy
--- slurm.spec 2013-02-05 16:59:05.000000000 -0600
+++ slurm.spec.new 2013-02-21 12:20:39.552387929 -0600
@@ -582,7 +582,7 @@
%files -f slurm.files
%defattr(-,root,root,0755)
-%{_mandir}/../doc
+%{_prefix}/share/doc
%{_bindir}/s*
%exclude %{_bindir}/sjobexitmod
%exclude %{_bindir}/sjstat
--
Andy Riebs
Hewlett-Packard Company
High Performance Computing
+1-786-263-9743
My opinions are not necessarily those of HP