import torque-4.2.10-25.el8

This commit is contained in:
CentOS Sources 2020-11-03 07:13:16 -05:00 committed by Andrew Lukoshko
parent c28a3da6bd
commit 2ab3a34dae
2 changed files with 68 additions and 63 deletions

6
SOURCES/pbs-config Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/sh
MACHINE_TYPE=`uname -m`
source /usr/bin/pbs-config-$MACHINE_TYPE

View File

@ -71,7 +71,7 @@
Name: torque Name: torque
Version: 4.2.10 Version: 4.2.10
Release: 17%{?dist} Release: 25%{?dist}
Summary: Tera-scale Open-source Resource and QUEue manager Summary: Tera-scale Open-source Resource and QUEue manager
Source0: http://www.adaptivecomputing.com/download/%{name}/%{name}-%{version}.tar.gz Source0: http://www.adaptivecomputing.com/download/%{name}/%{name}-%{version}.tar.gz
Source2: xpbs.desktop Source2: xpbs.desktop
@ -90,6 +90,8 @@ Source24: mom.layout
# I'll announce to fedora-devel once this is resolved either way. # I'll announce to fedora-devel once this is resolved either way.
# Fedora approval of TORQUEv1.1 # Fedora approval of TORQUEv1.1
# http://lists.fedoraproject.org/pipermail/legal/2011-February/001530.html # http://lists.fedoraproject.org/pipermail/legal/2011-February/001530.html
# This is a wrapper for multilib
Source100: pbs-config
# https://bugzilla.redhat.com/show_bug.cgi?id=713996 # https://bugzilla.redhat.com/show_bug.cgi?id=713996
Patch1: torque-munge-size.patch Patch1: torque-munge-size.patch
@ -100,8 +102,8 @@ Patch3: torque-%{version}-fix-bad-crypto-check.patch
Patch4: torque-%{version}-remove-unused-header.patch Patch4: torque-%{version}-remove-unused-header.patch
License: OpenPBS and TORQUEv1.1 License: OpenPBS and TORQUEv1.1
Group: System Environment/Daemons
URL: http://www.adaptivecomputing.com/products/open-source/torque/ URL: http://www.adaptivecomputing.com/products/open-source/torque/
BuildRequires: gcc-c++
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: pam-devel BuildRequires: pam-devel
BuildRequires: xauth BuildRequires: xauth
@ -119,7 +121,7 @@ BuildRequires: tcl-devel
BuildRequires: tk-devel BuildRequires: tk-devel
%endif %endif
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%{?systemd_requires} %{?systemd_requires}
BuildRequires: systemd BuildRequires: systemd
%endif %endif
@ -143,15 +145,12 @@ BuildRequires: tex-multirow
BuildRequires: tex-adjustbox BuildRequires: tex-adjustbox
%endif %endif
%else %else
%if 0%{?rhel} >= 6
BuildRequires: tex(latex) BuildRequires: tex(latex)
%else
BuildRequires: tetex-latex
%endif
%endif %endif
%endif %endif
Requires: munge Requires: munge
Requires: torque-libs = %{version}-%{release}
Requires(post): %{_bindir}/grep %{_bindir}/cat /etc/services Requires(post): %{_bindir}/grep %{_bindir}/cat /etc/services
%description %description
@ -165,11 +164,10 @@ other leading edge HPC organizations.
This package holds just a few shared files and directories. This package holds just a few shared files and directories.
%package client %package client
Group: Applications/System
Summary: Client part of TORQUE Summary: Client part of TORQUE
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires(posttrans): chkconfig Requires(posttrans): %{_sbindir}/alternatives
Requires(preun): chkconfig Requires(preun): %{_sbindir}/alternatives
%description client %description client
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
@ -182,12 +180,9 @@ other leading edge HPC organizations.
This package holds the command-line client programs. This package holds the command-line client programs.
%package docs %package docs
Group: Documentation
Summary: Documentation files for TORQUE Summary: Documentation files for TORQUE
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
BuildArch: noarch BuildArch: noarch
%endif
%description docs %description docs
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
@ -200,9 +195,9 @@ other leading edge HPC organizations.
This package holds the documentation files. This package holds the documentation files.
%package gui %package gui
Group: Applications/System
Summary: Graphical clients for TORQUE Summary: Graphical clients for TORQUE
Requires: torque-client = %{version}-%{release} Requires: torque-client = %{version}-%{release}
Requires: torque-libs = %{version}-%{release}
%description gui %description gui
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
@ -216,7 +211,6 @@ This package holds the graphical clients.
%package libs %package libs
Summary: Run-time libs for programs which will use the %{name} library Summary: Run-time libs for programs which will use the %{name} library
Group: Development/Libraries
Requires: munge Requires: munge
Obsoletes: libtorque < 2.4.8-2 Obsoletes: libtorque < 2.4.8-2
Provides: libtorque = %{version}-%{release} Provides: libtorque = %{version}-%{release}
@ -235,7 +229,6 @@ programs.
%package devel %package devel
Summary: Development tools for programs which will use the %{name} library Summary: Development tools for programs which will use the %{name} library
Group: Development/Libraries
Requires: torque-libs = %{version}-%{release} Requires: torque-libs = %{version}-%{release}
Obsoletes: libtorque-devel < 2.4.8-2 Obsoletes: libtorque-devel < 2.4.8-2
Provides: libtorque-devel = %{version}-%{release} Provides: libtorque-devel = %{version}-%{release}
@ -252,16 +245,20 @@ This package includes the header files and static libraries
necessary for developing programs which will use %{name}. necessary for developing programs which will use %{name}.
%package mom %package mom
Group: System Environment/Daemons
Summary: Node execution daemon for TORQUE Summary: Node execution daemon for TORQUE
Requires: torque-libs = %{version}-%{release} Requires: torque-libs = %{version}-%{release}
Requires: munge Requires: munge
%if ! %{use_rcp} %if ! %{use_rcp}
Requires: openssh-clients Requires: openssh-clients
%endif %endif
Requires(post): chkconfig %if 0%{?rhel} >= 7 || 0%{?fedora}
Requires(preun): chkconfig Requires(posttrans): systemd
Requires(preun): systemd
%else
Requires(posttrans): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts Requires(preun): initscripts
%endif
@ -277,7 +274,6 @@ This package holds the execute daemon required on every node.
%package pam %package pam
Summary: PAM module for TORQUE MOM nodes Summary: PAM module for TORQUE MOM nodes
Group: System Environment/Base
%description pam %description pam
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
@ -290,12 +286,16 @@ other leading edge HPC organizations.
A simple PAM module to authorize users on PBS MOM nodes with a running job. A simple PAM module to authorize users on PBS MOM nodes with a running job.
%package scheduler %package scheduler
Group: System Environment/Daemons
Summary: Simple fifo scheduler for TORQUE Summary: Simple fifo scheduler for TORQUE
Requires: torque-libs = %{version}-%{release} Requires: torque-libs = %{version}-%{release}
Requires(post): chkconfig %if 0%{?rhel} >= 7 || 0%{?fedora}
Requires(preun): chkconfig Requires(posttrans): systemd
Requires(preun): systemd
%else
Requires(posttrans): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts Requires(preun): initscripts
%endif
%description scheduler %description scheduler
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
@ -308,16 +308,20 @@ other leading edge HPC organizations.
This package holds the fifo C scheduler. This package holds the fifo C scheduler.
%package server %package server
Group: System Environment/Daemons
Summary: The main part of TORQUE Summary: The main part of TORQUE
Requires: torque-libs = %{version}-%{release} Requires: torque-libs = %{version}-%{release}
Requires: munge Requires: munge
%if ! %{use_rcp} %if ! %{use_rcp}
Requires: openssh-server Requires: openssh-server
%endif %endif
Requires(post): chkconfig %if 0%{?rhel} >= 7 || 0%{?fedora}
Requires(preun): chkconfig Requires(posttrans): systemd
Requires(preun): initscripts Requires(preun): systemd
%else
Requires(posttrans): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
%endif
%description server %description server
TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource
@ -330,7 +334,6 @@ other leading edge HPC organizations.
This package holds the server. This package holds the server.
%package drmaa %package drmaa
Group: System Environment/Daemons
Summary: Run time files for the drmaa interface Summary: Run time files for the drmaa interface
Requires: torque-libs = %{version}-%{release} Requires: torque-libs = %{version}-%{release}
@ -347,7 +350,6 @@ DRMAA is "Distributed Resource Management Application API"
%package drmaa-devel %package drmaa-devel
Group: System Environment/Daemons
Summary: Development files for the drmaa interface. Summary: Development files for the drmaa interface.
Requires: torque-drmaa = %{version}-%{release} Requires: torque-drmaa = %{version}-%{release}
Requires: torque-devel = %{version}-%{release} Requires: torque-devel = %{version}-%{release}
@ -406,7 +408,7 @@ rm -f %{buildroot}%{_libdir}/*/buildindex
rm -f %{buildroot}/%{_lib}/security/pam_pbssimpleauth.{a,la} rm -f %{buildroot}/%{_lib}/security/pam_pbssimpleauth.{a,la}
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
# install systemd scripts # install systemd scripts
mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/ install -p -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/
@ -509,8 +511,9 @@ rm %{buildroot}%{_mandir}/man1/basl2c.1
# fix permissions for some directories in /var/lib/torque # fix permissions for some directories in /var/lib/torque
chmod 755 `find %{buildroot}/var/lib/torque -type d` chmod 755 `find %{buildroot}/var/lib/torque -type d`
%clean # Use wrapper script for pbs-config and rename original script to include architecture name
rm -rf %{buildroot} mv %{buildroot}%{_bindir}/pbs-config %{buildroot}%{_bindir}/pbs-config-%{_arch}
install -m0755 -p %{SOURCE100} %{buildroot}%{_bindir}/pbs-config
%post %post
# fix mistake in previous release # fix mistake in previous release
@ -526,14 +529,14 @@ __EOF__
fi fi
done done
done done
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%systemd_post trqauthd.service %systemd_post trqauthd.service
%else %else
/sbin/chkconfig --add trqauthd /sbin/chkconfig --add trqauthd
%endif %endif
%preun %preun
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%systemd_preun trqauthd.service %systemd_preun trqauthd.service
%else %else
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
@ -570,10 +573,8 @@ if [ $1 -eq 0 ]; then
/usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque /usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque
fi fi
%post libs -p /sbin/ldconfig %ldconfig_scriptlets libs
%postun libs -p /sbin/ldconfig %ldconfig_scriptlets drmaa
%post drmaa -p /sbin/ldconfig
%postun drmaa -p /sbin/ldconfig
%pre mom %pre mom
if test -f %{torquehomedir}/mom_priv/mom.layout ; then if test -f %{torquehomedir}/mom_priv/mom.layout ; then
@ -584,14 +585,14 @@ if test -f %{torquehomedir}/mom_priv/mom.layout ; then
fi fi
%post mom %post mom
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%systemd_post pbs_mom.service %systemd_post pbs_mom.service
%else %else
/sbin/chkconfig --add pbs_mom /sbin/chkconfig --add pbs_mom
%endif %endif
%preun mom %preun mom
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%systemd_preun pbs_mom.service %systemd_preun pbs_mom.service
%else %else
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
@ -601,14 +602,14 @@ fi
%endif %endif
%post scheduler %post scheduler
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%systemd_post pbs_sched.service %systemd_post pbs_sched.service
%else %else
/sbin/chkconfig --add pbs_sched /sbin/chkconfig --add pbs_sched
%endif %endif
%preun scheduler %preun scheduler
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%systemd_preun pbs_sched.service %systemd_preun pbs_sched.service
%else %else
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
@ -618,14 +619,14 @@ fi
%endif %endif
%post server %post server
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%systemd_post pbs_server.service %systemd_post pbs_server.service
%else %else
/sbin/chkconfig --add pbs_server /sbin/chkconfig --add pbs_server
%endif %endif
%preun server %preun server
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%systemd_preun pbs_server.service %systemd_preun pbs_server.service
%else %else
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
@ -635,8 +636,7 @@ fi
%endif %endif
%files %files
%defattr(-, root, root, -) %doc README.torque torque.setup Release_Notes
%doc README.torque torque.setup Release_Notes
%doc CHANGELOG PBS_License.txt README.Fedora contrib/PBS_License_2.3.txt %doc CHANGELOG PBS_License.txt README.Fedora contrib/PBS_License_2.3.txt
%dir %{torquehomedir} %dir %{torquehomedir}
%dir %{torquehomedir}/aux %dir %{torquehomedir}/aux
@ -652,14 +652,13 @@ fi
%config(noreplace) %{_sysconfdir}/torque/server_name %config(noreplace) %{_sysconfdir}/torque/server_name
%{_mandir}/man1/pbs.1.* %{_mandir}/man1/pbs.1.*
%attr(0755, root, root) %{_sbindir}/trqauthd %attr(0755, root, root) %{_sbindir}/trqauthd
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%{_unitdir}/trqauthd.service %{_unitdir}/trqauthd.service
%else %else
%{_initrddir}/trqauthd %{_initrddir}/trqauthd
%endif %endif
%files client %files client
%defattr(-, root, root, -)
%{_bindir}/q* %{_bindir}/q*
%{_bindir}/chk_tree %{_bindir}/chk_tree
%{_bindir}/hostn %{_bindir}/hostn
@ -727,7 +726,6 @@ fi
%files docs %files docs
%defattr(-, root, root, -)
%doc doc/admin_guide.ps %doc doc/admin_guide.ps
%if 0%{?doxydoc} %if 0%{?doxydoc}
%doc src/drmaa/drmaa.pdf %doc src/drmaa/drmaa.pdf
@ -735,7 +733,6 @@ fi
%if %{build_gui} %if %{build_gui}
%files gui %files gui
%defattr(-, root, root, -)
%{_bindir}/pbs_wish %{_bindir}/pbs_wish
%{_bindir}/xpbs %{_bindir}/xpbs
%{_bindir}/xpbsmon %{_bindir}/xpbsmon
@ -748,15 +745,14 @@ fi
%endif %endif
%files libs %files libs
%defattr(-, root, root, -)
%{_libdir}/libtorque.so.* %{_libdir}/libtorque.so.*
%files devel %files devel
%defattr(-, root, root, -)
%{_libdir}/libtorque.so %{_libdir}/libtorque.so
%{_includedir}/torque %{_includedir}/torque
%exclude %{_includedir}/torque/drmaa.h %exclude %{_includedir}/torque/drmaa.h
%{_bindir}/pbs-config %{_bindir}/pbs-config
%{_bindir}/pbs-config-%{_arch}
%{_mandir}/man3/pbs_alterjob.3.* %{_mandir}/man3/pbs_alterjob.3.*
%{_mandir}/man3/pbs_connect.3.* %{_mandir}/man3/pbs_connect.3.*
%{_mandir}/man3/pbs_default.3.* %{_mandir}/man3/pbs_default.3.*
@ -792,13 +788,12 @@ fi
%{_mandir}/man3/tm.3.* %{_mandir}/man3/tm.3.*
%files mom %files mom
%defattr(-, root, root, -)
%{_sbindir}/momctl %{_sbindir}/momctl
%{_sbindir}/pbs_mom %{_sbindir}/pbs_mom
%{_sbindir}/qnoded %{_sbindir}/qnoded
%{_sbindir}/pbs_demux %{_sbindir}/pbs_demux
%{_bindir}/pbs_track %{_bindir}/pbs_track
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%{_unitdir}/pbs_mom.service %{_unitdir}/pbs_mom.service
%else %else
%{_initrddir}/pbs_mom %{_initrddir}/pbs_mom
@ -816,15 +811,13 @@ fi
%config(noreplace) %{_sysconfdir}/torque/mom/mom.layout %config(noreplace) %{_sysconfdir}/torque/mom/mom.layout
%files pam %files pam
%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 %files scheduler
%defattr(-, root, root, -)
%attr(0755, root, root) %{_sbindir}/pbs_sched %attr(0755, root, root) %{_sbindir}/pbs_sched
%{_sbindir}/qschedd %{_sbindir}/qschedd
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%{_unitdir}/pbs_sched.service %{_unitdir}/pbs_sched.service
%else %else
%{_initrddir}/pbs_sched %{_initrddir}/pbs_sched
@ -844,10 +837,9 @@ fi
%config(noreplace) %{_sysconfdir}/torque/sched/sched_config %config(noreplace) %{_sysconfdir}/torque/sched/sched_config
%files server %files server
%defattr(-, root, root, -)
%attr(0755, root, root) %{_sbindir}/pbs_server %attr(0755, root, root) %{_sbindir}/pbs_server
%{_sbindir}/qserverd %{_sbindir}/qserverd
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %if 0%{?rhel} >= 7 || 0%{?fedora}
%{_unitdir}/pbs_server.service %{_unitdir}/pbs_server.service
%else %else
%{_initrddir}/pbs_server %{_initrddir}/pbs_server
@ -858,18 +850,15 @@ fi
%{_mandir}/man8/pbs_server.8.* %{_mandir}/man8/pbs_server.8.*
%files drmaa %files drmaa
%defattr(-, root, root, -)
%{_libdir}/libdrmaa.so.* %{_libdir}/libdrmaa.so.*
%files drmaa-devel %files drmaa-devel
%defattr(-, root, root, -)
%{_libdir}/libdrmaa.so %{_libdir}/libdrmaa.so
%{_includedir}/torque/drmaa.h %{_includedir}/torque/drmaa.h
%if 0%{?doxydoc} %if 0%{?doxydoc}
%{_mandir}/man3/compat.h.3.* %{_mandir}/man3/compat.h.3.*
%{_mandir}/man3/drmaa.3.* %{_mandir}/man3/drmaa.3.*
%{_mandir}/man3/drmaa.h.3.* %{_mandir}/man3/drmaa.h.3.*
%if 0%{?rhel} >= 6 || 0%{?fedora} >= 6
%{_mandir}/man3/drmaa_attr_names_s.3.* %{_mandir}/man3/drmaa_attr_names_s.3.*
%{_mandir}/man3/drmaa_attr_values_s.3.* %{_mandir}/man3/drmaa_attr_values_s.3.*
%{_mandir}/man3/drmaa_attrib.3.* %{_mandir}/man3/drmaa_attrib.3.*
@ -878,7 +867,6 @@ fi
%{_mandir}/man3/drmaa_job_ids_s.3.* %{_mandir}/man3/drmaa_job_ids_s.3.*
%{_mandir}/man3/drmaa_def_attr_s.3.* %{_mandir}/man3/drmaa_def_attr_s.3.*
%{_mandir}/man3/pbs_attrib.3.* %{_mandir}/man3/pbs_attrib.3.*
%endif
%{_mandir}/man3/drmaa_viter.3.* %{_mandir}/man3/drmaa_viter.3.*
%{_mandir}/man3/drmaa_job_iter_s.3.* %{_mandir}/man3/drmaa_job_iter_s.3.*
%{_mandir}/man3/drmaa_job_s.3.* %{_mandir}/man3/drmaa_job_s.3.*
@ -893,6 +881,17 @@ fi
%endif %endif
%changelog %changelog
* Wed Jul 08 2020 Honggang Li <honli@redhat.com> - 4.2.10-25
- Rebase to latest Fedora release
- Fix file conflicts in torque-devel multilib packages
- Resolve: bz1853167
* Fri Jun 07 2019 Jarod Wilson <jarod@redhat.com> - 4.2.10-19
- Put pbs-config in base pkg where it belongs instead of -devel
* Fri May 31 2019 Jarod Wilson <jarod@redhat.com> - 4.2.10-18
- Rebuild for CI testing
* Wed Feb 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.10-17 * Wed Feb 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.10-17
- Remove old Requires - Remove old Requires