1 Summary: Portable Batch System
2 Summary(pl): Portable Batch System - przeno¶ny system wsadowy
6 License: Portable Batch System (PBS) Software License
7 Group: Applications/Networking
8 Source0: %{name}_2_3_16.tar.gz
17 URL: http://www.openpbs.org/
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The Portable Batch System (PBS) is a flexible batch software
24 processing system developed at NASA Ames Research Center. It operates
25 on networked, multi-platform UNIX environments, including
26 heterogeneous clusters of workstations, supercomputers, and massively
30 PBS (Portable Batch System - przeno¶ny system wsadowy) jest
31 elastycznym oprogramowaniem do przetwarzania wsadowego rozwijanym w
32 NASA Ames Research Center. Dzia³a w usieciowionych, wieloplatformowych
33 ¶rodowiskach uniksowych, w³±cznie z heterogenicznymi klastrami stacji
34 roboczych, superkomputerów i systemów masowego przetwarzania
38 Summary: PBS client daemon: pbs_mom
39 Summary(pl): Demon kliencki PBS: pbs_mom
40 Group: Applications/Networking
42 Requires(post,preun): /sbin/chkconfig
43 Requires: %{name} = %{version}
46 This package contains the PBS client daemon pbs_mom executable and
49 %description mom -l pl
50 Ten pakiet zawiera demona klienckiego pbs_mom i jego skrypt startowy.
53 Summary: PBS server daemon: pbs_server
54 Summary(pl): Demon serwera PBS: pbs_server
55 Group: Applications/Networking
57 Requires(post,preun): /sbin/chkconfig
58 Requires: %{name} = %{version}
61 This package contains the PBS server daemon pbs_server executable and
64 %description server -l pl
65 Ten pakiet zawiera demona serwera PBS (pbs_server) i jego skrypt
69 Summary: PBS scheduler daemon: pbs_sched
70 Summary(pl): Demon schedulera PBS: pbs_sched
71 Group: Applications/Networking
73 Requires(post,preun): /sbin/chkconfig
74 Requires: %{name} = %{version}
77 This package contains the PBS scheduler daemon pbs_sched executable
80 %description sched -l pl
81 Ten pakiet zawiera demona schedulera pbs_sched i jego skrypt startowy.
84 %setup -q -n %{name}_%(echo %{version} | tr . _)
93 patch -p1 < %{SOURCE8}
96 pbs_server_home=/var/spool/pbs
98 ./configure --prefix=${_prefix} --set-server-home=${pbs_server_home} --mandir=$RPM_BUILD_ROOT%{_mandir} --enable-docs --enable-server --enable-mom --enable-clients --disable-gui --set-default-server=localhost --enable-tcl-qstat --with-scp --with-tcl --enable-syslog
100 cp buildutils/pbs_mkdirs buildutils/pbs_mkdirs.orig
101 cp src/scheduler.cc/samples/fifo/Makefile src/scheduler.cc/samples/fifo/Makefile.orig
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
108 install -d $RPM_BUILD_ROOT%{_datadir}
109 install -d $RPM_BUILD_ROOT/var/spool/pbs
110 # kludge pbs_mkdirs to create things in $RPM_BUILD_ROOT
112 cat buildutils/pbs_mkdirs.orig | sed -e 's|%{_prefix}|$RPM_BUILD_ROOT%{_prefix}|' | sed -e 's|/var/spool|$RPM_BUILD_ROOT/var/spool|' >buildutils/pbs_mkdirs
113 # kludge scheduler install
114 cat src/scheduler.cc/samples/fifo/Makefile.orig | sed -e 's|%{_prefix}|$(RPM_BUILD_ROOT)%{_prefix}|' | sed -e 's|/var/spool|$(RPM_BUILD_ROOT)/var/spool|' >src/scheduler.cc/samples/fifo/Makefile
116 #make install prefix=$RPM_BUILD_ROOT/usr PBS_SERVER_HOME=$RPM_BUILD_ROOT/var/spool/pbs
117 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix}
119 #cp INSTALL PBS_License.text Read.Me Release_Notes $RPM_BUILD_ROOT/usr
121 cp pbs_mom pbs_server pbs_sched $RPM_BUILD_ROOT/etc/rc.d/init.d
123 #cp pbsenv.sh pbsenv.csh $RPM_BUILD_ROOT/usr/bin
124 cp pbsrun pbsconfig $RPM_BUILD_ROOT%{_bindir}
125 # make sure all the config files exist
126 touch $RPM_BUILD_ROOT/var/spool/pbs/default_server
127 touch $RPM_BUILD_ROOT/var/spool/pbs/server_name
128 touch $RPM_BUILD_ROOT/var/spool/pbs/mom_priv/config
129 touch $RPM_BUILD_ROOT/var/spool/pbs/sched_priv/sched_config
130 touch $RPM_BUILD_ROOT/var/spool/pbs/server_priv/nodes
133 rm -rf $RPM_BUILD_ROOT
136 /sbin/chkconfig --add pbs_mom
137 if [ -f /var/lock/subsys/pbs_mom ]; then
138 /etc/rc.d/init.d/pbs_mom restart >/dev/null 2>&1
140 echo "Run \"/etc/rc.d/init.d/pbs_mom start\" to start pbs_mom daemon."
144 if [ "$1" = "0" ]; then
145 if [ -f /var/lock/subsys/pbs_mom ]; then
146 /etc/rc.d/init.d/pbs_mom stop >&2
148 /sbin/chkconfig --del pbs_mom
152 /sbin/chkconfig --add pbs_server
153 if [ -f /var/lock/subsys/pbs_server ]; then
154 /etc/rc.d/init.d/pbs_server restart >/dev/null 2>&1
156 echo "Run \"/etc/rc.d/init.d/pbs_server start\" to start pbs_server daemon."
160 if [ "$1" = "0" ]; then
161 if [ -f /var/lock/subsys/pbs_server ]; then
162 /etc/rc.d/init.d/pbs_server stop >&2
164 /sbin/chkconfig --del pbs_server
168 /sbin/chkconfig --add pbs_sched
169 if [ -f /var/lock/subsys/pbs_shed ]; then
170 /etc/rc.d/init.d/pbs_shed restart >/dev/null 2>&1
172 echo "Run \"/etc/rc.d/init.d/pbs_shed start\" to start pbs_shed daemon."
176 if [ "$1" = "0" ]; then
177 if [ -f /var/lock/subsys/pbs_sched ]; then
178 /etc/rc.d/init.d/pbs_sched stop >&2
180 /sbin/chkconfig --del pbs_sched
184 %defattr(644,root,root,755)
186 %doc PBS_License.text
189 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/default_server
190 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/pbs_environment
191 %attr(755,root,root) %{_bindir}/chk_tree
192 %attr(755,root,root) %{_bindir}/hostn
193 %attr(755,root,root) %{_bindir}/nqs2pbs
194 %attr(755,root,root) %{_bindir}/pbs_tclsh
195 %attr(755,root,root) %{_bindir}/pbsconfig
196 %attr(755,root,root) %{_bindir}/pbsdsh
199 %attr(755,root,root) %{_bindir}/pbsnodes
200 %attr(755,root,root) %{_bindir}/pbsrun
201 %attr(755,root,root) %{_bindir}/printjob
202 %attr(755,root,root) %{_bindir}/qalter
203 %attr(755,root,root) %{_bindir}/qdel
204 %attr(755,root,root) %{_bindir}/qdisable
205 %attr(755,root,root) %{_bindir}/qenable
206 %attr(755,root,root) %{_bindir}/qhold
207 %attr(755,root,root) %{_bindir}/qmgr
208 %attr(755,root,root) %{_bindir}/qmove
209 %attr(755,root,root) %{_bindir}/qmsg
210 %attr(755,root,root) %{_bindir}/qorder
211 %attr(755,root,root) %{_bindir}/qrerun
212 %attr(755,root,root) %{_bindir}/qrls
213 %attr(755,root,root) %{_bindir}/qrun
214 %attr(755,root,root) %{_bindir}/qselect
215 %attr(755,root,root) %{_bindir}/qsig
216 %attr(755,root,root) %{_bindir}/qstart
217 %attr(755,root,root) %{_bindir}/qstat
218 %attr(755,root,root) %{_bindir}/qstop
219 %attr(755,root,root) %{_bindir}/qsub
220 %attr(755,root,root) %{_bindir}/qterm
221 %attr(755,root,root) %{_bindir}/tracejob
222 %attr(755,root,root) %{_sbindir}/pbs_demux
223 %attr(4755,root,root) %{_sbindir}/pbs_iff
224 %attr(755,root,root) %{_sbindir}/pbs_rcp
231 %{_libdir}/pbs_sched.a
233 %{_includedir}/pbs_error.h
234 %{_includedir}/pbs_ifl.h
240 %defattr(644,root,root,755)
241 %attr(744,root,root) /etc/rc.d/init.d/pbs_mom
242 %attr(755,root,root) %{_sbindir}/pbs_mom
243 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/mom_priv/config
244 %dir /var/spool/pbs/mom_priv
245 %dir /var/spool/pbs/mom_priv/jobs
246 %dir /var/spool/pbs/mom_logs
249 %defattr(644,root,root,755)
250 %attr(744,root,root) /etc/rc.d/init.d/pbs_server
251 %attr(755,root,root) %{_sbindir}/pbs_server
252 %dir /var/spool/pbs/server_priv
253 %dir /var/spool/pbs/server_priv/jobs
254 %dir /var/spool/pbs/server_priv/queues
255 %dir /var/spool/pbs/server_priv/acl_svr
256 %dir /var/spool/pbs/server_priv/acl_hosts
257 %dir /var/spool/pbs/server_priv/acl_users
258 %dir /var/spool/pbs/server_priv/acl_groups
259 %dir /var/spool/pbs/server_priv/accounting
260 %dir /var/spool/pbs/server_logs
262 %dir /var/spool/pbs/spool
263 %dir /var/spool/pbs/aux
264 %dir /var/spool/pbs/checkpoint
265 %dir /var/spool/pbs/undelivered
266 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/server_name
267 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/server_priv/nodes
270 %defattr(644,root,root,755)
271 %attr(744,root,root) /etc/rc.d/init.d/pbs_sched
272 %attr(755,root,root) %{_sbindir}/pbs_sched
273 %dir /var/spool/pbs/sched_priv
274 %dir /var/spool/pbs/sched_logs
275 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/sched_priv/sched_config
276 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/sched_priv/resource_group
277 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/sched_priv/holidays
278 %config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) /var/spool/pbs/sched_priv/dedicated_time