Accepting request 1130097 from network:cluster
- Add missing service file for slurmrestd (boo#1217711). (forwarded request 1130096 from eeich) OBS-URL: https://build.opensuse.org/request/show/1130097 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slurm?expand=0&rev=101
This commit is contained in:
commit
0db8ed8d95
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 30 18:52:44 UTC 2023 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
- Add missing service file for slurmrestd (boo#1217711).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 28 14:14:28 UTC 2023 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
- Explicitly create an Obsoletes: entry for each package version
|
||||||
|
that is obsoleted by the present version. These are all published
|
||||||
|
versions of the last two major releases as well as all minor
|
||||||
|
versions of the present release lower than the current one
|
||||||
|
(bsc#1216869 2nd part).
|
||||||
|
This prevents the current version to upgrade a old Slurm version
|
||||||
|
for which no upgrade path exists.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 20 15:29:55 UTC 2023 - Egbert Eich <eich@suse.com>
|
Mon Nov 20 15:29:55 UTC 2023 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
44
slurm.spec
44
slurm.spec
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
# Check file META in sources: update so_version to (API_CURRENT - API_AGE)
|
# Check file META in sources: update so_version to (API_CURRENT - API_AGE)
|
||||||
%define so_version 39
|
%define so_version 39
|
||||||
|
# Make sure to update `upgrades` as well!
|
||||||
%define ver 23.02.6
|
%define ver 23.02.6
|
||||||
%define _ver _23_02
|
%define _ver _23_02
|
||||||
#%%define rc_v 0rc1
|
#%%define rc_v 0rc1
|
||||||
@ -72,9 +73,26 @@ Conflicts: %{*} >= %{ver_m}.99 }
|
|||||||
%if 0%{?base_ver} > 0 && 0%{?base_ver} < %{lua:x=string.gsub(rpm.expand("%_ver"),"_","");print(x)}
|
%if 0%{?base_ver} > 0 && 0%{?base_ver} < %{lua:x=string.gsub(rpm.expand("%_ver"),"_","");print(x)}
|
||||||
%define upgrade 1
|
%define upgrade 1
|
||||||
%endif
|
%endif
|
||||||
|
%define upgrade_versions upgrades
|
||||||
|
%define do_obsoletes() %{lua:
|
||||||
|
local filename = rpm.expand("%_sourcedir") .. "/" .. rpm.expand("%upgrade_versions")
|
||||||
|
local version = rpm.expand("%version")
|
||||||
|
local arg = rpm.expand("%{1}")
|
||||||
|
local f = io.open(filename ,"r")
|
||||||
|
local em = false
|
||||||
|
if f~=nil then
|
||||||
|
f.close(f)
|
||||||
|
for line in io.lines(filename) do
|
||||||
|
if em then print('\\n') else em = true end
|
||||||
|
print("Obsoletes: " .. arg .. " = " .. line)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
print("Obsoletes: " .. arg .. " < " .. version)
|
||||||
|
end }
|
||||||
|
|
||||||
%define upgrade_dep() %{?upgrade: #
|
%define upgrade_dep() %{?upgrade: #
|
||||||
Provides: %{*} = %{version}
|
Provides: %{*} = %{version}
|
||||||
Obsoletes: %{*} < %{version}
|
%{do_obsoletes %{*}}
|
||||||
Conflicts: %{*} }
|
Conflicts: %{*} }
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1500
|
%if 0%{?suse_version} >= 1500
|
||||||
@ -145,7 +163,8 @@ Group: Productivity/Clustering/Computing
|
|||||||
URL: https://www.schedmd.com
|
URL: https://www.schedmd.com
|
||||||
Source: https://download.schedmd.com/slurm/%{pname}-%{dl_ver}.tar.bz2
|
Source: https://download.schedmd.com/slurm/%{pname}-%{dl_ver}.tar.bz2
|
||||||
#Source: https://github.com/SchedMD/slurm/archive/refs/tags/%{pname}-%{dl_ver}.tar.gz
|
#Source: https://github.com/SchedMD/slurm/archive/refs/tags/%{pname}-%{dl_ver}.tar.gz
|
||||||
Source1: slurm-rpmlintrc
|
Source1: %upgrade_versions
|
||||||
|
Source2: slurm-rpmlintrc
|
||||||
Source10: slurmd.xml
|
Source10: slurmd.xml
|
||||||
Source11: slurmctld.xml
|
Source11: slurmctld.xml
|
||||||
Source12: slurmdbd.xml
|
Source12: slurmdbd.xml
|
||||||
@ -662,6 +681,10 @@ install -p -m644 etc/slurmd.service etc/slurmdbd.service etc/slurmctld.service %
|
|||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmd
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmd
|
||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmdbd
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmdbd
|
||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmctld
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmctld
|
||||||
|
%if 0%{?build_slurmrestd}
|
||||||
|
install -p -m644 etc/slurmrestd.service %{buildroot}%{_unitdir}
|
||||||
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcslurmrestd
|
||||||
|
%endif
|
||||||
install -d -m 0755 %{buildroot}/%{_tmpfilesdir}/
|
install -d -m 0755 %{buildroot}/%{_tmpfilesdir}/
|
||||||
cat <<-EOF > %{buildroot}/%{_tmpfilesdir}/%{pname}.conf
|
cat <<-EOF > %{buildroot}/%{_tmpfilesdir}/%{pname}.conf
|
||||||
# Create a directory with permissions 0700 owned by user slurm, group slurm
|
# Create a directory with permissions 0700 owned by user slurm, group slurm
|
||||||
@ -971,6 +994,18 @@ rm -f %{buildroot}%{_libdir}/slurm/rest_auth_*.so
|
|||||||
%postun node
|
%postun node
|
||||||
%service_del_postun_without_restart slurmd.service
|
%service_del_postun_without_restart slurmd.service
|
||||||
|
|
||||||
|
%pre rest
|
||||||
|
%service_add_pre slurmrestd.service
|
||||||
|
|
||||||
|
%post rest
|
||||||
|
%service_add_post slurmrestd.service
|
||||||
|
|
||||||
|
%preun rest
|
||||||
|
%service_del_preun slurmrestd.service
|
||||||
|
|
||||||
|
%postun rest
|
||||||
|
%service_add_pre slurmrestd.service
|
||||||
|
|
||||||
%pre config %{?have_sysuser:-f %{pname}.pre}
|
%pre config %{?have_sysuser:-f %{pname}.pre}
|
||||||
%if 0%{!?have_sysuser:1}
|
%if 0%{!?have_sysuser:1}
|
||||||
getent group %slurm_g >/dev/null || groupadd -r %slurm_g
|
getent group %slurm_g >/dev/null || groupadd -r %slurm_g
|
||||||
@ -1023,6 +1058,9 @@ rm -rf /srv/slurm-testsuite/src /srv/slurm-testsuite/testsuite \
|
|||||||
%posttrans slurmdbd
|
%posttrans slurmdbd
|
||||||
%_restart_on_update slurmdbd
|
%_restart_on_update slurmdbd
|
||||||
|
|
||||||
|
%posttrans rest
|
||||||
|
%_restart_on_update slurmrestd
|
||||||
|
|
||||||
%if 0%{?sle_version} > 120200 || 0%{?suse_version} > 1320
|
%if 0%{?sle_version} > 120200 || 0%{?suse_version} > 1320
|
||||||
%define my_license %license
|
%define my_license %license
|
||||||
%else
|
%else
|
||||||
@ -1287,6 +1325,8 @@ rm -rf /srv/slurm-testsuite/src /srv/slurm-testsuite/testsuite \
|
|||||||
%if 0%{?build_slurmrestd}
|
%if 0%{?build_slurmrestd}
|
||||||
%files rest
|
%files rest
|
||||||
%{_sbindir}/slurmrestd
|
%{_sbindir}/slurmrestd
|
||||||
|
%{_sbindir}/rcslurmrestd
|
||||||
|
%{_unitdir}/slurmrestd.service
|
||||||
%{_mandir}/man8/slurmrestd.*
|
%{_mandir}/man8/slurmrestd.*
|
||||||
%{_libdir}/slurm/openapi_dbv0_0_39.so
|
%{_libdir}/slurm/openapi_dbv0_0_39.so
|
||||||
%{_libdir}/slurm/openapi_v0_0_39.so
|
%{_libdir}/slurm/openapi_v0_0_39.so
|
||||||
|
Loading…
Reference in New Issue
Block a user