Blame slurm.spec

Philip Kovacs bff578
# Upstream tarballs use an additional release number
Philip Kovacs 9ce5ef
%global ups_rel 1
Philip Kovacs bff578
Philip Kovacs bff578
%if "%{ups_rel}" == "1"
Philip Kovacs bff578
%global name_version %{name}-%{version}
Philip Kovacs bff578
%else
Philip Kovacs bff578
%global name_version %{name}-%{version}-%{ups_rel}
Philip Kovacs bff578
%endif
Philip Kovacs bff578
Philip Kovacs 7629b5
# follow arch-inclusions for ucx
Philip Kovacs 7629b5
%ifarch aarch64 ppc64le x86_64
Philip Kovacs 7629b5
%bcond_without ucx
Philip Kovacs 7629b5
%else
Philip Kovacs 7629b5
%bcond_with ucx
Philip Kovacs 7629b5
%endif
Philip Kovacs 7629b5
Philip Kovacs 9be8f2
Name:           slurm
Philip Kovacs 9ce5ef
Version:        22.05.3
Philip Kovacs acac11
Release:        2%{?dist}
Philip Kovacs 9be8f2
Summary:        Simple Linux Utility for Resource Management
Philip Kovacs 9be8f2
License:        GPLv2 and BSD
Philip Kovacs 9be8f2
URL:            https://slurm.schedmd.com/
Philip Kovacs 9ce5ef
Source0:        https://download.schedmd.com/slurm/%{name_version}.tar.bz2
Philip Kovacs 9be8f2
Source1:        slurm.conf
Philip Kovacs 9be8f2
Source2:        slurmdbd.conf
Philip Kovacs 9be8f2
Source3:        slurm-sview.desktop
Philip Kovacs 9be8f2
Source4:        slurm-128x128.png
Philip Kovacs 175622
Source5:        slurm-setuser.in
Philip Kovacs 175622
Philip Kovacs b42ab1
# Release-style versioning of libslurmfull/libslurm_pmi
Philip Kovacs b42ab1
Patch0:         slurm_release_version.patch
Philip Kovacs 175622
Philip Kovacs bff578
# Build-related patches
Philip Kovacs 9ce5ef
Patch10:        slurm_check_version.patch
Philip Kovacs 175622
Patch11:        slurm_html_doc_path.patch
Philip Kovacs 9ce5ef
Patch12:        slurm_perlapi_rpaths.patch
Philip Kovacs 9be8f2
Philip Kovacs b42ab1
# Other patches
Philip Kovacs acac11
# https://bugs.schedmd.com/show_bug.cgi?id=14868
Philip Kovacs 9ce5ef
Patch20:        slurm_runtime_linking.patch
Philip Kovacs 188ee2
Patch21:        slurm_to_python3.patch
Philip Kovacs bff578
Philip Kovacs bff578
BuildRequires:  autoconf
Philip Kovacs bff578
BuildRequires:  automake
Philip Kovacs 9ce5ef
BuildRequires:  dbus-devel
Philip Kovacs bff578
BuildRequires:  desktop-file-utils
Philip Kovacs bff578
BuildRequires:  gcc
Philip Kovacs 44b9f7
BuildRequires:  make
Philip Kovacs 9ce5ef
BuildRequires:  man2html
Philip Kovacs 0015ad
BuildRequires:  perl-devel
Philip Kovacs bff578
BuildRequires:  perl-ExtUtils-MakeMaker
Philip Kovacs cb4fce
BuildRequires:  perl-interpreter
f36519
BuildRequires:  perl-macros
Philip Kovacs bff578
BuildRequires:  perl-podlators
Philip Kovacs acac11
%if (0%{?epel} != 7)
Philip Kovacs bff578
BuildRequires:  pkgconf
Philip Kovacs 2b29bd
%else
Philip Kovacs 2b29bd
BuildRequires:  pkgconfig
Philip Kovacs 2b29bd
%endif
Philip Kovacs bff578
BuildRequires:  pkgconfig(check)
Philip Kovacs 7629b5
BuildRequires:  pkgconfig(lua)
Philip Kovacs 0015ad
BuildRequires:  python3
Philip Kovacs bff578
BuildRequires:  systemd
Philip Kovacs 9be8f2
Philip Kovacs 7629b5
BuildRequires:  freeipmi-devel
Philip Kovacs 7629b5
BuildRequires:  gtk2-devel
Philip Kovacs 9be8f2
BuildRequires:  hdf5-devel
Philip Kovacs 7629b5
BuildRequires:  hwloc-devel
Philip Kovacs 7629b5
BuildRequires:  libcurl-devel
Philip Kovacs 7629b5
BuildRequires:  libssh2-devel
Philip Kovacs 7629b5
BuildRequires:  lz4-devel
Philip Kovacs 7629b5
BuildRequires:  mariadb-devel
Philip Kovacs 7629b5
BuildRequires:  munge-devel
Philip Kovacs 8a8ef7
BuildRequires:  numactl-devel
Philip Kovacs bff578
BuildRequires:  pam-devel
Philip Kovacs 7629b5
BuildRequires:  pmix-devel
Philip Kovacs 8a8ef7
BuildRequires:  rdma-core-devel
Philip Kovacs 7629b5
BuildRequires:  readline-devel
Philip Kovacs 7629b5
BuildRequires:  rrdtool-devel
Philip Kovacs 7629b5
BuildRequires:  zlib-devel
Philip Kovacs 9be8f2
Philip Kovacs 2b29bd
%if 0%{?fedora} && %{with ucx}
Philip Kovacs 7629b5
BuildRequires:  ucx-devel
Philip Kovacs 9be8f2
%endif
Philip Kovacs 9be8f2
Philip Kovacs acac11
# create slurm-slurmrestd package for Fedora >= 34 and EPEL7/8/9
Philip Kovacs 9ce5ef
%if (0%{?fedora} >= 34) || (0%{?epel} >= 7)
Philip Kovacs 1f0342
BuildRequires:  http-parser-devel
Philip Kovacs 2b29bd
BuildRequires:  json-c-devel
Philip Kovacs 2b29bd
BuildRequires:  libjwt-devel
Philip Kovacs 2b29bd
BuildRequires:  libyaml-devel
Philip Kovacs 1f0342
%endif
Philip Kovacs 1f0342
Philip Kovacs 8cb979
# exclude upstream-deprecated 32-bit architectures
Philip Kovacs 8cb979
ExcludeArch:    armv7hl
Philip Kovacs 8cb979
ExcludeArch:    i686
Philip Kovacs 8cb979
Philip Kovacs 9be8f2
Requires:       munge
Philip Kovacs 7629b5
Requires:       pmix
Philip Kovacs 2b29bd
%if 0%{?fedora} && %{with ucx}
Philip Kovacs 8a8ef7
Requires:       ucx
Philip Kovacs 8a8ef7
%endif
Philip Kovacs a3fb7f
%{?systemd_requires}
Philip Kovacs bff578
Philip Kovacs 9be8f2
%description
Philip Kovacs 9be8f2
Slurm is an open source, fault-tolerant, and highly scalable
Philip Kovacs a3fb7f
cluster management and job scheduling system for Linux clusters.
Philip Kovacs a3fb7f
Components include machine status, partition management,
Philip Kovacs a3fb7f
job management, scheduling and accounting modules.
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# -------------
Philip Kovacs 9be8f2
# Base Packages
Philip Kovacs 9be8f2
# -------------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%package devel
Philip Kovacs a3fb7f
Summary: Development package for Slurm
Philip Kovacs 9be8f2
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Philip Kovacs 9be8f2
%description devel
Philip Kovacs a3fb7f
Development package for Slurm.  This package includes the header files
Philip Kovacs a3fb7f
and libraries for the Slurm API.
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%package doc
Philip Kovacs 9be8f2
Summary: Slurm documentation
Philip Kovacs 9be8f2
%description doc
Philip Kovacs 9be8f2
Documentation package for Slurm.  Includes documentation and
Philip Kovacs 9be8f2
html-based configuration tools for Slurm.
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%package gui
Philip Kovacs 9be8f2
Summary: Slurm gui and visual tools
Philip Kovacs 9be8f2
Requires: %{name}%{?_isa} = %{version}-%{release}
Philip Kovacs 9be8f2
%description gui
Philip Kovacs d315fd
This package contains the Slurm visual tool sview and
Philip Kovacs d315fd
its respective man pages.
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%package libs
Philip Kovacs 9be8f2
Summary: Slurm shared libraries
Philip Kovacs 9be8f2
%description libs
Philip Kovacs 9be8f2
Slurm shared libraries.
Philip Kovacs 9be8f2
Philip Kovacs bff578
%package rrdtool
Philip Kovacs 9be8f2
Summary: Slurm rrdtool external sensor plugin
Philip Kovacs bff578
Requires: %{name}%{?_isa} = %{version}-%{release}
Philip Kovacs bff578
%description rrdtool
Philip Kovacs 9be8f2
Slurm external sensor plugin for rrdtool. This package is separated from
Philip Kovacs 9be8f2
the base plugins package due to gui dependencies which are unneeded if not
Philip Kovacs 9be8f2
using this plugin.
Philip Kovacs 9be8f2
Philip Kovacs bff578
%package slurmctld
Philip Kovacs bff578
Summary: Slurm controller daemon
Philip Kovacs bff578
Requires: %{name}%{?_isa} = %{version}-%{release}
Philip Kovacs bff578
%description slurmctld
Philip Kovacs bff578
Slurm controller daemon. Used to manage the job queue, schedule jobs,
Philip Kovacs bff578
and dispatch RPC messages to the slurmd processon the compute nodes
Philip Kovacs bff578
to launch jobs.
Philip Kovacs bff578
Philip Kovacs bff578
%package slurmd
Philip Kovacs bff578
Summary: Slurm compute node daemon
Philip Kovacs bff578
Requires: %{name}%{?_isa} = %{version}-%{release}
Philip Kovacs bff578
%description slurmd
Philip Kovacs bff578
Slurm compute node daemon. Used to launch jobs on compute nodes
Philip Kovacs bff578
Philip Kovacs 9be8f2
%package slurmdbd
Philip Kovacs 9be8f2
Summary: Slurm database daemon
Philip Kovacs bff578
Requires: %{name}%{?_isa} = %{version}-%{release}
Philip Kovacs 9be8f2
%description slurmdbd
Philip Kovacs 9be8f2
Slurm database daemon. Used to accept and process database RPCs and upload
Philip Kovacs 9be8f2
database changes to slurmctld daemons on each cluster.
Philip Kovacs 9be8f2
Philip Kovacs 9ce5ef
%if (0%{?fedora} >= 34) || (0%{?epel} >= 7)
Philip Kovacs 1f0342
%package slurmrestd
Philip Kovacs 1f0342
Summary: Slurm REST API deamon
Philip Kovacs 1f0342
Requires: %{name}%{?_isa} = %{version}-%{release}
Philip Kovacs 1f0342
%description slurmrestd
Philip Kovacs 1f0342
Slurm REST API daemon.  The slurmrestd daemon is designed to allow clients
Philip Kovacs 1f0342
to communicate with Slurm via a REST API.
Philip Kovacs 2b29bd
%endif
Philip Kovacs 1f0342
Philip Kovacs 9be8f2
# -----------------
Philip Kovacs 9be8f2
# Contribs Packages
Philip Kovacs 9be8f2
# -----------------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%package contribs
Philip Kovacs 9be8f2
Summary: Perl tools to print Slurm job state information
Philip Kovacs 9be8f2
Requires: %{name}-perlapi%{?_isa} = %{version}-%{release}
Philip Kovacs 9be8f2
%description contribs
Philip Kovacs 9be8f2
Slurm contribution package which includes the programs seff,
Philip Kovacs 9be8f2
sjobexitmod, sjstat and smail.  See their respective man pages
Philip Kovacs 9be8f2
for more information.
Philip Kovacs 9be8f2
Philip Kovacs b8cc3a
%package nss_slurm
Philip Kovacs b8cc3a
Summary: NSS plugin for slurm
Philip Kovacs b8cc3a
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Philip Kovacs b8cc3a
%description nss_slurm
Philip Kovacs b8cc3a
nss_slurm is an optional NSS plugin that can permit passwd and group resolution
Philip Kovacs b8cc3a
for a job on the compute node to be serviced through the local slurmstepd
Philip Kovacs b8cc3a
process, rather than through some alternate network-based service such as LDAP,
Philip Kovacs b8cc3a
SSSD, or NSLCD.
Philip Kovacs b8cc3a
Philip Kovacs 9be8f2
%package openlava
Philip Kovacs 9be8f2
Summary: Openlava/LSF wrappers for transition from OpenLava/LSF to Slurm
Philip Kovacs 9be8f2
Requires: %{name}-perlapi%{?_isa} = %{version}-%{release}
Philip Kovacs 9be8f2
%description openlava
Philip Kovacs 9be8f2
OpenLava wrapper scripts used for helping migrate from OpenLava/LSF to Slurm.
Philip Kovacs 9be8f2
Philip Kovacs bff578
%package pam_slurm
Philip Kovacs a3fb7f
Summary: PAM module for restricting access to compute nodes via Slurm
Philip Kovacs 9be8f2
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Philip Kovacs bff578
%description pam_slurm
Philip Kovacs a3fb7f
This module restricts access to compute nodes in a cluster where Slurm
Philip Kovacs a3fb7f
is in use.  Access is granted to root, any user with a Slurm-launched job
Philip Kovacs a3fb7f
currently running on the node, or any user who has allocated resources
Philip Kovacs a3fb7f
on the node according to Slurm.
Philip Kovacs 9be8f2
Philip Kovacs 0ff89d
%package perlapi
Philip Kovacs 0ff89d
Summary: Perl API to Slurm
Philip Kovacs 0ff89d
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Philip Kovacs 0ff89d
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Philip Kovacs 0ff89d
%description perlapi
Philip Kovacs 0ff89d
Perl API package for Slurm.  This package includes the perl API to provide a
Philip Kovacs 0ff89d
helpful interface to Slurm through Perl.
Philip Kovacs 0ff89d
Philip Kovacs 9be8f2
%package torque
Philip Kovacs 9be8f2
Summary: Torque/PBS wrappers for transition from Torque/PBS to Slurm
Philip Kovacs bff578
Requires: %{name}%{?_isa} = %{version}-%{release}
Philip Kovacs 9be8f2
Requires: %{name}-perlapi%{?_isa} = %{version}-%{release}
Philip Kovacs 9be8f2
%description torque
Philip Kovacs 9be8f2
Torque wrapper scripts used for helping migrate from Torque/PBS to Slurm.
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%prep
Philip Kovacs 9262a5
%autosetup -p1 -n %{name_version}
Philip Kovacs 9be8f2
cp %SOURCE1 etc/slurm.conf
Philip Kovacs 9be8f2
cp %SOURCE1 etc/slurm.conf.example
Philip Kovacs 9be8f2
cp %SOURCE2 etc/slurmdbd.conf
Philip Kovacs 9be8f2
cp %SOURCE2 etc/slurmdbd.conf.example
Philip Kovacs 9be8f2
mkdir -p share/applications
Philip Kovacs 9be8f2
mkdir -p share/icons/hicolor/128x128/apps
Philip Kovacs 9be8f2
cp %SOURCE3 share/applications/%{name}-sview.desktop
Philip Kovacs 9be8f2
cp %SOURCE4 share/icons/hicolor/128x128/apps/%{name}.png
Philip Kovacs 9be8f2
mkdir -p extras
Philip Kovacs bff578
cp %SOURCE5 extras/%{name}-setuser.in
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%build
Philip Kovacs a4e1fa
aclocal -I auxdir
Philip Kovacs a4e1fa
autoconf
Philip Kovacs a4e1fa
automake --no-force
Philip Kovacs 4bfe5d
# use -fcommon for gcc 10 to avoid multiple definition errors
Philip Kovacs 4bfe5d
export CFLAGS="%{build_cflags} -fcommon"
Philip Kovacs 0015ad
# use -z lazy to allow dlopen with unresolved symbols
Philip Kovacs 1ffcf5
export LDFLAGS="%{build_ldflags} -Wl,-z,lazy"
Philip Kovacs 9be8f2
%configure \
Philip Kovacs 9be8f2
  --prefix=%{_prefix} \
Philip Kovacs 9be8f2
  --sysconfdir=%{_sysconfdir}/%{name} \
Philip Kovacs 9be8f2
  --with-pam_dir=%{_libdir}/security \
Philip Kovacs 2b29bd
%if 0%{?fedora} && %{with ucx}
Philip Kovacs 8a8ef7
  --with-ucx=%{_prefix} \
Philip Kovacs 8a8ef7
%endif
Philip Kovacs 9ce5ef
  --enable-pam \
Philip Kovacs 9ce5ef
  --enable-really-no-cray \
Philip Kovacs 9be8f2
  --enable-shared \
Philip Kovacs bff578
  --enable-x11 \
Philip Kovacs 9be8f2
  --disable-static \
Philip Kovacs 9be8f2
  --disable-debug \
Philip Kovacs 9be8f2
  --disable-salloc-background \
Philip Kovacs 9be8f2
  --disable-partial_attach \
Philip Kovacs 9ce5ef
  --with-oneapi=no \
Philip Kovacs bff578
  --with-shared-libslurm \
Philip Kovacs bff578
  --without-rpath
Philip Kovacs 9be8f2
# patch libtool to remove rpaths
Philip Kovacs 9be8f2
sed -i 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
Philip Kovacs bff578
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
Philip Kovacs bff578
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
Philip Kovacs 9be8f2
Philip Kovacs bff578
# configure extras/slurm-setuser script
Philip Kovacs 9be8f2
sed -r '
Philip Kovacs 9be8f2
s|^dir_conf=.*|dir_conf="%{_sysconfdir}/%{name}"|g;
Philip Kovacs 9be8f2
s|^dir_log=.*|dir_log="%{_var}/log/%{name}"|g;
Philip Kovacs 9be8f2
s|^dir_run=.*|dir_run="%{_rundir}/%{name}"|g;
Philip Kovacs 9be8f2
s|^dir_spool=.*|dir_spool="%{_var}/spool/%{name}"|g;
Philip Kovacs 9be8f2
s|^dir_tmpfiles_d=.*|dir_tmpfiles_d="%{_tmpfilesdir}"|g;' \
Philip Kovacs bff578
    extras/%{name}-setuser.in > extras/%{name}-setuser
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# build base packages
Philip Kovacs 1173b3
%make_build
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# build contribs packages
Philip Kovacs 9be8f2
# INSTALLDIRS=vendor so perlapi goes to vendor_perl directory
Philip Kovacs 1173b3
%make_build PERL_MM_PARAMS="INSTALLDIRS=vendor" contrib
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%check
Philip Kovacs bff578
# The test binaries need LD_LIBRARY_PATH to find the compiled slurm library
Philip Kovacs bff578
# in the build tree.
Philip Kovacs d2a919
%make_build LD_LIBRARY_PATH="%{buildroot}%{_libdir};%{_libdir}" check
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%install
Philip Kovacs 9be8f2
%make_install
Philip Kovacs d2a919
%make_build DESTDIR=%{buildroot} install-contrib
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_unitdir}
Philip Kovacs 9be8f2
install -m 0644 -p etc/cgroup.conf.example \
Philip Kovacs 9be8f2
    %{buildroot}%{_sysconfdir}/%{name}
Philip Kovacs 9be8f2
install -m 0644 -p etc/cgroup.conf.example \
Philip Kovacs 9be8f2
    %{buildroot}%{_sysconfdir}/%{name}/cgroup.conf
Philip Kovacs 9be8f2
install -m 0644 -p etc/slurm.conf %{buildroot}%{_sysconfdir}/%{name}
Philip Kovacs 9be8f2
install -m 0644 -p etc/slurm.conf.example %{buildroot}%{_sysconfdir}/%{name}
Philip Kovacs 56a8b8
install -m 0600 -p etc/slurmdbd.conf %{buildroot}%{_sysconfdir}/%{name}
Philip Kovacs 56a8b8
install -m 0600 -p etc/slurmdbd.conf.example %{buildroot}%{_sysconfdir}/%{name}
Philip Kovacs 9be8f2
install -m 0644 -p etc/slurmctld.service %{buildroot}%{_unitdir}
Philip Kovacs 9be8f2
install -m 0644 -p etc/slurmd.service %{buildroot}%{_unitdir}
Philip Kovacs 9be8f2
install -m 0644 -p etc/slurmdbd.service %{buildroot}%{_unitdir}
Philip Kovacs 1f0342
install -m 0644 -p etc/slurmrestd.service %{buildroot}%{_unitdir}
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# tmpfiles.d file for creating /run/slurm dir after reboot
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_tmpfilesdir}
Philip Kovacs bff578
cat  >%{buildroot}%{_tmpfilesdir}/%{name}.conf <
Philip Kovacs 9be8f2
D %{_rundir}/%{name} 0755 root root -
Philip Kovacs 9be8f2
EOF
Philip Kovacs 9be8f2
Philip Kovacs bff578
# logrotate.d file for /var/log/slurm logging
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_var}/log/%{name}
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
Philip Kovacs 9be8f2
cat >%{buildroot}%{_sysconfdir}/logrotate.d/%{name} <
Philip Kovacs 08b8e5
%{_var}/log/%{name}/*.log {
Philip Kovacs 9be8f2
    missingok
Philip Kovacs 9be8f2
    notifempty
Philip Kovacs 9be8f2
    copytruncate
Philip Kovacs 9be8f2
    rotate 5
Philip Kovacs 9be8f2
}
Philip Kovacs 9be8f2
EOF
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# /var/run/slurm, /var/spool/slurm dirs, (ghost) pid files
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_rundir}/%{name}
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_var}/spool/%{name}/ctld
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_var}/spool/%{name}/d
Philip Kovacs 9be8f2
touch %{buildroot}%{_rundir}/%{name}/slurmctld.pid
Philip Kovacs 9be8f2
touch %{buildroot}%{_rundir}/%{name}/slurmd.pid
Philip Kovacs 9be8f2
touch %{buildroot}%{_rundir}/%{name}/slurmdbd.pid
Philip Kovacs 9be8f2
Philip Kovacs bff578
# install desktop file for sview GTK+ program
Philip Kovacs 9be8f2
desktop-file-install \
Philip Kovacs 9be8f2
    --dir=%{buildroot}%{_datadir}/applications \
Philip Kovacs 9be8f2
    share/applications/%{name}-sview.desktop
Philip Kovacs 9be8f2
Philip Kovacs bff578
# install desktop icon for sview GTK+ program
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
Philip Kovacs 9be8f2
install -m 0644 share/icons/hicolor/128x128/apps/%{name}.png \
Philip Kovacs 9be8f2
    %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
Philip Kovacs 9be8f2
Philip Kovacs 175622
# install the extras/slurm-setuser script
Philip Kovacs bff578
install -m 0755 extras/%{name}-setuser \
Philip Kovacs bff578
    %{buildroot}%{_bindir}/%{name}-setuser
Philip Kovacs bff578
Philip Kovacs 9be8f2
install -m 0755 contribs/sjstat %{buildroot}%{_bindir}/sjstat
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# fix perms on these files so debug info is extracted without error
Philip Kovacs 9be8f2
chmod 0755 %{buildroot}%{perl_vendorarch}/auto/Slurm/Slurm.so
Philip Kovacs 9be8f2
chmod 0755 %{buildroot}%{perl_vendorarch}/auto/Slurmdb/Slurmdb.so
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# build man pages for contribs perl scripts
Philip Kovacs 9be8f2
for prog in sjobexitmod sjstat mpiexec pbsnodes qalter qdel qhold qrerun qrls \
Philip Kovacs 9be8f2
    qstat qsub bjobs bkill bsub lsid
Philip Kovacs 9be8f2
do
Philip Kovacs 9be8f2
    rm -f %{buildroot}%{_mandir}/man1/${prog}.1
Philip Kovacs 9be8f2
    pod2man %{buildroot}%{_bindir}/${prog} > %{buildroot}%{_mandir}/man1/${prog}.1
Philip Kovacs 9be8f2
done
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# contribs docs
Philip Kovacs 9be8f2
install -d -m 0755 %{buildroot}%{_docdir}/%{name}/contribs/lua
Philip Kovacs 9be8f2
install -m 0644 contribs/README %{buildroot}%{_docdir}/%{name}/contribs
Philip Kovacs b8cc3a
install -m 0644 contribs/lua/*.lua %{buildroot}%{_docdir}/%{name}/contribs/lua
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# remove libtool archives
Philip Kovacs 9be8f2
find %{buildroot} -name \*.a -o -name \*.la | xargs rm -f
Philip Kovacs 188ee2
# remove libslurmfull, libslurm_pmi symlinks (non-development, internal libraries)
Philip Kovacs bff578
rm -rf %{buildroot}%{_libdir}/libslurmfull.so
Philip Kovacs 188ee2
rm -rf %{buildroot}%{_libdir}/libslurm_pmi.so
Philip Kovacs bff578
# remove auth_none plugin
Philip Kovacs bff578
rm -f %{buildroot}%{_libdir}/%{name}/auth_none.so
Philip Kovacs 9be8f2
# remove example plugins
Philip Kovacs 9be8f2
rm -f %{buildroot}%{_libdir}/%{name}/job_submit_defaults.so
Philip Kovacs 9be8f2
rm -f %{buildroot}%{_libdir}/%{name}/job_submit_logging.so
Philip Kovacs 9be8f2
rm -f %{buildroot}%{_libdir}/%{name}/job_submit_partition.so
Philip Kovacs 9be8f2
# remove cray files
Philip Kovacs 9ce5ef
rm -f %{buildroot}%{_libdir}/%{name}/*datawarp*.so
Philip Kovacs 9ce5ef
rm -f %{buildroot}%{_libdir}/%{name}/*cray*.so
Philip Kovacs 9be8f2
rm -f %{buildroot}%{_mandir}/man5/cray*
Philip Kovacs 9ce5ef
rm -f %{buildroot}%{_sbindir}/capmc*
Philip Kovacs 9ce5ef
rm -f %{buildroot}%{_sbindir}/slurmsmwd*
Philip Kovacs 9be8f2
# remove perl cruft
Philip Kovacs 9be8f2
rm -f %{buildroot}%{perl_vendorarch}/auto/Slurm*/.packlist
Philip Kovacs 9be8f2
rm -f %{buildroot}%{perl_vendorarch}/auto/Slurm*/Slurm*.bs
Philip Kovacs 9be8f2
rm -f %{buildroot}%{perl_archlib}/perllocal.pod
Philip Kovacs 2b29bd
%if 0%{?fedora} && (0%{?fedora} < 34)
Philip Kovacs 2b29bd
# remove unused slurmrestd service file
Philip Kovacs 2b29bd
rm -f %{buildroot}%{_unitdir}/slurmrestd.service
Philip Kovacs 2b29bd
%endif
Philip Kovacs 9be8f2
Philip Kovacs 0015ad
%ldconfig_scriptlets devel
Philip Kovacs 0015ad
%ldconfig_scriptlets libs
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# -----
Philip Kovacs 9be8f2
# Slurm
Philip Kovacs 9be8f2
# -----
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files
Philip Kovacs 9be8f2
%doc CONTRIBUTING.md DISCLAIMER META NEWS README.rst RELEASE_NOTES
Philip Kovacs 9be8f2
%license COPYING LICENSE.OpenSSL
Philip Kovacs bff578
%dir %{_libdir}/%{name}
Philip Kovacs bff578
%dir %{_rundir}/%{name}
Philip Kovacs 9be8f2
%dir %{_sysconfdir}/%{name}
Philip Kovacs bff578
%dir %{_var}/log/%{name}
Philip Kovacs bff578
%dir %{_var}/spool/%{name}
Philip Kovacs bff578
%dir %{_var}/spool/%{name}/ctld
Philip Kovacs bff578
%dir %{_var}/spool/%{name}/d
Philip Kovacs 0865bd
%config(noreplace) %{_sysconfdir}/%{name}/cgroup.conf
Philip Kovacs 9be8f2
%config(noreplace) %{_sysconfdir}/%{name}/slurm.conf
Philip Kovacs 08b8e5
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
Philip Kovacs 2baafb
%{_bindir}/sacct
Philip Kovacs 2baafb
%{_bindir}/sacctmgr
Philip Kovacs 2baafb
%{_bindir}/salloc
Philip Kovacs 2baafb
%{_bindir}/sattach
Philip Kovacs 2baafb
%{_bindir}/sbatch
Philip Kovacs 2baafb
%{_bindir}/sbcast
Philip Kovacs 2baafb
%{_bindir}/scancel
Philip Kovacs 2baafb
%{_bindir}/scontrol
Philip Kovacs 2baafb
%{_bindir}/scrontab
Philip Kovacs 2baafb
%{_bindir}/sdiag
Philip Kovacs 2baafb
%{_bindir}/sh5util
Philip Kovacs 2baafb
%{_bindir}/sinfo
Philip Kovacs 2baafb
%{_bindir}/sprio
Philip Kovacs 2baafb
%{_bindir}/squeue
Philip Kovacs 2baafb
%{_bindir}/sreport
Philip Kovacs 2baafb
%{_bindir}/srun
Philip Kovacs 2baafb
%{_bindir}/sshare
Philip Kovacs 2baafb
%{_bindir}/sstat
Philip Kovacs 2baafb
%{_bindir}/strigger
Philip Kovacs bff578
%{_bindir}/%{name}-setuser
Philip Kovacs 2baafb
%{_libdir}/%{name}/accounting_storage_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/acct_gather_*.so
Philip Kovacs 9ce5ef
%if (0%{?fedora} >= 34) || (0%{?epel} >= 7)
Philip Kovacs 90d638
%{_libdir}/%{name}/auth_jwt.so
Philip Kovacs 90d638
%endif
Philip Kovacs 2baafb
%{_libdir}/%{name}/auth_munge.so
Philip Kovacs 1c41f4
%{_libdir}/%{name}/burst_buffer_lua.so
Philip Kovacs 1c41f4
%{_libdir}/%{name}/cgroup_v1.so
Philip Kovacs 9ce5ef
%{_libdir}/%{name}/cgroup_v2.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/cli_filter_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/core_spec_none.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/cred_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/ext_sensors_none.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/gres_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/gpu_generic.so
Philip Kovacs 85fdf9
%{_libdir}/%{name}/hash_k12.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/job_container_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/job_submit_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/jobacct_gather_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/jobcomp_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/launch_slurm.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/mcs_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/mpi_*.so
Philip Kovacs 1c41f4
%{_libdir}/%{name}/node_features_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/power_none.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/preempt_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/prep_script.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/priority_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/proctrack_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/route_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/sched_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/select_*.so
Philip Kovacs 1c41f4
%{_libdir}/%{name}/serializer_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/site_factor_none.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/slurmctld_nonstop.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/switch_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/task_*.so
Philip Kovacs 2baafb
%{_libdir}/%{name}/topology_*.so
Philip Kovacs 2baafb
%{_mandir}/man1/sacct.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sacctmgr.1*
Philip Kovacs 2baafb
%{_mandir}/man1/salloc.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sattach.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sbatch.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sbcast.1*
Philip Kovacs 2baafb
%{_mandir}/man1/scancel.1*
Philip Kovacs 2baafb
%{_mandir}/man1/scontrol.1*
Philip Kovacs 2baafb
%{_mandir}/man1/scrontab.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sdiag.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sh5util.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sinfo.1*
Philip Kovacs 2baafb
%{_mandir}/man1/slurm.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sprio.1*
Philip Kovacs 2baafb
%{_mandir}/man1/squeue.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sreport.1*
Philip Kovacs 2baafb
%{_mandir}/man1/srun.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sshare.1*
Philip Kovacs 2baafb
%{_mandir}/man1/sstat.1*
Philip Kovacs 2baafb
%{_mandir}/man1/strigger.1*
Philip Kovacs 2baafb
%{_mandir}/man5/acct_gather.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man5/burst_buffer.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man5/cgroup.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man5/ext_sensors.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man5/gres.conf.5*
Philip Kovacs 751916
%{_mandir}/man5/helpers.conf.5*
Philip Kovacs 948cbb
%{_mandir}/man5/job_container.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man5/knl.conf.5*
Philip Kovacs 9ce5ef
%{_mandir}/man5/mpi.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man5/nonstop.conf.5*
Philip Kovacs 1c41f4
%{_mandir}/man5/oci.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man5/slurm.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man5/topology.conf.5*
Philip Kovacs 2baafb
%{_mandir}/man8/slurmrestd.8*
Philip Kovacs 2baafb
%{_mandir}/man8/spank.8*
Philip Kovacs bff578
%{_sysconfdir}/%{name}/cgroup*.conf.example
Philip Kovacs bff578
%{_sysconfdir}/%{name}/slurm.conf.example
Philip Kovacs bff578
%{_tmpfilesdir}/slurm.conf
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# -----------
Philip Kovacs 9be8f2
# Slurm-devel
Philip Kovacs 9be8f2
# -----------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files devel
Philip Kovacs bff578
%dir %{_includedir}/%{name}
Philip Kovacs 9be8f2
%dir %{_libdir}/%{name}/src
Philip Kovacs 9be8f2
%dir %{_libdir}/%{name}/src/sattach
Philip Kovacs 9be8f2
%dir %{_libdir}/%{name}/src/srun
Philip Kovacs 1c41f4
%{_includedir}/%{name}/pmi*.h
Philip Kovacs bff578
%{_includedir}/%{name}/slurm.h
Philip Kovacs bff578
%{_includedir}/%{name}/slurm_errno.h
Philip Kovacs 1c41f4
%{_includedir}/%{name}/slurm_version.h
Philip Kovacs bff578
%{_includedir}/%{name}/slurmdb.h
Philip Kovacs bff578
%{_includedir}/%{name}/smd_ns.h
Philip Kovacs bff578
%{_includedir}/%{name}/spank.h
Philip Kovacs 1c41f4
%{_libdir}/libpmi.so
Philip Kovacs 1c41f4
%{_libdir}/libpmi2.so
Philip Kovacs 2baafb
%{_libdir}/libslurm.so
Philip Kovacs bff578
%{_libdir}/%{name}/src/sattach/sattach.wrapper.c
Philip Kovacs 9be8f2
%{_libdir}/%{name}/src/srun/srun.wrapper.c
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# ---------
Philip Kovacs 9be8f2
# Slurm-doc
Philip Kovacs 9be8f2
# ---------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files doc
Philip Kovacs 9ce5ef
%{_docdir}
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# ---------
Philip Kovacs 9be8f2
# Slurm-gui
Philip Kovacs 9be8f2
# ---------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files gui
Philip Kovacs 9be8f2
%{_bindir}/sview
Philip Kovacs 9be8f2
%{_datadir}/applications/*.desktop
Philip Kovacs 9be8f2
%{_datadir}/icons/hicolor/*/apps/%{name}.png
Philip Kovacs 9be8f2
%{_mandir}/man1/sview.1*
Philip Kovacs 9be8f2
Philip Kovacs acac11
%if (0%{?epel} == 7)
Philip Kovacs 2b29bd
%post gui
Philip Kovacs 2b29bd
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Philip Kovacs 2b29bd
Philip Kovacs 2b29bd
%postun gui
Philip Kovacs 2b29bd
if [ $1 -eq 0 ] ; then
Philip Kovacs 2b29bd
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
Philip Kovacs 2b29bd
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Philip Kovacs 2b29bd
fi
Philip Kovacs 2b29bd
Philip Kovacs 2b29bd
%posttrans gui
Philip Kovacs 2b29bd
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Philip Kovacs 2b29bd
%endif
Philip Kovacs 2b29bd
Philip Kovacs 9be8f2
# ----------
Philip Kovacs 9be8f2
# Slurm-libs
Philip Kovacs 9be8f2
# ----------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files libs
Philip Kovacs 1c41f4
%{_libdir}/libpmi.so.0*
Philip Kovacs 1c41f4
%{_libdir}/libpmi2.so.0*
Philip Kovacs 9be8f2
%{_libdir}/libslurm.so.*
Philip Kovacs bff578
%{_libdir}/libslurmfull-*.so
Philip Kovacs 188ee2
%{_libdir}/libslurm_pmi-*.so
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# -------------
Philip Kovacs bff578
# Slurm-rrdtool
Philip Kovacs 9be8f2
# -------------
Philip Kovacs 9be8f2
Philip Kovacs bff578
%files rrdtool
Philip Kovacs bff578
%{_libdir}/%{name}/ext_sensors_rrd.so
Philip Kovacs 9be8f2
Philip Kovacs 1f0342
# ---------------
Philip Kovacs 1f0342
# Slurm-slurmctld
Philip Kovacs 1f0342
# ---------------
Philip Kovacs 9be8f2
Philip Kovacs bff578
%files slurmctld
Philip Kovacs bff578
%{_mandir}/man8/slurmctld.8*
Philip Kovacs bff578
%{_sbindir}/slurmctld
Philip Kovacs bff578
%{_unitdir}/slurmctld.service
Philip Kovacs bff578
%ghost %{_rundir}/%{name}/slurmctld.pid
Philip Kovacs 9be8f2
Philip Kovacs 1f0342
# ------------
Philip Kovacs 1f0342
# Slurm-slurmd
Philip Kovacs 1f0342
# ------------
Philip Kovacs 9be8f2
Philip Kovacs bff578
%files slurmd
Philip Kovacs bff578
%{_mandir}/man8/slurmd.8*
Philip Kovacs bff578
%{_mandir}/man8/slurmstepd.8*
Philip Kovacs bff578
%{_sbindir}/slurmd
Philip Kovacs bff578
%{_sbindir}/slurmstepd
Philip Kovacs bff578
%{_unitdir}/slurmd.service
Philip Kovacs bff578
%ghost %{_rundir}/%{name}/slurmd.pid
Philip Kovacs 9be8f2
Philip Kovacs 1f0342
# --------------
Philip Kovacs 1f0342
# Slurm-slurmdbd
Philip Kovacs 1f0342
# --------------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files slurmdbd
Philip Kovacs 9be8f2
%config(noreplace) %{_sysconfdir}/%{name}/slurmdbd.conf
Philip Kovacs bff578
%{_libdir}/%{name}/accounting_storage_mysql.so
Philip Kovacs 9be8f2
%{_mandir}/man5/slurmdbd.conf.5*
Philip Kovacs 9be8f2
%{_mandir}/man8/slurmdbd.8*
Philip Kovacs bff578
%{_sbindir}/slurmdbd
Philip Kovacs bff578
%{_sysconfdir}/%{name}/slurmdbd.conf.example
Philip Kovacs bff578
%{_unitdir}/slurmdbd.service
Philip Kovacs bff578
%ghost %{_rundir}/%{name}/slurmdbd.pid
Philip Kovacs 9be8f2
Philip Kovacs 1f0342
# ----------------
Philip Kovacs 1f0342
# Slurm-slurmrestd
Philip Kovacs 1f0342
# ----------------
Philip Kovacs 1f0342
Philip Kovacs acac11
%if (0%{?fedora} >= 34) || (0%{?epel} >= 7)
Philip Kovacs 1f0342
%files slurmrestd
Philip Kovacs 9ce5ef
%{_libdir}/%{name}/openapi*.so
Philip Kovacs 9ce5ef
%{_libdir}/%{name}/rest*.so
Philip Kovacs 1f0342
%{_sbindir}/slurmrestd
Philip Kovacs 1f0342
%{_unitdir}/slurmrestd.service
Philip Kovacs 2b29bd
%endif
Philip Kovacs 1f0342
Philip Kovacs 9be8f2
# --------------
Philip Kovacs 9be8f2
# Slurm-contribs
Philip Kovacs 9be8f2
# --------------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files contribs
Philip Kovacs bff578
%dir %{_docdir}/%{name}
Philip Kovacs bff578
%dir %{_docdir}/%{name}/contribs
Philip Kovacs bff578
%dir %{_docdir}/%{name}/contribs/lua
Philip Kovacs bff578
%{_docdir}/%{name}/contribs/README
Philip Kovacs b8cc3a
%{_docdir}/%{name}/contribs/lua/*.lua
Philip Kovacs 9be8f2
%{_bindir}/seff
Philip Kovacs 9be8f2
%{_bindir}/sgather
Philip Kovacs 9be8f2
%{_bindir}/sjobexitmod
Philip Kovacs 9be8f2
%{_bindir}/sjstat
Philip Kovacs 9be8f2
%{_bindir}/smail
Philip Kovacs 9be8f2
%{_mandir}/man1/sgather.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/sjobexitmod.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/sjstat.1*
Philip Kovacs 9be8f2
Philip Kovacs b8cc3a
# ---------------
Philip Kovacs b8cc3a
# Slurm-nss_slurm
Philip Kovacs b8cc3a
# ---------------
Philip Kovacs b8cc3a
Philip Kovacs b8cc3a
%files nss_slurm
Philip Kovacs b8cc3a
%{_libdir}/libnss_slurm.so.2
Philip Kovacs b8cc3a
Philip Kovacs 9be8f2
# --------------
Philip Kovacs 9be8f2
# Slurm-openlava
Philip Kovacs 9be8f2
# --------------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files openlava
Philip Kovacs 9be8f2
%{_bindir}/bjobs
Philip Kovacs 9be8f2
%{_bindir}/bkill
Philip Kovacs 9be8f2
%{_bindir}/bsub
Philip Kovacs 9be8f2
%{_bindir}/lsid
Philip Kovacs 9be8f2
%{_mandir}/man1/bjobs.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/bkill.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/bsub.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/lsid.1*
Philip Kovacs 9be8f2
Philip Kovacs 0ff89d
# ---------------
Philip Kovacs 0ff89d
# Slurm-pam_slurm
Philip Kovacs 0ff89d
# ---------------
Philip Kovacs 0ff89d
Philip Kovacs 0ff89d
%files pam_slurm
Philip Kovacs 0ff89d
%{_libdir}/security/pam_slurm.so
Philip Kovacs 0ff89d
%{_libdir}/security/pam_slurm_adopt.so
Philip Kovacs 0ff89d
Philip Kovacs 9be8f2
# -------------
Philip Kovacs 9be8f2
# Slurm-perlapi
Philip Kovacs 9be8f2
# -------------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files perlapi
Philip Kovacs 9be8f2
%dir %{perl_vendorarch}/Slurm
Philip Kovacs bff578
%dir %{perl_vendorarch}/auto/Slurm
Philip Kovacs bff578
%dir %{perl_vendorarch}/auto/Slurmdb
Philip Kovacs bff578
%{_mandir}/man3/Slurm*.3pm*
Philip Kovacs bff578
%{perl_vendorarch}/Slurm.pm
Philip Kovacs 9be8f2
%{perl_vendorarch}/Slurm/*.pm
Philip Kovacs 9be8f2
%{perl_vendorarch}/Slurmdb.pm
Philip Kovacs 9be8f2
%{perl_vendorarch}/auto/Slurm/Slurm.so
Philip Kovacs 9be8f2
%{perl_vendorarch}/auto/Slurmdb/Slurmdb.so
Philip Kovacs 9be8f2
%{perl_vendorarch}/auto/Slurmdb/autosplit.ix
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
# ------------
Philip Kovacs 9be8f2
# Slurm-torque
Philip Kovacs 9be8f2
# ------------
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%files torque
Philip Kovacs 9be8f2
%{_bindir}/generate_pbs_nodefile
Philip Kovacs 9be8f2
%{_bindir}/mpiexec
Philip Kovacs 9be8f2
%{_bindir}/pbsnodes
Philip Kovacs 9be8f2
%{_bindir}/qalter
Philip Kovacs 9be8f2
%{_bindir}/qdel
Philip Kovacs 9be8f2
%{_bindir}/qhold
Philip Kovacs 9be8f2
%{_bindir}/qrerun
Philip Kovacs 9be8f2
%{_bindir}/qrls
Philip Kovacs 9be8f2
%{_bindir}/qstat
Philip Kovacs 9be8f2
%{_bindir}/qsub
Philip Kovacs bff578
%{_libdir}/%{name}/job_submit_pbs.so
Philip Kovacs bff578
%{_libdir}/%{name}/spank_pbs.so
Philip Kovacs 9be8f2
%{_mandir}/man1/pbsnodes.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/qalter.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/qdel.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/qhold.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/qrerun.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/qrls.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/qstat.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/qsub.1*
Philip Kovacs 9be8f2
%{_mandir}/man1/mpiexec.1*
Philip Kovacs 9be8f2
Philip Kovacs bff578
%post slurmctld
Philip Kovacs 9be8f2
%systemd_post slurmctld.service
Philip Kovacs 9be8f2
Philip Kovacs bff578
%preun slurmctld
Philip Kovacs 9be8f2
%systemd_preun slurmctld.service
Philip Kovacs 9be8f2
Philip Kovacs bff578
%postun slurmctld
Philip Kovacs 0d2eb3
%systemd_postun_with_restart slurmctld.service
Philip Kovacs 9be8f2
Philip Kovacs bff578
%post slurmd
Philip Kovacs bff578
%systemd_post slurmd.service
Philip Kovacs 9be8f2
Philip Kovacs bff578
%preun slurmd
Philip Kovacs bff578
%systemd_preun slurmd.service
Philip Kovacs 9be8f2
Philip Kovacs bff578
%postun slurmd
Philip Kovacs bff578
%systemd_postun_with_restart slurmd.service
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%post slurmdbd
Philip Kovacs 9be8f2
%systemd_post slurmdbd.service
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%preun slurmdbd
Philip Kovacs 9be8f2
%systemd_preun slurmdbd.service
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%postun slurmdbd
Philip Kovacs 9be8f2
%systemd_postun_with_restart slurmdbd.service
Philip Kovacs 9be8f2
Philip Kovacs 9be8f2
%changelog
Philip Kovacs acac11
%autochangelog