update to 2.4.8, drop static libs, cleanup spec file
This commit is contained in:
parent
3016aa906c
commit
fff80ad068
@ -1 +1 @@
|
|||||||
torque-2.1.10.tar.gz
|
torque-2.4.8.tar.gz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
298e0ff61028efc74f050425aac79300 torque-2.1.10.tar.gz
|
56170b7fce63fed9ed0cc83ee5bd3e3a torque-2.4.8.tar.gz
|
||||||
|
568
torque.spec
568
torque.spec
@ -1,10 +1,3 @@
|
|||||||
|
|
||||||
# comment out snap if building a real release
|
|
||||||
%define name torque
|
|
||||||
%define version 2.1.10
|
|
||||||
#%%define snap 200604251602
|
|
||||||
%define release 8
|
|
||||||
|
|
||||||
# The following options are supported:
|
# The following options are supported:
|
||||||
# --with server_name=hostname
|
# --with server_name=hostname
|
||||||
# --with homedir=directory
|
# --with homedir=directory
|
||||||
@ -12,7 +5,6 @@
|
|||||||
# --with[out] gui
|
# --with[out] gui
|
||||||
# --with[out] tcl
|
# --with[out] tcl
|
||||||
|
|
||||||
|
|
||||||
# Hrm, should we default to the name of the buildhost? That seems only
|
# 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
|
# 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.
|
# of compile-time default that doesn't work well with distributable packages.
|
||||||
@ -21,17 +13,14 @@
|
|||||||
# Note that "localhost" doesn't actually work. You must either define the
|
# 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
|
# correct hostname here, pass '--with server_name=foo' to rpmbuild, or be sure
|
||||||
# that $PBS_SERVER_HOME/server_name contains the correct hostname.
|
# that $PBS_SERVER_HOME/server_name contains the correct hostname.
|
||||||
%define server_name localhost
|
%global server_name localhost
|
||||||
|
|
||||||
# change as you wish
|
%global use_rcp 0
|
||||||
%define use_rcp 0
|
%global use_tcl 1
|
||||||
%define use_tcl 1
|
%global build_gui 1
|
||||||
%define build_gui 1
|
|
||||||
|
|
||||||
# these are non-defaults, but fit better into most RPM-based systems
|
# these are non-defaults, but fit better into most RPM-based systems
|
||||||
%define torquehomedir %_localstatedir/torque
|
%global torquehomedir %{_localstatedir}/torque
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# --with/--without processing
|
# --with/--without processing
|
||||||
# first, error if conflicting options are used
|
# first, error if conflicting options are used
|
||||||
@ -40,160 +29,241 @@
|
|||||||
%{?_with_gui: %{?_without_gui: %{error: both _with_gui and _without_gui}}}
|
%{?_with_gui: %{?_without_gui: %{error: both _with_gui and _without_gui}}}
|
||||||
|
|
||||||
# did we find any --with options?
|
# did we find any --with options?
|
||||||
%{?_with_rcp: %define use_rcp 1}
|
%{?_with_rcp: %global use_rcp 1}
|
||||||
%{?_with_tcl: %define use_tcl 1}
|
%{?_with_tcl: %global use_tcl 1}
|
||||||
%{?_with_gui: %define build_gui 1}
|
%{?_with_gui: %global build_gui 1}
|
||||||
|
|
||||||
%{?_with_server_name:%define server_name %(set -- %{_with_server_name}; echo $1 | grep -v with | sed 's/=//')}
|
%{?_with_server_name:%global server_name %(set -- %{_with_server_name}; echo $1 | grep -v with | sed 's/=//')}
|
||||||
%{?_with_homedir:%define torquehomedir %(set -- %{_with_homedir}; 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?
|
# did we find any --without options?
|
||||||
%{?_without_rcp: %define use_rcp 0}
|
%{?_without_rcp: %global use_rcp 0}
|
||||||
%{?_without_tcl: %define use_tcl 0}
|
%{?_without_tcl: %global use_tcl 0}
|
||||||
%{?_without_gui: %define build_gui 0}
|
%{?_without_gui: %global build_gui 0}
|
||||||
|
|
||||||
# Set up all options as disabled
|
# Set up all options as disabled
|
||||||
%define rcpflags --with-rcp=/usr/bin/scp
|
%global rcpflags --with-rcp=/usr/bin/scp
|
||||||
%define tclflags --without-tcl
|
%global tclflags --without-tcl
|
||||||
%define guiflags --disable-gui
|
%global guiflags --disable-gui
|
||||||
|
|
||||||
# Enable options that we want
|
# Enable options that we want
|
||||||
%if %use_rcp
|
%if %{use_rcp}
|
||||||
%define rcpflags --with-rcp=mom_rcp
|
%global rcpflags --with-rcp=mom_rcp
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %build_gui
|
%if %{build_gui}
|
||||||
%define guiflags --enable-gui
|
%global guiflags --enable-gui
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %use_tcl
|
%if %{use_tcl}
|
||||||
%if %build_gui
|
%if %{build_gui}
|
||||||
%define tclflags --with-tcl --with-tk
|
%global tclflags --with-tcl --with-tk
|
||||||
%else
|
%else
|
||||||
%define tclflags --with-tcl --without-tk
|
%global tclflags --with-tcl --without-tk
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# finish up the configs...
|
# finish up the configs...
|
||||||
%define server_nameflags --with-default-server=%{server_name}
|
%global server_nameflags --with-default-server=%{server_name}
|
||||||
|
%global shared_description %(echo -e "TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource \\nmanager providing control over batch jobs and distributed compute nodes. \\nTORQUE is based on OpenPBS version 2.3.12 and incorporates scalability, \\nfault tolerance, and feature extension patches provided by USC, NCSA, OSC, \\nthe U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many \\nother leading edge HPC organizations.\\n\\nThis build was configured with:\\n %{server_nameflags}\\n %{tclflags}\\n %{guiflags}\\n %{rcpflags}\\n")
|
||||||
|
|
||||||
|
Name: torque
|
||||||
%define shared_description %(echo -e "TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource \\nmanager providing control over batch jobs and distributed compute nodes. \\nTORQUE is based on OpenPBS version 2.3.12 and incorporates scalability, \\nfault tolerance, and feature extension patches provided by USC, NCSA, OSC, \\nthe U.S. Dept of Energy, Sandia, PNNL, U of Buffalo, TeraGrid, and many \\nother leading edge HPC organizations.\\n\\nThis build was configured with:\\n %{server_nameflags}\\n %{tclflags}\\n %{guiflags}\\n %{rcpflags}\\n")
|
Version: 2.4.8
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Tera-scale Open-source Resource and QUEue manager
|
||||||
Summary: Tera-scale Open-source Resource and QUEue manager
|
Source0: http://www.clusterresources.com/downloads/%{name}/%{name}-%{version}.tar.gz
|
||||||
Name: %{name}
|
Source2: xpbs.desktop
|
||||||
Version: %{version}
|
Source3: xpbsmon.desktop
|
||||||
Release: %{?snap:0.%{release}.%{snap}cvs}%{!?snap:%{release}}%{?dist}
|
Source4: xpbs.png
|
||||||
Source: torque-%{version}%{?snap:-snap.%snap}.tar.gz
|
Source5: xpbsmon.png
|
||||||
Source2: xpbs.desktop
|
Source6: README-localhost
|
||||||
Source3: xpbsmon.desktop
|
Source7: pbs-config-multilib
|
||||||
Source4: xpbs.png
|
License: OpenPBS
|
||||||
Source5: xpbsmon.png
|
Group: System Environment/Daemons
|
||||||
Source6: README-localhost
|
URL: http://www.clusterresources.com/products/torque/
|
||||||
Source7: pbs-config-multilib
|
Provides: pbs = %{version}-%{release}
|
||||||
License: OpenPBS
|
BuildRequires: desktop-file-utils, pam-devel, xauth, readline-devel, ncurses-devel
|
||||||
Group: System Environment/Daemons
|
Conflicts: pbspro, openpbs, openpbs-oscar
|
||||||
URL: http://www.clusterresources.com/products/torque/
|
Obsoletes: torque-localhost
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
%if %{use_tcl}
|
||||||
Provides: pbs
|
BuildRequires: tcl-devel
|
||||||
BuildRequires: desktop-file-utils, pam-devel, xauth, readline-devel, ncurses-devel
|
|
||||||
Requires(posttrans): /usr/sbin/alternatives
|
|
||||||
Requires(preun): /usr/sbin/alternatives
|
|
||||||
Conflicts: pbspro, openpbs, openpbs-oscar
|
|
||||||
Obsoletes: torque-localhost
|
|
||||||
|
|
||||||
Patch0: torque-2.1.10-NI_MAXSERV.patch
|
|
||||||
|
|
||||||
%if %use_tcl
|
|
||||||
BuildRequires: tcl-devel
|
|
||||||
%endif
|
%endif
|
||||||
%if %build_gui
|
%if %{build_gui}
|
||||||
BuildRequires: tk-devel
|
BuildRequires: tk-devel
|
||||||
%else
|
%else
|
||||||
Obsoletes: torque-gui
|
Obsoletes: torque-gui
|
||||||
%endif
|
%endif
|
||||||
%if ! %use_rcp
|
%if ! %{use_rcp}
|
||||||
Requires: openssh-clients
|
Requires: openssh-clients
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%shared_description
|
%{shared_description}
|
||||||
This package holds just a few shared files and directories.
|
This package holds just a few shared files and directories.
|
||||||
|
|
||||||
|
%package client
|
||||||
|
Group: Applications/System
|
||||||
|
Summary: Client part of TORQUE
|
||||||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Requires(posttrans): /usr/sbin/alternatives
|
||||||
|
Requires(preun): /usr/sbin/alternatives
|
||||||
|
Provides: pbs-client = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description client
|
||||||
|
%{shared_description}
|
||||||
|
This package holds the command-line client programs.
|
||||||
|
|
||||||
|
%package docs
|
||||||
|
Group: Documentation
|
||||||
|
Summary: Documentation files for TORQUE
|
||||||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Provides: pbs-docs = %{version}-%{release}
|
||||||
|
|
||||||
|
%description docs
|
||||||
|
%{shared_description}
|
||||||
|
This package holds the documentation files.
|
||||||
|
|
||||||
|
%package gui
|
||||||
|
Group: Applications/System
|
||||||
|
Summary: Graphical clients for TORQUE
|
||||||
|
Requires: %{name}-client = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Provides: xpbs = %{version}-%{release}
|
||||||
|
Provides: xpbsmon = %{version}-%{release}
|
||||||
|
Provides: %{name}-x11tools = %{version}-%{release}
|
||||||
|
|
||||||
|
%description gui
|
||||||
|
%{shared_description}
|
||||||
|
This package holds the graphical clients.
|
||||||
|
|
||||||
|
%package -n lib%{name}
|
||||||
|
Summary: Run-time libs for programs which will use the %{name} library
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description -n lib%{name}
|
||||||
|
%{shared_description}
|
||||||
|
This package includes the shared libraries necessary for running TORQUE
|
||||||
|
programs.
|
||||||
|
|
||||||
|
%package -n lib%{name}-devel
|
||||||
|
Summary: Development tools for programs which will use the %{name} library
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: lib%{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description -n lib%{name}-devel
|
||||||
|
%{shared_description}
|
||||||
|
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: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Provides: pbs-mom = %{version}-%{release}
|
||||||
|
Requires(post): chkconfig
|
||||||
|
Requires(preun): chkconfig
|
||||||
|
# This is for /sbin/service
|
||||||
|
Requires(preun): initscripts
|
||||||
|
|
||||||
|
%description mom
|
||||||
|
%{shared_description}
|
||||||
|
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
|
||||||
|
%{shared_description}
|
||||||
|
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: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Provides: pbs-scheduler = %{version}-%{release}
|
||||||
|
Requires(post): chkconfig
|
||||||
|
Requires(preun): chkconfig
|
||||||
|
# This is for /sbin/service
|
||||||
|
Requires(preun): initscripts
|
||||||
|
|
||||||
|
%description scheduler
|
||||||
|
%{shared_description}
|
||||||
|
This package holds the fifo C scheduler.
|
||||||
|
|
||||||
|
%package server
|
||||||
|
Group: System Environment/Daemons
|
||||||
|
Summary: The main part of TORQUE
|
||||||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Provides: pbs-server = %{version}-%{release}
|
||||||
|
Requires(post): chkconfig
|
||||||
|
Requires(preun): chkconfig
|
||||||
|
# This is for /sbin/service
|
||||||
|
Requires(preun): initscripts
|
||||||
|
|
||||||
|
%description server
|
||||||
|
%shared_description
|
||||||
|
This package holds the server.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n torque-%{version}%{?snap:-snap.%snap}
|
%setup -q -n torque-%{version}%{?snap:-snap.%snap}
|
||||||
%patch0 -p1
|
install -pm 644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} .
|
||||||
|
|
||||||
%__install -pm 644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} .
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
CFLAGS="%{optflags} -Wno-overlength-strings"
|
||||||
%configure --includedir=%{_includedir}/torque \
|
%configure --includedir=%{_includedir}/torque \
|
||||||
--with-server-home=%{torquehomedir} --with-pam=/%{_lib}/security \
|
--with-server-home=%{torquehomedir} --with-pam=/%{_lib}/security \
|
||||||
--with-sendmail=/usr/sbin/sendmail \
|
--with-sendmail=%{_sbindir}/sendmail --disable-static \
|
||||||
%{server_nameflags} %{guiflags} %{tclflags} %{rcpflags}
|
%{server_nameflags} %{guiflags} %{tclflags} %{rcpflags}
|
||||||
|
|
||||||
%__cp -vf pbs-config-multilib pbs-config
|
cp -vf pbs-config-multilib pbs-config
|
||||||
%__make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%__rm -rf "$RPM_BUILD_ROOT"
|
make DESTDIR=%{buildroot} INSTALL="install -p" install
|
||||||
%__make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
|
|
||||||
|
|
||||||
# remove files we don't need
|
# remove files we don't need
|
||||||
%__rm -f $RPM_BUILD_ROOT/%_libdir/*.la
|
rm -f %{buildroot}%{_libdir}/*.la
|
||||||
%__rm -f $RPM_BUILD_ROOT/%_libdir/*/buildindex
|
rm -f %{buildroot}%{_libdir}/*/buildindex
|
||||||
%__rm -f $RPM_BUILD_ROOT/%{_lib}/security/pam_pbssimpleauth.{a,la}
|
rm -f %{buildroot}/%{_lib}/security/pam_pbssimpleauth.{a,la}
|
||||||
touch -r pbs-config-multilib $RPM_BUILD_ROOT/%{_bindir}/pbs-config
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
touch -r pbs-config-multilib %{buildroot}%{_bindir}/pbs-config
|
||||||
|
|
||||||
# install initscripts
|
# install initscripts
|
||||||
%__mkdir_p $RPM_BUILD_ROOT%{_initrddir}
|
mkdir -p %{buildroot}%{_initrddir}
|
||||||
for daemon in pbs_mom pbs_sched pbs_server; do
|
for daemon in pbs_mom pbs_sched pbs_server; do
|
||||||
%__sed -e 's|^PBS_HOME=.*|PBS_HOME=%{torquehomedir}|' \
|
sed -e 's|^PBS_HOME=.*|PBS_HOME=%{torquehomedir}|' \
|
||||||
-e 's|^PBS_DAEMON=.*|PBS_DAEMON=%{_sbindir}/'$daemon'|' \
|
-e 's|^PBS_DAEMON=.*|PBS_DAEMON=%{_sbindir}/'$daemon'|' \
|
||||||
-e 's|chkconfig: 345|chkconfig: -|' \
|
-e 's|chkconfig: 345|chkconfig: -|' \
|
||||||
< contrib/init.d/$daemon > $RPM_BUILD_ROOT%{_initrddir}/$daemon
|
< contrib/init.d/$daemon > %{buildroot}%{_initrddir}/$daemon
|
||||||
%__chmod 755 $RPM_BUILD_ROOT%{_initrddir}/$daemon
|
chmod 755 %{buildroot}%{_initrddir}/$daemon
|
||||||
done
|
done
|
||||||
|
|
||||||
%if %{build_gui}
|
%if %{build_gui}
|
||||||
# This is really trivial, but cleans up an rpmlint warning
|
# This is really trivial, but cleans up an rpmlint warning
|
||||||
%__sed -i -e 's|%_lib/../||' $RPM_BUILD_ROOT%{_bindir}/xpbs
|
sed -i -e 's|%{_lib}/../||' %{buildroot}%{_bindir}/xpbs
|
||||||
|
|
||||||
# install .desktop files and my ugly icons
|
# install .desktop files and my ugly icons
|
||||||
desktop-file-install --vendor fedora \
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications xpbs.desktop
|
||||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications xpbsmon.desktop
|
||||||
--add-category X-Fedora \
|
install -d %{buildroot}%{_datadir}/pixmaps
|
||||||
xpbs.desktop
|
install -p -m0644 xpbs.png xpbsmon.png %{buildroot}%{_datadir}/pixmaps
|
||||||
desktop-file-install --vendor fedora \
|
|
||||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
||||||
--add-category X-Fedora \
|
|
||||||
xpbsmon.desktop
|
|
||||||
%__install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
|
||||||
%__install -p -m0644 xpbs.png xpbsmon.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# alternatives stuff
|
# alternatives stuff
|
||||||
for bin in qalter qdel qhold qrls qselect qstat qsub
|
for bin in qalter qdel qhold qrls qselect qstat qsub
|
||||||
do
|
do
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/$bin $RPM_BUILD_ROOT%{_bindir}/${bin}-torque
|
mv %{buildroot}%{_bindir}/$bin %{buildroot}%{_bindir}/${bin}-torque
|
||||||
mv $RPM_BUILD_ROOT%{_mandir}/man1/${bin}.1 \
|
mv %{buildroot}%{_mandir}/man1/${bin}.1 \
|
||||||
$RPM_BUILD_ROOT%{_mandir}/man1/${bin}-torque.1
|
%{buildroot}%{_mandir}/man1/${bin}-torque.1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%__rm -rf "$RPM_BUILD_ROOT"
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if %__grep -q "PBS services" /etc/services;then
|
if grep -q "PBS services" /etc/services;then
|
||||||
: PBS services already installed
|
: PBS services already installed
|
||||||
else
|
else
|
||||||
cat<<-__EOF__>>/etc/services
|
cat<<-__EOF__>>/etc/services
|
||||||
@ -209,133 +279,6 @@ else
|
|||||||
__EOF__
|
__EOF__
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%doc README.torque torque.setup Release_Notes CHANGELOG PBS_License.txt README-localhost
|
|
||||||
%config(noreplace) %{torquehomedir}/pbs_environment
|
|
||||||
%config(noreplace) %{torquehomedir}/server_name
|
|
||||||
%dir %{torquehomedir}
|
|
||||||
%{torquehomedir}/aux
|
|
||||||
%{torquehomedir}/spool
|
|
||||||
|
|
||||||
|
|
||||||
%package docs
|
|
||||||
Group: Documentation
|
|
||||||
Summary: Documentation files for TORQUE
|
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
Provides: pbs-docs
|
|
||||||
%description docs
|
|
||||||
%shared_description
|
|
||||||
This package holds the documentation files.
|
|
||||||
|
|
||||||
%files docs
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%doc doc/admin_guide.ps
|
|
||||||
%{_mandir}/man*/*
|
|
||||||
%exclude %{_mandir}/man1/qsub-torque.1.gz
|
|
||||||
%exclude %{_mandir}/man1/qalter-torque.1.gz
|
|
||||||
%exclude %{_mandir}/man1/qdel-torque.1.gz
|
|
||||||
%exclude %{_mandir}/man1/qhold-torque.1.gz
|
|
||||||
%exclude %{_mandir}/man1/qrls-torque.1.gz
|
|
||||||
%exclude %{_mandir}/man1/qselect-torque.1.gz
|
|
||||||
%exclude %{_mandir}/man1/qstat-torque.1.gz
|
|
||||||
|
|
||||||
|
|
||||||
%package scheduler
|
|
||||||
Group: System Environment/Daemons
|
|
||||||
Summary: Simple fifo scheduler for TORQUE
|
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
Provides: pbs-scheduler
|
|
||||||
%description scheduler
|
|
||||||
%shared_description
|
|
||||||
This package holds the fifo C scheduler.
|
|
||||||
|
|
||||||
%files scheduler
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%attr(0755, root, root) %{_sbindir}/pbs_sched
|
|
||||||
%{_initrddir}/pbs_sched
|
|
||||||
%dir %{torquehomedir}/sched_priv
|
|
||||||
%config(noreplace) %{torquehomedir}/sched_priv/*
|
|
||||||
%{torquehomedir}/sched_logs
|
|
||||||
|
|
||||||
%post scheduler
|
|
||||||
/sbin/chkconfig --add pbs_sched
|
|
||||||
|
|
||||||
%preun scheduler
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/service pbs_sched stop
|
|
||||||
/sbin/chkconfig --del pbs_sched
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%package server
|
|
||||||
Group: System Environment/Daemons
|
|
||||||
Summary: The main part of TORQUE
|
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
Provides: pbs-server
|
|
||||||
%description server
|
|
||||||
%shared_description
|
|
||||||
This package holds the server.
|
|
||||||
|
|
||||||
%files server
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%attr(0755, root, root) %{_sbindir}/pbs_server
|
|
||||||
%attr(0755, root, root) %{_sbindir}/momctl
|
|
||||||
%{_initrddir}/pbs_server
|
|
||||||
%{torquehomedir}/server_logs
|
|
||||||
%{torquehomedir}/server_priv
|
|
||||||
|
|
||||||
%post server
|
|
||||||
/sbin/chkconfig --add pbs_server
|
|
||||||
|
|
||||||
%preun server
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/service pbs_server stop
|
|
||||||
/sbin/chkconfig --del pbs_server
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%package mom
|
|
||||||
Group: System Environment/Daemons
|
|
||||||
Summary: Node execution daemon for TORQUE
|
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
Provides: pbs-mom
|
|
||||||
%description mom
|
|
||||||
%shared_description
|
|
||||||
This package holds the execute daemon required on every node.
|
|
||||||
|
|
||||||
%files mom
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%attr(0755, root, root) %{_sbindir}/pbs_mom
|
|
||||||
%{_initrddir}/pbs_mom
|
|
||||||
%if %{use_rcp}
|
|
||||||
%attr(4755 root root) %{_sbindir}/pbs_rcp
|
|
||||||
%endif
|
|
||||||
%{torquehomedir}/mom_priv
|
|
||||||
%{torquehomedir}/mom_logs
|
|
||||||
%{torquehomedir}/checkpoint
|
|
||||||
%{torquehomedir}/undelivered
|
|
||||||
|
|
||||||
%post mom
|
|
||||||
/sbin/chkconfig --add pbs_mom
|
|
||||||
|
|
||||||
%preun mom
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/service pbs_mom stop
|
|
||||||
/sbin/chkconfig --del pbs_mom
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%package client
|
|
||||||
Group: Applications/System
|
|
||||||
Summary: Client part of TORQUE
|
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
Provides: pbs-client
|
|
||||||
%description client
|
|
||||||
%shared_description
|
|
||||||
This package holds the command-line client programs.
|
|
||||||
|
|
||||||
%posttrans client
|
%posttrans client
|
||||||
/usr/sbin/alternatives --install %{_bindir}/qsub qsub %{_bindir}/qsub-torque 10 \
|
/usr/sbin/alternatives --install %{_bindir}/qsub qsub %{_bindir}/qsub-torque 10 \
|
||||||
--slave %{_mandir}/man1/qsub.1.gz qsub-man \
|
--slave %{_mandir}/man1/qsub.1.gz qsub-man \
|
||||||
@ -364,8 +307,47 @@ if [ $1 -eq 0 ]; then
|
|||||||
/usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque
|
/usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%post -n lib%{name} -p /sbin/ldconfig
|
||||||
|
%postun -n lib%{name} -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 CHANGELOG PBS_License.txt README-localhost
|
||||||
|
%config(noreplace) %{torquehomedir}/pbs_environment
|
||||||
|
%config(noreplace) %{torquehomedir}/server_name
|
||||||
|
%dir %{torquehomedir}
|
||||||
|
%{torquehomedir}/aux
|
||||||
|
%{torquehomedir}/spool
|
||||||
|
|
||||||
%files client
|
%files client
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root, -)
|
||||||
%{_bindir}/q*
|
%{_bindir}/q*
|
||||||
%{_bindir}/chk_tree
|
%{_bindir}/chk_tree
|
||||||
%{_bindir}/hostn
|
%{_bindir}/hostn
|
||||||
@ -373,11 +355,13 @@ fi
|
|||||||
%{_bindir}/pbsdsh
|
%{_bindir}/pbsdsh
|
||||||
%{_bindir}/pbsnodes
|
%{_bindir}/pbsnodes
|
||||||
%{_bindir}/printjob
|
%{_bindir}/printjob
|
||||||
|
%{_bindir}/printserverdb
|
||||||
%{_bindir}/printtracking
|
%{_bindir}/printtracking
|
||||||
%{_bindir}/tracejob
|
%{_bindir}/tracejob
|
||||||
%attr(4755 root root) %{_sbindir}/pbs_iff
|
%{_sbindir}/momctl
|
||||||
|
%attr(4755, root, root) %{_sbindir}/pbs_iff
|
||||||
%{_sbindir}/pbs_demux
|
%{_sbindir}/pbs_demux
|
||||||
%if %use_tcl
|
%if %{use_tcl}
|
||||||
%{_bindir}/pbs_tclsh
|
%{_bindir}/pbs_tclsh
|
||||||
%endif
|
%endif
|
||||||
%{_mandir}/man1/qsub-torque.1.gz
|
%{_mandir}/man1/qsub-torque.1.gz
|
||||||
@ -388,21 +372,21 @@ fi
|
|||||||
%{_mandir}/man1/qselect-torque.1.gz
|
%{_mandir}/man1/qselect-torque.1.gz
|
||||||
%{_mandir}/man1/qstat-torque.1.gz
|
%{_mandir}/man1/qstat-torque.1.gz
|
||||||
|
|
||||||
|
%files docs
|
||||||
%package gui
|
%defattr(-, root, root, -)
|
||||||
Group: Applications/System
|
%doc doc/admin_guide.ps
|
||||||
Summary: Graphical clients for TORQUE
|
%{_mandir}/man*/*
|
||||||
Requires: %{name}-client = %{?epoch:%{epoch}:}%{version}-%{release}
|
%exclude %{_mandir}/man1/qsub-torque.1.gz
|
||||||
Provides: xpbs xpbsmon
|
%exclude %{_mandir}/man1/qalter-torque.1.gz
|
||||||
Provides: %{name}-x11tools
|
%exclude %{_mandir}/man1/qdel-torque.1.gz
|
||||||
%description gui
|
%exclude %{_mandir}/man1/qhold-torque.1.gz
|
||||||
%shared_description
|
%exclude %{_mandir}/man1/qrls-torque.1.gz
|
||||||
This package holds the graphical clients.
|
%exclude %{_mandir}/man1/qselect-torque.1.gz
|
||||||
|
%exclude %{_mandir}/man1/qstat-torque.1.gz
|
||||||
|
|
||||||
%if %{build_gui}
|
%if %{build_gui}
|
||||||
%files gui
|
%files gui
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root, -)
|
||||||
%{_bindir}/pbs_wish
|
%{_bindir}/pbs_wish
|
||||||
%{_bindir}/xpbs
|
%{_bindir}/xpbs
|
||||||
%{_bindir}/xpbsmon
|
%{_bindir}/xpbsmon
|
||||||
@ -412,56 +396,60 @@ This package holds the graphical clients.
|
|||||||
%{_datadir}/pixmaps/*.png
|
%{_datadir}/pixmaps/*.png
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package -n lib%{name}
|
|
||||||
Summary: Run-time libs for programs which will use the %{name} library
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
|
|
||||||
%description -n lib%{name}
|
|
||||||
%shared_description
|
|
||||||
This package includes the shared libraries
|
|
||||||
necessary for running TORQUE programs.
|
|
||||||
|
|
||||||
%files -n lib%{name}
|
%files -n lib%{name}
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root, -)
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%post -n lib%{name} -p /sbin/ldconfig
|
|
||||||
%postun -n lib%{name} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%package -n lib%{name}-devel
|
|
||||||
Summary: Development tools for programs which will use the %{name} library
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: lib%{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
|
|
||||||
%description -n lib%{name}-devel
|
|
||||||
%shared_description
|
|
||||||
This package includes the header files and static libraries
|
|
||||||
necessary for developing programs which will use %{name}.
|
|
||||||
|
|
||||||
%files -n lib%{name}-devel
|
%files -n lib%{name}-devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root, -)
|
||||||
%{_libdir}/*.a
|
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_includedir}/torque
|
%{_includedir}/torque
|
||||||
%{_bindir}/pbs-config
|
%{_bindir}/pbs-config
|
||||||
|
|
||||||
%package pam
|
%files mom
|
||||||
Summary: PAM module for TORQUE MOM nodes
|
%defattr(-, root, root, -)
|
||||||
Group: System Environment/Base
|
%{_sbindir}/pbs_mom
|
||||||
|
%{_sbindir}/qnoded
|
||||||
%description pam
|
%{_sbindir}/pbs_demux
|
||||||
%shared_description
|
%{_bindir}/pbs_track
|
||||||
A simple PAM module to authorize users on PBS MOM nodes with a running job.
|
%{_initrddir}/pbs_mom
|
||||||
|
%if %{use_rcp}
|
||||||
|
%attr(4755, root, root) %{_sbindir}/pbs_rcp
|
||||||
|
%endif
|
||||||
|
%{torquehomedir}/mom_priv/
|
||||||
|
%{torquehomedir}/mom_logs
|
||||||
|
%{torquehomedir}/checkpoint
|
||||||
|
%{torquehomedir}/undelivered
|
||||||
|
|
||||||
%files pam
|
%files pam
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root, -)
|
||||||
%doc src/pam/README.pam
|
%doc src/pam/README.pam
|
||||||
/%{_lib}/security/pam_pbssimpleauth.so
|
/%{_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
|
||||||
|
|
||||||
|
%files server
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
%attr(0755, root, root) %{_sbindir}/pbs_server
|
||||||
|
%attr(0755, root, root) %{_sbindir}/momctl
|
||||||
|
%{_sbindir}/qserverd
|
||||||
|
%{_initrddir}/pbs_server
|
||||||
|
%{torquehomedir}/server_logs
|
||||||
|
%{torquehomedir}/server_priv
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user