forked from tabaer/pbstools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pbstools.spec
278 lines (225 loc) · 7.44 KB
/
pbstools.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
%{!?ver: %global ver 3.4.5}
%{!?rel: %global rel 1}
Summary: Tools for the PBS family of batch systems (OpenPBS, PBS Pro, TORQUE)
Name: pbstools
Version: %{ver}
Release: %{rel}%{?dist}
License: GPLv2
Group: System Environment/Base
Vendor: Ohio Supercomputer Center
URL: http://www.osc.edu/~troy/pbstools
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Prefix: /usr
Prefix: /var/www/html/pbsacct
%description
Several utilities that have been developed at OSC, NICS, and elsewhere
to aid in the administration and management of PBS variants (including
OpenPBS, PBS Pro, and TORQUE).
%package ja
Summary: PBStools Job Accounting
Group: System Environment/Base
Requires: python
%description ja
ja provides job accounting within a PBS job, similar to the command of
the same name in NQE.
%package pbsdcp
Summary: PBStools Distributed Copy
Group: System Environment/Base
Requires: perl
%description pbsdcp
pbsdcp is a distributed copy command within a PBS job.
%package sge-compat
Summary: PBStools Grid Engine Compatibility
Group: System Environment/Base
Requires: perl
%description sge-compat
qexec is a PBS workalike for the SGE qlogin, qrsh, and qsh commands.
%package -n supermover
Summary: Supermover
Group: System Environment/Base
Requires: python
%description -n supermover
supermover is a highly configurable wrapper around other data transfer
utilities such as scp, globus-url-copy, and hsi.
%package dmsub
Summary: PBStools Data Movement Job Submission
Group: System Environment/Base
Requires: python,supermover
%description dmsub
dmsub is a tool for submitting data movement jobs. It understands data
transfer descriptions in the formats of DMOVER, RFT, and Stork; it can
also use several different data movement tools, including supermover.
%package dagsub
Summary: PBStools Directed Acyclic Graph Job Submission
Group: System Environment/Base
Requires: python,dmsub
%description dagsub
dagsub is a workalike for condor_submit_dag. This allows the
submission of large, complex sets of dependent jobs using a relatively
simple syntax. It relies on dmsub for data movement.
%package job-vm-launch
Summary: PBStools VM Launcher
Group: System Environment/Base
Requires: python,libvirt-python
%description job-vm-launch
job-vm-launch launches a virtual machine instance within a TORQUE job
using KVM. It should be installed on compute nodes running pbs_mom
and libvirtd/qemu-kvm.
%package jobarray-to-pcp
Summary: PBStools Job Array to PCP
Group: System Environment/Base
Requires: python
%description jobarray-to-pcp
Run the equivalent of a TORQUE job array using parallel-command-processor.
%package pbs-spark-submit
Summary: PBStools Spark Launcher
Group: System Environment/Base
Requires: python
%description pbs-spark-submit
pbs-spark-submit launches an Apache Spark program within a TORQUE job,
including starting the Spark master and worker processes in standalone
mode by default.
%package reaver
Summary: PBStools Process Killer
Group: System Environment/Base
Requires: perl
%description reaver
reaver is a tool to find (and optionally clean up) processes on a PBS host
which have not been allocated jobs on that host.
%package -n pbsacct-python
Summary: pbsacct Python library
Group: System Environment/Base
Requires: python
BuildRequires: python-setuptools
%description -n pbsacct-python
pbsacct.py is a module for parsing and processing PBS accounting log files.
%package -n pbsacct-collector
Summary: pbsacct Data Collector
Group: System Environment/Base
Requires: perl,perl-DBD-MySQL,python,pbsacct-python
%description -n pbsacct-collector
pbsacct-collector is the data collection core of the pbsacct workload
analysis system. It should be installed on the same host as a
pbs_server instance for OpenPBS, PBS Pro, or TORQUE.
%package -n pbsacct-php
Summary: pbsacct Web Front End
Group: System Environment/Base
Requires: httpd,php
Requires: php-pear-DB
Requires: php-mysql
Requires: pbsacct-php-excel
Requires: pbsacct-php-ods
%description -n pbsacct-php
pbsacct-php is the web front end for the pbsacct workload analysis
system. It should be installed on a web server host.
%package -n pbsacct-php-excel
Summary: pbsacct-php-excel
Group: System Environment/Base
Requires: php
%description -n pbsacct-php-excel
External PHP Excel library for pbsacct-php
%package -n pbsacct-php-ods
Summary: pbsacct-php-ods
Group: System Environment/Base
Requires: php
%description -n pbsacct-php-ods
External PHP ods library for pbsacct-php
%package -n pbsacct-db
Summary: pbsacct Database Backend
Group: System Environment/Base
Requires: mysql-server
%description -n pbsacct-db
pbsacct-db is the database backend for the pbsacct workload analysis
system. It should be installed on a database server running MySQL.
%package -n pbsacct-jobscript-watcher
Summary: pbsacct Job Script Capture Service
Group: System Environment/Base
Requires: inotify-tools,perl
%description -n pbsacct-jobscript-watcher
pbsacct-jobscript-watcher is an optional part of the pbsacct workload
analysis system that captures job scripts as they are submitted. It
should be installed on the same host as a pbs_server instance for
OpenPBS, PBS Pro, or TORQUE.
%prep
%setup -q
%install
make PREFIX=%{buildroot}/%{_prefix} WEBPREFIX=%{buildroot}/var/www/html/pbsacct CFGPREFIX=%{buildroot}/%{_sysconfdir} ROOT=%{buildroot} install dbtools
%files
%doc README
%doc INSTALL
%doc deprecated.txt
%files ja
%{_bindir}/ja
%doc %{_mandir}/man1/ja.1.gz
%files pbsdcp
%{_bindir}/pbsdcp
%doc %{_mandir}/man1/pbsdcp.1.gz
%files sge-compat
%{_bindir}/qexec
%{_bindir}/qlogin
%{_bindir}/qmpiexec
%{_bindir}/qmpirun
%{_bindir}/qrsh
%{_bindir}/qsh
%doc %{_mandir}/man1/qexec.1.gz
%doc %{_mandir}/man1/qlogin.1.gz
%doc %{_mandir}/man1/qmpiexec.1.gz
%doc %{_mandir}/man1/qmpirun.1.gz
%doc %{_mandir}/man1/qrsh.1.gz
%doc %{_mandir}/man1/qsh.1.gz
%files -n supermover
%{_bindir}/supermover
%config(noreplace) /%{_sysconfdir}/supermover.cfg
%doc %{_mandir}/man1/supermover.1.gz
%files dmsub
%{_bindir}/dmsub
%config(noreplace) /%{_sysconfdir}/dmsub.cfg
%doc %{_mandir}/man1/dmsub.1.gz
%files dagsub
%{_bindir}/dagsub
%doc %{_mandir}/man1/dagsub.1.gz
%files job-vm-launch
%{_bindir}/job-vm-launch
%doc %{_mandir}/man1/job-vm-launch.1.gz
%files jobarray-to-pcp
%{_bindir}/jobarray-to-pcp
%doc %{_mandir}/man1/jobarray-to-pcp.1.gz
%files pbs-spark-submit
%{_bindir}/pbs-spark-submit
%doc %{_mandir}/man1/pbs-spark-submit.1.gz
%files reaver
%{_sbindir}/reaver
%doc %{_mandir}/man8/reaver.8.gz
%files -n pbsacct-python
%{python_sitelib}/pbsacct-*
%{python_sitelib}/pbsacct/__init__.py
%{python_sitelib}/pbsacct/__init__.pyc
%{python_sitelib}/pbsacct/__init__.pyo
%{_sbindir}/transform-accounting-log
%files -n pbsacct-collector
%{_sbindir}/job-db-update
%{_sbindir}/jobscript-to-db
%{_sbindir}/spool-jobscripts
%{_sbindir}/sw_app-index
%{_sbindir}/sw_app-cache
%files -n pbsacct-php
%dir /var/www/html/pbsacct
%config(noreplace) /var/www/html/pbsacct/default.css
%config(noreplace) /var/www/html/pbsacct/db.cfg
/var/www/html/pbsacct/*.php
/var/www/html/pbsacct/*.js
%files -n pbsacct-php-excel
/var/www/html/pbsacct/phplib/Excel
%files -n pbsacct-php-ods
/var/www/html/pbsacct/phplib/ods.php
/var/www/html/pbsacct/phplib/ODS
%files -n pbsacct-db
%dir %{_sysconfdir}/pbsacct
%{_sysconfdir}/pbsacct/create-tables.mysql
%{_sysconfdir}/pbsacct/create-tables.sqlite
%config(noreplace) %{_sysconfdir}/pbsacctdb.cfg
%files -n pbsacct-jobscript-watcher
%{_sbindir}/jobscript-watcher
%{_sysconfdir}/init.d/jobscript-watcher