rms/slurm: update slurm to v17.11.6
# $Id$
#
Name: %{pname}%{PROJ_DELIM}
-Version: 17.11.5
+Version: 17.11.6
%global rel 1
Release: %{rel}%{?dist}
Summary: Slurm Workload Manager
@@ -334,6 +334,17 @@ running on the node, or any user who has allocated resources on the node
according to the Slurm
%endif
+%if %{with cray}
+%package slurmsmwd
+Summary: support daemons and software for the Cray SMW
+Group: System Environment/Base
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Obsoletes: craysmw
+%description slurmsmwd
+support daeamons and software for the Cray SMW. Includes slurmsmwd which
+notifies slurm about failed nodes.
+%endif
+
#############################################################################
%prep
@@ -385,15 +396,20 @@ install -D -m644 etc/slurmdbd.service %{buildroot}/%{_unitdir}/slurmdbd.service
mv %{buildroot}/%{_libdir}/libpmi* %{buildroot}/%{_libdir}/slurmpmi
install -D -m644 contribs/cray/plugstack.conf.template %{buildroot}/%{_sysconfdir}/plugstack.conf.template
install -D -m644 contribs/cray/slurm.conf.template %{buildroot}/%{_sysconfdir}/slurm.conf.template
+ mkdir -p %{buildroot}/opt/modulefiles/slurm
+ test -f contribs/cray/opt_modulefiles_slurm &&
install -D -m644 contribs/cray/opt_modulefiles_slurm %{buildroot}/opt/modulefiles/slurm/%{version}-%{rel}
+ install -D -m644 contribs/cray/slurmsmwd/slurmsmwd.service %{buildroot}/%{_unitdir}/slurmsmwd.service
echo -e '#%Module\nset ModulesVersion "%{version}-%{rel}"' > %{buildroot}/opt/modulefiles/slurm/.version
%else
rm -f contribs/cray/opt_modulefiles_slurm
+ rm -f contribs/cray/slurmsmwd/slurmsmwd.service
rm -f %{buildroot}/%{_sysconfdir}/plugstack.conf.template
rm -f %{buildroot}/%{_sysconfdir}/slurm.conf.template
rm -f %{buildroot}/%{_sbindir}/capmc_suspend
rm -f %{buildroot}/%{_sbindir}/capmc_resume
rm -f %{buildroot}/%{_sbindir}/slurmconfgen.py
+ rm -f %{buildroot}/%{_sbindir}/slurmsmwd
%endif
install -D -m644 etc/cgroup.conf.example %{buildroot}/%{_sysconfdir}/cgroup.conf.example
@@ -683,6 +699,13 @@ rm -rf %{buildroot}
%endif
#############################################################################
+%if %{with cray}
+%files slurmsmwd
+%{_sbindir}/slurmsmwd
+%{_unitdir}/slurmsmwd.service
+%endif
+#############################################################################
+
%pre
# provide specific uid/gid to ensure that it is the same across the cluster
