diff --git a/slurm.changes b/slurm.changes index 5e4691f..1d0215b 100644 --- a/slurm.changes +++ b/slurm.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Jan 24 17:31:18 UTC 2020 - Egbert Eich + +- Remove special OHPC compatibility macro: these settings should + be applied univerally. +- Add a Recommends for mariadb to slurm-slurmdbd: it is recommened + to run the database on the same machine as the daemon. + ------------------------------------------------------------------- Fri Jan 24 11:47:58 UTC 2020 - Dominique Leuenberger diff --git a/slurm.spec b/slurm.spec index d158ac4..39329ee 100644 --- a/slurm.spec +++ b/slurm.spec @@ -58,11 +58,6 @@ ExclusiveArch: do_not_build %{bcond_with pmix} %endif -# For anything newer than Leap 42.1 and SLE-12-SP1 build compatible to OpenHPC. -%if 0%{suse_version} > 1320 || 0%{?sle_version} >= 120200 -%define OHPC_BUILD 1 -%endif - %if 0%{?suse_version} >= 1220 || 0%{?sle_version} >= 120000 %define with_systemd 1 %endif @@ -324,6 +319,9 @@ Group: Productivity/Clustering/Computing Requires: %{name}-config = %{version} Requires: %{name}-plugins = %{version} Requires: %{name}-sql = %{version} +%if 0%{?suse_version} > 1310 +Recommends: mariadb +%endif %if 0%{?have_boolean_deps} Recommends: (%{name}-munge = %version if munge) %else @@ -569,7 +567,7 @@ install -D -m644 etc/cgroup.conf.example %{buildroot}/%{_sysconfdir}/%{pname}/cg install -D -m644 etc/layouts.d.power.conf.example %{buildroot}/%{_sysconfdir}/%{pname}/layouts.d/power.conf.example install -D -m644 etc/layouts.d.power_cpufreq.conf.example %{buildroot}/%{_sysconfdir}/%{pname}/layouts.d/power_cpufreq.conf.example install -D -m644 etc/layouts.d.unit.conf.example %{buildroot}/%{_sysconfdir}/%{pname}/layouts.d/unit.conf.example -install -D -m644 etc/slurm.conf.example %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf%{?OHPC_BUILD:.example} +install -D -m644 etc/slurm.conf.example %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf.example install -D -m600 etc/slurmdbd.conf.example %{buildroot}/%{_sysconfdir}/%{pname}/slurmdbd.conf install -D -m600 etc/slurmdbd.conf.example %{buildroot}%{_sysconfdir}/%{pname}/slurmdbd.conf.example install -D -m755 contribs/sjstat %{buildroot}%{_bindir}/sjstat @@ -577,7 +575,6 @@ install -D -m755 contribs/sgather/sgather %{buildroot}%{_bindir}/sgather cp contribs/pam_slurm_adopt/README ../README.pam_slurm_adopt cp contribs/pam/README ../README.pam_slurm -%if 0%{?OHPC_BUILD} # change slurm.conf for our needs head -n -2 %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf.example | grep -v ReturnToService > %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf sed -i 's#\(StateSaveLocation=\).*#\1%_localstatedir/lib/slurm#' %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf @@ -604,6 +601,7 @@ sed -i -e "s@PidFile=.*@PidFile=%{_localstatedir}/run/slurm/slurmdbd.pid@" \ %{buildroot}/%{_sysconfdir}/%{pname}/slurmdbd.conf # manage local state dir and a remote states save location mkdir -p %{buildroot}/%_localstatedir/lib/slurm +%if 0%{?with_systemd} sed -i -e "s@PIDFile=.*@PIDFile=%{_localstatedir}/run/slurm/slurmctld.pid@" \ -e "s@After=.*@After=network.target munge.service remote-fs.target@" \ %{buildroot}/%{_unitdir}/slurmctld.service @@ -1182,12 +1180,12 @@ exit 0 %dir %{_sysconfdir}/%{pname} %dir %{_sysconfdir}/%{pname}/layouts.d %config(noreplace) %{_sysconfdir}/%{pname}/slurm.conf -%{?OHPC_BUILD:%config %{_sysconfdir}/%{pname}/slurm.conf.example} +%config %{_sysconfdir}/%{pname}/slurm.conf.example %config(noreplace) %{_sysconfdir}/%{pname}/cgroup.conf %config(noreplace) %{_sysconfdir}/%{pname}/layouts.d/power.conf.example %config(noreplace) %{_sysconfdir}/%{pname}/layouts.d/power_cpufreq.conf.example %config(noreplace) %{_sysconfdir}/%{pname}/layouts.d/unit.conf.example -%{?OHPC_BUILD:%attr(0755, %slurm_u, %slurm_g) %_localstatedir/lib/slurm} +%attr(0755, %slurm_u, %slurm_g) %_localstatedir/lib/slurm %{?with_systemd:%{_tmpfilesdir}/%{pname}.conf} %dir %attr(0755, %slurm_u, %slurm_g)%{_localstatedir}/spool/slurm %config(noreplace) %{_sysconfdir}/logrotate.d/slurm*