963 lines
31 KiB
RPMSpec
963 lines
31 KiB
RPMSpec
# The following options are supported:
|
|
# --with server_name=hostname
|
|
# --with homedir=directory
|
|
# --with[out] rcp
|
|
# --with[out] gui
|
|
# --with[out] tcl
|
|
|
|
# Hrm, should we default to the name of the buildhost? That seems only
|
|
# slightly better than picking a hostname at random. This is exactly the kind
|
|
# of compile-time default that doesn't work well with distributable packages.
|
|
# Let's force the issue with the non-sensical "localhost".
|
|
#
|
|
# Note that "localhost" doesn't actually work. You must either define the
|
|
# correct hostname here, pass '--with server_name=foo' to rpmbuild, or be sure
|
|
# that $PBS_SERVER_HOME/server_name contains the correct hostname.
|
|
%global server_name localhost
|
|
|
|
%global use_rcp 0
|
|
%global use_tcl 1
|
|
%global build_gui 1
|
|
|
|
# these are non-defaults, but fit better into most RPM-based systems
|
|
%global torquehomedir %{_localstatedir}/lib/torque
|
|
|
|
# --with/--without processing
|
|
# first, error if conflicting options are used
|
|
%{?_with_rcp: %{?_without_rcp: %{error: both _with_rcp and _without_rcp}}}
|
|
%{?_with_tcl: %{?_without_tcl: %{error: both _with_tcl and _without_tcl}}}
|
|
%{?_with_gui: %{?_without_gui: %{error: both _with_gui and _without_gui}}}
|
|
|
|
# did we find any --with options?
|
|
%{?_with_rcp: %global use_rcp 1}
|
|
%{?_with_tcl: %global use_tcl 1}
|
|
%{?_with_gui: %global build_gui 1}
|
|
|
|
%{?_with_server_name:%global server_name %(set -- %{_with_server_name}; echo $1 | grep -v with | sed 's/=//')}
|
|
%{?_with_homedir:%global torquehomedir %(set -- %{_with_homedir}; echo $1 | grep -v with | sed 's/=//')}
|
|
|
|
# did we find any --without options?
|
|
%{?_without_rcp: %global use_rcp 0}
|
|
%{?_without_tcl: %global use_tcl 0}
|
|
%{?_without_gui: %global build_gui 0}
|
|
|
|
# Set up all options as disabled
|
|
%global rcpflags --with-rcp=/usr/bin/scp
|
|
%global tclflags --without-tcl
|
|
%global guiflags --disable-gui
|
|
|
|
# Enable options that we want
|
|
%if %{use_rcp}
|
|
%global rcpflags --with-rcp=mom_rcp
|
|
%endif
|
|
|
|
%if %{build_gui}
|
|
%global guiflags --enable-gui
|
|
%endif
|
|
|
|
%if %{use_tcl}
|
|
%if %{build_gui}
|
|
%global tclflags --with-tcl --with-tk
|
|
%else
|
|
%global tclflags --with-tcl --without-tk
|
|
%endif
|
|
%endif
|
|
|
|
# finish up the configs...
|
|
%global server_nameflags --with-default-server=%{server_name}
|
|
|
|
Name: torque
|
|
Version: 2.5.3
|
|
Release: 3%{?dist}
|
|
Summary: Tera-scale Open-source Resource and QUEue manager
|
|
Source0: http://www.clusterresources.com/downloads/%{name}/%{name}-%{version}.tar.gz
|
|
Source2: xpbs.desktop
|
|
Source3: xpbsmon.desktop
|
|
Source4: xpbs.png
|
|
Source5: xpbsmon.png
|
|
Source6: README.Fedora
|
|
Source7: pbs-config-multilib
|
|
Source8: config
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=528060
|
|
Patch0: torque-cond-touch.patch
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=631256
|
|
Patch1: torque-create-request.patch
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=643194
|
|
Patch2: torque-start-start.patch
|
|
License: OpenPBS
|
|
Group: System Environment/Daemons
|
|
URL: http://www.clusterresources.com/products/torque/
|
|
%if 0%{?el4}%{?el5}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
%endif
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: pam-devel
|
|
BuildRequires: xauth
|
|
BuildRequires: readline-devel
|
|
BuildRequires: ncurses-devel
|
|
%if %{use_tcl}
|
|
BuildRequires: tcl-devel
|
|
%endif
|
|
%if %{build_gui}
|
|
BuildRequires: tk-devel
|
|
%endif
|
|
|
|
#doxygen appears to be broken in rawhide at the moment
|
|
#Dec 9th 2010 so don't build the drmaa documentation
|
|
#for now.
|
|
%if ! 0%{?fc15}
|
|
%global doxydoc 1
|
|
%endif
|
|
|
|
%if 0%{?doxydoc}
|
|
BuildRequires: graphviz
|
|
BuildRequires: doxygen
|
|
%if "%{?rhel}" == "5"
|
|
BuildRequires: graphviz-gd
|
|
%endif
|
|
%if %{?fedora}%{!?fedora:0} >= 9
|
|
BuildRequires: tex(latex)
|
|
%else
|
|
%if %{?rhel}%{!?rhel:0} >= 6
|
|
BuildRequires: tex(latex)
|
|
%else
|
|
BuildRequires: tetex-latex
|
|
%endif
|
|
%endif
|
|
%endif
|
|
|
|
%description
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package holds just a few shared files and directories.
|
|
|
|
%package client
|
|
Group: Applications/System
|
|
Summary: Client part of TORQUE
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
Requires(posttrans): chkconfig
|
|
Requires(preun): chkconfig
|
|
|
|
%description client
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package holds the command-line client programs.
|
|
|
|
%package docs
|
|
Group: Documentation
|
|
Summary: Documentation files for TORQUE
|
|
Requires: %{name} = %{version}-%{release}
|
|
%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description docs
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package holds the documentation files.
|
|
|
|
%package gui
|
|
Group: Applications/System
|
|
Summary: Graphical clients for TORQUE
|
|
Requires: torque-client = %{version}-%{release}
|
|
|
|
%description gui
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package holds the graphical clients.
|
|
|
|
%package libs
|
|
Summary: Run-time libs for programs which will use the %{name} library
|
|
Group: Development/Libraries
|
|
Requires: torque = %{version}-%{release}
|
|
Obsoletes: libtorque < 2.4.8-2
|
|
Provides: libtorque = %{version}-%{release}
|
|
|
|
%description libs
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package includes the shared libraries necessary for running TORQUE
|
|
programs.
|
|
|
|
%package devel
|
|
Summary: Development tools for programs which will use the %{name} library
|
|
Group: Development/Libraries
|
|
Requires: torque-libs = %{version}-%{release}
|
|
Obsoletes: libtorque-devel < 2.4.8-2
|
|
Provides: libtorque-devel = %{version}-%{release}
|
|
|
|
%description devel
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package includes the header files and static libraries
|
|
necessary for developing programs which will use %{name}.
|
|
|
|
%package mom
|
|
Group: System Environment/Daemons
|
|
Summary: Node execution daemon for TORQUE
|
|
Requires: torque-libs = %{version}-%{release}
|
|
%if ! %{use_rcp}
|
|
Requires: openssh-clients
|
|
%endif
|
|
Requires(post): chkconfig
|
|
Requires(preun): chkconfig
|
|
Requires(preun): initscripts
|
|
|
|
|
|
%description mom
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package holds the execute daemon required on every node.
|
|
|
|
%package pam
|
|
Summary: PAM module for TORQUE MOM nodes
|
|
Group: System Environment/Base
|
|
|
|
%description pam
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
A simple PAM module to authorize users on PBS MOM nodes with a running job.
|
|
|
|
%package scheduler
|
|
Group: System Environment/Daemons
|
|
Summary: Simple fifo scheduler for TORQUE
|
|
Requires: torque-libs = %{version}-%{release}
|
|
Requires(post): chkconfig
|
|
Requires(preun): chkconfig
|
|
Requires(preun): initscripts
|
|
|
|
%description scheduler
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package holds the fifo C scheduler.
|
|
|
|
%package server
|
|
Group: System Environment/Daemons
|
|
Summary: The main part of TORQUE
|
|
Requires: torque-libs = %{version}-%{release}
|
|
%if ! %{use_rcp}
|
|
Requires: openssh-server
|
|
%endif
|
|
Requires(post): chkconfig
|
|
Requires(preun): chkconfig
|
|
Requires(preun): initscripts
|
|
|
|
%description server
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
This package holds the server.
|
|
|
|
%package drmaa
|
|
Group: System Environment/Daemons
|
|
Summary: Runtime files for the drmaa interface.
|
|
Requires: torque-libs = %{version}-%{release}
|
|
|
|
%description drmaa
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
Runtime files for working the DRMAA interface to torque.
|
|
DRMAA is "Distributed Resource Management Application API"
|
|
|
|
|
|
%package drmaa-devel
|
|
Group: System Environment/Daemons
|
|
Summary: Development files for the drmaa interface.
|
|
Requires: torque-drmaa = %{version}-%{release}
|
|
Requires: torque-devel = %{version}-%{release}
|
|
|
|
%description drmaa-devel
|
|
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
|
|
manager providing control over batch jobs and distributed compute nodes.
|
|
TORQUE is based on OpenPBS version 2.3.12 and incorporates scalability,
|
|
fault tolerance, and feature extension patches provided by USC, NCSA, OSC,
|
|
the U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many
|
|
other leading edge HPC organizations.
|
|
|
|
Developement files for working the DRMAA interface to torque.
|
|
DRMAA is "Distributed Resource Management Application API"
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
install -pm 644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
|
|
%{SOURCE6} %{SOURCE7} %{SOURCE8} .
|
|
# rm x bit on some documentation.
|
|
chmod 644 torque.setup
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -Wno-overlength-strings"
|
|
%configure --includedir=%{_includedir}/torque \
|
|
--with-server-home=%{torquehomedir} --with-pam=/%{_lib}/security \
|
|
--with-sendmail=%{_sbindir}/sendmail --disable-static \
|
|
--enable-drmaa \
|
|
%{server_nameflags} %{guiflags} %{tclflags} %{rcpflags}
|
|
|
|
|
|
cp -vf pbs-config-multilib pbs-config
|
|
make %{?_smp_mflags}
|
|
|
|
for daemon in pbs_mom pbs_sched pbs_server
|
|
do
|
|
sed -i -e 's|^PBS_HOME=.*|PBS_HOME=%{torquehomedir}|' \
|
|
-e 's|^PBS_DAEMON=.*|PBS_DAEMON=%{_sbindir}/'$daemon'|' \
|
|
-e 's|chkconfig: 345|chkconfig: -|' \
|
|
contrib/init.d/$daemon
|
|
done
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} INSTALL="install -p" install
|
|
|
|
# remove files we don't need
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
rm -f %{buildroot}%{_libdir}/*/buildindex
|
|
rm -f %{buildroot}/%{_lib}/security/pam_pbssimpleauth.{a,la}
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
touch -r pbs-config-multilib %{buildroot}%{_bindir}/pbs-config
|
|
|
|
# install initscripts
|
|
mkdir -p %{buildroot}%{_initrddir}
|
|
install -p -m 755 contrib/init.d/pbs_mom %{buildroot}%{_initrddir}/pbs_mom
|
|
install -p -m 755 contrib/init.d/pbs_sched %{buildroot}%{_initrddir}/pbs_sched
|
|
install -p -m 755 contrib/init.d/pbs_server %{buildroot}%{_initrddir}/pbs_server
|
|
|
|
%if %{build_gui}
|
|
# This is really trivial, but cleans up an rpmlint warning
|
|
sed -i -e 's|%{_lib}/../||' %{buildroot}%{_bindir}/xpbs
|
|
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications xpbs.desktop
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications xpbsmon.desktop
|
|
install -d %{buildroot}%{_datadir}/pixmaps
|
|
install -p -m0644 xpbs.png xpbsmon.png %{buildroot}%{_datadir}/pixmaps
|
|
%endif
|
|
|
|
# alternatives stuff
|
|
for bin in qalter qdel qhold qrls qselect qstat qsub
|
|
do
|
|
mv %{buildroot}%{_bindir}/$bin %{buildroot}%{_bindir}/${bin}-torque
|
|
mv %{buildroot}%{_mandir}/man1/${bin}.1 \
|
|
%{buildroot}%{_mandir}/man1/${bin}-torque.1
|
|
done
|
|
|
|
# Relocate configuration files.
|
|
mkdir -p %{buildroot}%{_sysconfdir}/torque
|
|
pushd %{buildroot}%{torquehomedir}
|
|
mv pbs_environment %{buildroot}%{_sysconfdir}/torque
|
|
mv server_name %{buildroot}%{_sysconfdir}/torque
|
|
ln -s %{_sysconfdir}/torque/pbs_environment .
|
|
ln -s %{_sysconfdir}/torque/server_name .
|
|
popd
|
|
|
|
# Relocate mom_logs to /var/log
|
|
mkdir -p %{buildroot}%{_var}/log/torque
|
|
pushd %{buildroot}%{torquehomedir}
|
|
mv mom_logs %{buildroot}%{_var}/log/torque
|
|
ln -s %{_var}/log/torque/mom_logs .
|
|
popd
|
|
|
|
# Install mom_priv/config file to /etc/torque/mom
|
|
mkdir -p %{buildroot}%{_sysconfdir}/torque/mom
|
|
install -p -m 644 config %{buildroot}%{_sysconfdir}/torque/mom/config
|
|
pushd %{buildroot}%{torquehomedir}/mom_priv
|
|
ln -s %{_sysconfdir}/torque/mom/config .
|
|
popd
|
|
|
|
# Install sched_config files to /etc/torque/sched
|
|
mkdir -p %{buildroot}%{_sysconfdir}/torque/sched
|
|
pushd %{buildroot}%{torquehomedir}/sched_priv
|
|
for CONFIG in dedicated_time holidays resource_group sched_config ; do
|
|
mv $CONFIG %{buildroot}%{_sysconfdir}/torque/sched/.
|
|
ln -s %{_sysconfdir}/torque/sched/$CONFIG .
|
|
done
|
|
popd
|
|
|
|
# Relocate sched_logs to /var/log
|
|
pushd %{buildroot}%{torquehomedir}
|
|
mv sched_logs %{buildroot}%{_var}/log/torque
|
|
ln -s %{_var}/log/torque/sched_logs .
|
|
popd
|
|
|
|
# Relocate server_logs to /var/log
|
|
pushd %{buildroot}%{torquehomedir}
|
|
mv server_logs %{buildroot}%{_var}/log/torque
|
|
ln -s %{_var}/log/torque/server_logs .
|
|
popd
|
|
|
|
|
|
# Move drmaa man pages to correct place
|
|
# and delete the three copies of the same documentation.
|
|
|
|
%if 0%{?doxydoc}
|
|
mv %{buildroot}%{_defaultdocdir}/torque-drmaa/man/man3/* %{buildroot}%{_mandir}/man3/.
|
|
rm -rf %{buildroot}%{_defaultdocdir}/torque-drmaa/html/*
|
|
rm -rf %{buildroot}%{_defaultdocdir}/torque-drmaa/latex/*
|
|
# Include drmaa.pdf later from the src tree.
|
|
rm %{buildroot}%{_defaultdocdir}/torque-drmaa/drmaa.pdf
|
|
%endif
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post
|
|
if grep -q "PBS services" /etc/services;then
|
|
: PBS services already installed
|
|
else
|
|
cat<<__EOF__>>/etc/services
|
|
# Standard PBS services
|
|
pbs 15001/tcp # pbs server (pbs_server)
|
|
pbs 15001/udp # pbs server (pbs_server)
|
|
pbs_mom 15002/tcp # mom to/from server
|
|
pbs_mom 15002/udp # mom to/from server
|
|
pbs_resmom 15003/tcp # mom resource management requests
|
|
pbs_resmom 15003/udp # mom resource management requests
|
|
pbs_sched 15004/tcp # scheduler
|
|
pbs_sched 15004/udp # scheduler
|
|
__EOF__
|
|
fi
|
|
|
|
%posttrans client
|
|
/usr/sbin/alternatives --install %{_bindir}/qsub qsub %{_bindir}/qsub-torque 10 \
|
|
--slave %{_mandir}/man1/qsub.1.gz qsub-man \
|
|
%{_mandir}/man1/qsub-torque.1.gz \
|
|
--slave %{_bindir}/qalter qalter %{_bindir}/qalter-torque \
|
|
--slave %{_mandir}/man1/qalter.1.gz qalter-man \
|
|
%{_mandir}/man1/qalter-torque.1.gz \
|
|
--slave %{_bindir}/qdel qdel %{_bindir}/qdel-torque \
|
|
--slave %{_mandir}/man1/qdel.1.gz qdel-man \
|
|
%{_mandir}/man1/qdel-torque.1.gz \
|
|
--slave %{_bindir}/qhold qhold %{_bindir}/qhold-torque \
|
|
--slave %{_mandir}/man1/qhold.1.gz qhold-man \
|
|
%{_mandir}/man1/qhold-torque.1.gz \
|
|
--slave %{_bindir}/qrls qrls %{_bindir}/qrls-torque \
|
|
--slave %{_mandir}/man1/qrls.1.gz qrls-man \
|
|
%{_mandir}/man1/qrls-torque.1.gz \
|
|
--slave %{_bindir}/qselect qselect %{_bindir}/qselect-torque \
|
|
--slave %{_mandir}/man1/qselect.1.gz qselect-man \
|
|
%{_mandir}/man1/qselect-torque.1.gz \
|
|
--slave %{_bindir}/qstat qstat %{_bindir}/qstat-torque \
|
|
--slave %{_mandir}/man1/qstat.1.gz qstat-man \
|
|
%{_mandir}/man1/qstat-torque.1.gz
|
|
|
|
%preun client
|
|
if [ $1 -eq 0 ]; then
|
|
/usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque
|
|
fi
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
%postun libs -p /sbin/ldconfig
|
|
%post drmaa -p /sbin/ldconfig
|
|
%postun drmaa -p /sbin/ldconfig
|
|
|
|
|
|
%post mom
|
|
/sbin/chkconfig --add pbs_mom
|
|
|
|
%preun mom
|
|
if [ $1 -eq 0 ]; then
|
|
/sbin/service pbs_mom stop >/dev/null 2>&1
|
|
/sbin/chkconfig --del pbs_mom
|
|
fi
|
|
|
|
%post scheduler
|
|
/sbin/chkconfig --add pbs_sched
|
|
|
|
%preun scheduler
|
|
if [ $1 -eq 0 ]; then
|
|
/sbin/service pbs_sched stop >/dev/null 2>&1
|
|
/sbin/chkconfig --del pbs_sched
|
|
fi
|
|
|
|
%post server
|
|
/sbin/chkconfig --add pbs_server
|
|
|
|
%preun server
|
|
if [ $1 -eq 0 ]; then
|
|
/sbin/service pbs_server stop >/dev/null 2>&1
|
|
/sbin/chkconfig --del pbs_server
|
|
fi
|
|
|
|
%files
|
|
%defattr(-, root, root, -)
|
|
%doc README.torque torque.setup Release_Notes
|
|
%doc CHANGELOG PBS_License.txt README.Fedora
|
|
%dir %{torquehomedir}
|
|
%dir %{torquehomedir}/aux
|
|
%dir %{torquehomedir}/spool
|
|
%dir %{torquehomedir}/undelivered
|
|
%{torquehomedir}/pbs_environment
|
|
%{torquehomedir}/server_name
|
|
%config(noreplace) %{_sysconfdir}/torque/pbs_environment
|
|
%config(noreplace) %{_sysconfdir}/torque/server_name
|
|
|
|
|
|
%files client
|
|
%defattr(-, root, root, -)
|
|
%{_bindir}/q*
|
|
%{_bindir}/chk_tree
|
|
%{_bindir}/hostn
|
|
%{_bindir}/nqs2pbs
|
|
%{_bindir}/pbsdsh
|
|
%{_bindir}/pbsnodes
|
|
%{_bindir}/printjob
|
|
%{_bindir}/printserverdb
|
|
%{_bindir}/printtracking
|
|
%{_bindir}/tracejob
|
|
%{_sbindir}/momctl
|
|
%attr(4755, root, root) %{_sbindir}/pbs_iff
|
|
%{_sbindir}/pbs_demux
|
|
%if %{use_tcl}
|
|
%{_bindir}/pbs_tclsh
|
|
%endif
|
|
%{_mandir}/man1/qsub-torque.1.*
|
|
%{_mandir}/man1/qalter-torque.1.*
|
|
%{_mandir}/man1/qdel-torque.1.*
|
|
%{_mandir}/man1/qhold-torque.1.*
|
|
%{_mandir}/man1/qrls-torque.1.*
|
|
%{_mandir}/man1/qselect-torque.1.*
|
|
%{_mandir}/man1/qstat-torque.1.*
|
|
|
|
|
|
%files docs
|
|
%defattr(-, root, root, -)
|
|
%doc doc/admin_guide.ps
|
|
%doc src/drmaa/drmaa.pdf
|
|
%{_mandir}/man1/basl2c.1.*
|
|
%{_mandir}/man1/nqs2pbs.1.*
|
|
%{_mandir}/man1/pbs.1.*
|
|
%{_mandir}/man1/pbsdsh.1.*
|
|
%{_mandir}/man1/qchkpt.1.*
|
|
%{_mandir}/man1/qmgr.1.*
|
|
%{_mandir}/man1/qmove.1.*
|
|
%{_mandir}/man1/qmsg.1.*
|
|
%{_mandir}/man1/qorder.1.*
|
|
%{_mandir}/man1/qrerun.1.*
|
|
%{_mandir}/man1/qsig.1.*
|
|
%{_mandir}/man1/xpbs.1.*
|
|
%{_mandir}/man1/xpbsmon.1.*
|
|
%{_mandir}/man3/pbs_alterjob.3.*
|
|
%{_mandir}/man3/pbs_connect.3.*
|
|
%{_mandir}/man3/pbs_default.3.*
|
|
%{_mandir}/man3/pbs_deljob.3.*
|
|
%{_mandir}/man3/pbs_disconnect.3.*
|
|
%{_mandir}/man3/pbs_geterrmsg.3.*
|
|
%{_mandir}/man3/pbs_holdjob.3.*
|
|
%{_mandir}/man3/pbs_locate.3.*
|
|
%{_mandir}/man3/pbs_manager.3.*
|
|
%{_mandir}/man3/pbs_movejob.3.*
|
|
%{_mandir}/man3/pbs_msgjob.3.*
|
|
%{_mandir}/man3/pbs_orderjob.3.*
|
|
%{_mandir}/man3/pbs_rerunjob.3.*
|
|
%{_mandir}/man3/pbs_rescquery.3.*
|
|
%{_mandir}/man3/pbs_rescreserve.3.*
|
|
%{_mandir}/man3/pbs_rlsjob.3.*
|
|
%{_mandir}/man3/pbs_runjob.3.*
|
|
%{_mandir}/man3/pbs_selectjob.3.*
|
|
%{_mandir}/man3/pbs_selstat.3.*
|
|
%{_mandir}/man3/pbs_sigjob.3.*
|
|
%{_mandir}/man3/pbs_stagein.3.*
|
|
%{_mandir}/man3/pbs_statjob.3.*
|
|
%{_mandir}/man3/pbs_statnode.3.*
|
|
%{_mandir}/man3/pbs_statque.3.*
|
|
%{_mandir}/man3/pbs_statserver.3.*
|
|
%{_mandir}/man3/pbs_submit.3.*
|
|
%{_mandir}/man3/pbs_terminate.3.*
|
|
%{_mandir}/man3/rpp.3.*
|
|
%{_mandir}/man3/tm.3.*
|
|
%{_mandir}/man3/pbs_checkpointjob.3.gz
|
|
%{_mandir}/man3/pbs_fbserver.3.gz
|
|
%{_mandir}/man3/pbs_get_server_list.3.gz
|
|
%{_mandir}/man7/pbs_job_attributes.7.*
|
|
%{_mandir}/man7/pbs_queue_attributes.7.*
|
|
%{_mandir}/man7/pbs_resources.7.*
|
|
%{_mandir}/man7/pbs_resources_aix4.7.*
|
|
%{_mandir}/man7/pbs_resources_aix5.7.*
|
|
%{_mandir}/man7/pbs_resources_darwin.7.*
|
|
%{_mandir}/man7/pbs_resources_digitalunix.7.*
|
|
%{_mandir}/man7/pbs_resources_freebsd.7.*
|
|
%{_mandir}/man7/pbs_resources_fujitsu.7.*
|
|
%{_mandir}/man7/pbs_resources_hpux10.7.*
|
|
%{_mandir}/man7/pbs_resources_hpux11.7.*
|
|
%{_mandir}/man7/pbs_resources_irix5.7.*
|
|
%{_mandir}/man7/pbs_resources_irix6.7.*
|
|
%{_mandir}/man7/pbs_resources_irix6array.7.*
|
|
%{_mandir}/man7/pbs_resources_linux.7.*
|
|
%{_mandir}/man7/pbs_resources_netbsd.7.*
|
|
%{_mandir}/man7/pbs_resources_solaris5.7.*
|
|
%{_mandir}/man7/pbs_resources_solaris7.7.*
|
|
%{_mandir}/man7/pbs_resources_sp2.7.*
|
|
%{_mandir}/man7/pbs_resources_sunos4.7.*
|
|
%{_mandir}/man7/pbs_resources_unicos8.7.*
|
|
%{_mandir}/man7/pbs_resources_unicosmk2.7.*
|
|
%{_mandir}/man7/pbs_server_attributes.7.*
|
|
%{_mandir}/man8/pbs_mom.8.*
|
|
%{_mandir}/man8/pbs_sched.8.*
|
|
%{_mandir}/man8/pbs_sched_basl.8.*
|
|
%{_mandir}/man8/pbs_sched_cc.8.*
|
|
%{_mandir}/man8/pbs_sched_tcl.8.*
|
|
%{_mandir}/man8/pbs_server.8.*
|
|
%{_mandir}/man8/pbsnodes.8.*
|
|
%{_mandir}/man8/qdisable.8.*
|
|
%{_mandir}/man8/qenable.8.*
|
|
%{_mandir}/man8/qrun.8.*
|
|
%{_mandir}/man8/qstart.8.*
|
|
%{_mandir}/man8/qstop.8.*
|
|
%{_mandir}/man8/qterm.8.*
|
|
|
|
|
|
%if %{build_gui}
|
|
%files gui
|
|
%defattr(-, root, root, -)
|
|
%{_bindir}/pbs_wish
|
|
%{_bindir}/xpbs
|
|
%{_bindir}/xpbsmon
|
|
%{_libdir}/xpbs
|
|
%{_libdir}/xpbsmon
|
|
%{_datadir}/applications/*.desktop
|
|
%{_datadir}/pixmaps/*.png
|
|
%endif
|
|
|
|
%files libs
|
|
%defattr(-, root, root, -)
|
|
%{_libdir}/libtorque.so.*
|
|
|
|
%files devel
|
|
%defattr(-, root, root, -)
|
|
%{_libdir}/libtorque.so
|
|
%{_includedir}/torque/pbs_error.h
|
|
%{_includedir}/torque/pbs_error_db.h
|
|
%{_includedir}/torque/pbs_ifl.h
|
|
%{_includedir}/torque/rm.h
|
|
%{_includedir}/torque/rpp.h
|
|
%{_includedir}/torque/tm.h
|
|
%{_includedir}/torque/tm_.h
|
|
|
|
%{_bindir}/pbs-config
|
|
|
|
%files mom
|
|
%defattr(-, root, root, -)
|
|
%{_sbindir}/pbs_mom
|
|
%{_sbindir}/qnoded
|
|
%{_sbindir}/pbs_demux
|
|
%{_bindir}/pbs_track
|
|
%{_initrddir}/pbs_mom
|
|
%if %{use_rcp}
|
|
%attr(4755, root, root) %{_sbindir}/pbs_rcp
|
|
%endif
|
|
%{torquehomedir}/mom_priv
|
|
%{torquehomedir}/mom_logs
|
|
%{torquehomedir}/checkpoint
|
|
%{torquehomedir}/undelivered
|
|
%dir %{_var}/log/torque
|
|
%dir %{_var}/log/torque/mom_logs
|
|
%dir %{_sysconfdir}/torque/mom
|
|
%config(noreplace) %{_sysconfdir}/torque/mom/config
|
|
|
|
%files pam
|
|
%defattr(-, root, root, -)
|
|
%doc src/pam/README.pam
|
|
/%{_lib}/security/pam_pbssimpleauth.so
|
|
|
|
%files scheduler
|
|
%defattr(-, root, root, -)
|
|
%attr(0755, root, root) %{_sbindir}/pbs_sched
|
|
%{_sbindir}/qschedd
|
|
%{_initrddir}/pbs_sched
|
|
%dir %{torquehomedir}/sched_priv
|
|
%config(noreplace) %{torquehomedir}/sched_priv/*
|
|
%{torquehomedir}/sched_logs
|
|
%dir %{_var}/log/torque/sched_logs
|
|
%dir %{_sysconfdir}/torque/sched
|
|
%config(noreplace) %{_sysconfdir}/torque/sched/dedicated_time
|
|
%config(noreplace) %{_sysconfdir}/torque/sched/holidays
|
|
%config(noreplace) %{_sysconfdir}/torque/sched/resource_group
|
|
%config(noreplace) %{_sysconfdir}/torque/sched/sched_config
|
|
|
|
%files server
|
|
%defattr(-, root, root, -)
|
|
%attr(0755, root, root) %{_sbindir}/pbs_server
|
|
%attr(0755, root, root) %{_sbindir}/momctl
|
|
%{_sbindir}/qserverd
|
|
%{_initrddir}/pbs_server
|
|
%dir %{_var}/log/torque/server_logs
|
|
%{torquehomedir}/server_logs
|
|
%{torquehomedir}/server_priv
|
|
|
|
%files drmaa
|
|
%defattr(-, root, root, -)
|
|
%{_libdir}/libdrmaa.so.*
|
|
|
|
%files drmaa-devel
|
|
%defattr(-, root, root, -)
|
|
%{_libdir}/libdrmaa.so
|
|
%{_includedir}/torque/drmaa.h
|
|
%if 0%{?doxydoc}
|
|
%{_mandir}/man3/compat.h.3.*
|
|
%{_mandir}/man3/drmaa.3.*
|
|
%{_mandir}/man3/drmaa.h.3.*
|
|
%{_mandir}/man3/drmaa_attr_names_s.3.*
|
|
%{_mandir}/man3/drmaa_attr_values_s.3.*
|
|
%{_mandir}/man3/drmaa_attrib.3.*
|
|
%{_mandir}/man3/drmaa_attrib_info_s.3.*
|
|
%{_mandir}/man3/drmaa_def_attr_s.3.*
|
|
%{_mandir}/man3/drmaa_job_ids_s.3.*
|
|
%{_mandir}/man3/drmaa_job_iter_s.3.*
|
|
%{_mandir}/man3/drmaa_job_s.3.*
|
|
%{_mandir}/man3/drmaa_job_template_s.3.*
|
|
%{_mandir}/man3/drmaa_jobt.3.*
|
|
%{_mandir}/man3/drmaa_session.3.*
|
|
%{_mandir}/man3/drmaa_session_s.3.*
|
|
%{_mandir}/man3/drmaa_submission_context_s.3.*
|
|
%{_mandir}/man3/drmaa_viter.3.*
|
|
%{_mandir}/man3/error.h.3.*
|
|
%{_mandir}/man3/jobs.3.*
|
|
%{_mandir}/man3/jobs.h.3.*
|
|
%{_mandir}/man3/lookup3.h.3.*
|
|
%{_mandir}/man3/pbs_attrib.3.*
|
|
%endif
|
|
|
|
%changelog
|
|
* Wed Dec 8 2010 Steve Traylen <steve.traylen@cern.ch> - 2.5.3-3
|
|
- Enable drmaa support and add drmaa sub packages.
|
|
|
|
* Wed Dec 8 2010 Steve Traylen <steve.traylen@cern.ch> - 2.5.3-2
|
|
- Only build noarch doc package on RHEL6 or Fedora10. #659723
|
|
|
|
* Thu Nov 18 2010 Steve Traylen <steve.traylen@cern.ch> - 2.5.3-1
|
|
- Upstream to 2.5.3.
|
|
|
|
* Thu Oct 14 2010 Steve Traylen <steve.traylen@cern.ch> - 2.5.2-4
|
|
- rhbz#643194, stop a stoped service, start a start service
|
|
return codes now fixed.
|
|
|
|
* Thu Oct 14 2010 Steve Traylen <steve.traylen@cern.ch> - 2.5.2-3
|
|
- rhbz#631256 Only create db if asked to.
|
|
|
|
* Thu Oct 14 2010 Steve Traylen <steve.traylen@cern.ch> - 2.5.2-2
|
|
- rhbz#58060, add torque-cond-touch.spec to only touch files
|
|
when service actually starts.
|
|
|
|
* Tue Sep 7 2010 Steve Traylen <steve.traylen@cern.ch> - 2.5.2-1
|
|
- New upstream 2.5.2
|
|
- Three new man pages added to file listing.
|
|
|
|
* Tue Aug 10 2010 Steve Traylen <steve.traylen@cern.ch> - 2.5.1-1
|
|
- New upstream 2.5.1
|
|
|
|
* Wed Jul 14 2010 Steve Traylen <steve.traylen@cern.ch> - 2.4.8-3
|
|
- Rebuild for cvs mistake.
|
|
|
|
* Thu Jul 1 2010 Steve Traylen <steve.traylen@cern.ch> - 2.4.8-2
|
|
- Set torquehome to /var/lib/torque rather than /var/torque
|
|
- Drop provides and obsoletes since never present in Fedora/EPEL.
|
|
- Don't use a variable for the description.
|
|
- Split install of init.d scripts to build and install sections
|
|
as appropriate.
|
|
- Mark docs subpackage as noarch.
|
|
- Rename libtorque package to more normal torque-libs package.
|
|
- Rename libtorque-devel package to more normal torque-devel package.
|
|
- Remove the unused epoch and snapshot variables.
|
|
- Have mom requires openssh-clients and server openssh-server
|
|
- Have mom, sched and server log to /var/log/torque and symlinks
|
|
- Move configurtion files to /etc/torque and symlink in expected.
|
|
- Be more explicit about man page in the files section.
|
|
- Rename README-localhost to README.Fedora to make it more obvious
|
|
it's related to this package.
|
|
|
|
* Wed Jun 2 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.4.8-1
|
|
- update to 2.4.8
|
|
- drop static libs
|
|
- cleanup spec file
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.10-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.10-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Mon Apr 16 2008 Garrick Staples <garrick@usc.edu> 2.1.10-6
|
|
- add alternatives system
|
|
|
|
* Thu Feb 14 2008 Garrick Staples <garrick@usc.edu> 2.1.10-5
|
|
- fix missing NI_MAXSERV on fedora9
|
|
|
|
* Thu Jan 3 2008 Garrick Staples <garrick@usc.edu> 2.1.10-4
|
|
- correct pbs-config build typo
|
|
|
|
* Thu Jan 3 2008 Garrick Staples <garrick@usc.edu> 2.1.10-3
|
|
- rebuild because tcl was bumped
|
|
|
|
* Thu Dec 13 2007 Garrick Staples <garrick@usc.edu> 2.1.10-2
|
|
- fix multilib conflicts
|
|
|
|
* Wed Dec 12 2007 Garrick Staples <garrick@usc.edu> 2.1.10-1
|
|
- bump to 2.1.10
|
|
|
|
* Wed Oct 3 2007 Garrick Staples <garrick@usc.edu> 2.1.9-1
|
|
- bump to 2.1.9
|
|
|
|
* Fri Aug 31 2007 Garrick Staples <garrick@usc.edu> 2.1.8-3
|
|
- correct License tag
|
|
|
|
* Wed Aug 15 2007 Garrick Staples <garrick@usc.edu> 2.1.8-2
|
|
- correct errors in desktop entry files
|
|
|
|
* Tue Mar 13 2007 Garrick Staples <garrick@usc.edu> 2.1.8-1
|
|
- bump to 2.1.8
|
|
- ensure daemons have the correct path to sendmail
|
|
- don't need rpath configure patch anymore
|
|
|
|
* Wed Feb 14 2007 Garrick Staples <garrick@usc.edu> 2.1.6-5
|
|
- rebuilding because tcl8.5 was downgraded to tcl8.4
|
|
|
|
* Tue Feb 6 2007 Garrick Staples <garrick@usc.edu> 2.1.6-4
|
|
- rebuilding with new tcl
|
|
|
|
* Sat Feb 3 2007 Garrick Staples <garrick@usc.edu> 2.1.6-3
|
|
- trying to resolve tcl8.5 buildindex issue
|
|
|
|
* Fri Feb 2 2007 Garrick Staples <garrick@usc.edu> 2.1.6-2
|
|
- rebuild for tcl8.5
|
|
|
|
* Tue Oct 24 2006 Garrick Staples <garrick@usc.edu> 2.1.6-1
|
|
- fixes more regressions from Friday
|
|
|
|
* Sat Oct 21 2006 Garrick Staples <garrick@usc.edu> 2.1.5-1
|
|
- fixes "qsub -o /dev/null" regression
|
|
|
|
* Fri Oct 20 2006 Garrick Staples <garrick@usc.edu> 2.1.4-1
|
|
- bump to fix "Spool Job Race condition" on bugtraq
|
|
|
|
* Mon Oct 16 2006 Garrick Staples <garrick@usc.edu> 2.1.3-3
|
|
- correct unowned directories
|
|
|
|
* Thu Oct 12 2006 Garrick Staples <garrick@usc.edu> 2.1.3-2
|
|
- missing BR ncurses-devel and readline-devel
|
|
|
|
* Thu Oct 12 2006 Garrick Staples <garrick@usc.edu> 2.1.3-1
|
|
- bump to 2.1.3
|
|
|
|
* Sun Aug 27 2006 Garrick Staples <garrick@usc.edu> 2.1.2-3
|
|
- FC6 mass rebuild
|
|
|
|
* Wed Aug 2 2006 Garrick Staples <garrick@usc.edu> 2.1.2-2
|
|
- fix incorrect _pam_getpwnam_r usage in pam module
|
|
|
|
* Tue Aug 1 2006 Garrick Staples <garrick@usc.edu> 2.1.2-1
|
|
- bump to 2.1.2
|
|
- fix bz #200830
|
|
- enable new pam module
|
|
|
|
* Thu Jun 22 2006 Garrick Staples <garrick@usc.edu> 2.1.1-3
|
|
- rebuild
|
|
|
|
* Thu Jun 22 2006 Garrick Staples <garrick@usc.edu> 2.1.1-2
|
|
- rebuild with added README-localhost
|
|
|
|
* Thu Jun 22 2006 Garrick Staples <garrick@usc.edu> 2.1.1-1
|
|
- bump to 2.1.1
|
|
|
|
* Mon May 15 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-3
|
|
- get rid of the annoying "localhost only" package
|
|
|
|
* Fri May 12 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-2
|
|
- fix pbs_server segfault when mom_job_sync is enabled
|
|
|
|
* Thu May 11 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-1
|
|
- bump to final release
|
|
|
|
* Tue Apr 25 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.11.200604251602cvs
|
|
- bump to fix "mem" job resources for non-serial jobs
|
|
- rm.h is now installed
|
|
|
|
* Fri Apr 21 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.10.200604211036cvs
|
|
- bump
|
|
|
|
* Fri Apr 21 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.9.200604171430cvs
|
|
- fix qsub write return check
|
|
|
|
* Thu Apr 20 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.8.200604171430cvs
|
|
- fix pbs_sched error opening lockfile and immediately exiting
|
|
|
|
* Mon Apr 17 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.7.200604171430cvs
|
|
- importing to fedora extras
|
|
|
|
* Mon Apr 17 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.6.200604171430cvs
|
|
- add %%{dist} tag
|
|
- cleanup the cleanups in spec
|
|
- bump to matching upstream
|
|
- move headers to /usr/include/torque/
|
|
|
|
* Wed Apr 12 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.5.200604071240cvs
|
|
- remove rpath
|
|
|
|
* Tue Apr 11 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.4.200604071240cvs
|
|
- fix release string to match fedora guidelines
|
|
|
|
* Fri Apr 7 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.3.200604071240
|
|
- spec and initscript cleanups
|
|
|
|
* Wed Apr 5 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.2.200604051756
|
|
- add .desktop files
|
|
|
|
* Wed Apr 5 2006 Garrick Staples <garrick@usc.edu> 2.1.0p0-0.1.200604051756
|
|
- Initial package for Fedora Extras
|
|
|
|
|