]>
Commit | Line | Data |
---|---|---|
6781ee2b | 1 | Summary: Portable Batch System |
e4ab3ffb | 2 | Summary(pl.UTF-8): Portable Batch System - przenośny system wsadowy |
6781ee2b | 3 | Name: OpenPBS |
4 | Version: 2.3.16 | |
5 | Release: 0.1 | |
18a7ede0 | 6 | License: Portable Batch System (PBS) Software License |
6781ee2b | 7 | Group: Applications/Networking |
6781ee2b | 8 | Source0: %{name}_2_3_16.tar.gz |
7ce3e901 | 9 | # Source0-md5: 42be627d513839a2daf258692b0092aa |
6781ee2b | 10 | Source1: pbs_mom |
11 | Source2: pbs_server | |
12 | Source3: pbs_sched | |
13 | Source4: pbsrun | |
18a7ede0 JB |
14 | #Source5: pbsenv.sh |
15 | #Source6: pbsenv.csh | |
6781ee2b | 16 | Source7: pbsconfig |
17 | Source8: patch.ko | |
18a7ede0 | 18 | URL: http://www.openpbs.org/ |
9d2ea922 | 19 | BuildRequires: rpmbuild(macros) >= 1.268 |
18a7ede0 JB |
20 | Requires: tcl |
21 | Requires: tk | |
6781ee2b | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | The Portable Batch System (PBS) is a flexible batch software | |
26 | processing system developed at NASA Ames Research Center. It operates | |
27 | on networked, multi-platform UNIX environments, including | |
28 | heterogeneous clusters of workstations, supercomputers, and massively | |
29 | parallel systems. | |
30 | ||
ce0ffec7 JR |
31 | %description -l pl.UTF-8 |
32 | PBS (Portable Batch System - przenośny system wsadowy) jest | |
18a7ede0 | 33 | elastycznym oprogramowaniem do przetwarzania wsadowego rozwijanym w |
ce0ffec7 JR |
34 | NASA Ames Research Center. Działa w usieciowionych, wieloplatformowych |
35 | środowiskach uniksowych, włącznie z heterogenicznymi klastrami stacji | |
36 | roboczych, superkomputerów i systemów masowego przetwarzania | |
37 | równoległego. | |
6781ee2b | 38 | |
39 | %package mom | |
40 | Summary: PBS client daemon: pbs_mom | |
e4ab3ffb | 41 | Summary(pl.UTF-8): Demon kliencki PBS: pbs_mom |
18a7ede0 | 42 | Group: Applications/Networking |
18a7ede0 | 43 | Requires(post,preun): /sbin/chkconfig |
820948c0 | 44 | Requires: %{name} = %{version}-%{release} |
9d2ea922 | 45 | Requires: rc-scripts |
18a7ede0 | 46 | |
6781ee2b | 47 | %description mom |
48 | This package contains the PBS client daemon pbs_mom executable and | |
49 | startup script. | |
50 | ||
ce0ffec7 | 51 | %description mom -l pl.UTF-8 |
18a7ede0 JB |
52 | Ten pakiet zawiera demona klienckiego pbs_mom i jego skrypt startowy. |
53 | ||
6781ee2b | 54 | %package server |
55 | Summary: PBS server daemon: pbs_server | |
e4ab3ffb | 56 | Summary(pl.UTF-8): Demon serwera PBS: pbs_server |
18a7ede0 | 57 | Group: Applications/Networking |
18a7ede0 | 58 | Requires(post,preun): /sbin/chkconfig |
820948c0 | 59 | Requires: %{name} = %{version}-%{release} |
9d2ea922 | 60 | Requires: rc-scripts |
18a7ede0 | 61 | |
6781ee2b | 62 | %description server |
63 | This package contains the PBS server daemon pbs_server executable and | |
64 | startup script. | |
65 | ||
ce0ffec7 | 66 | %description server -l pl.UTF-8 |
18a7ede0 JB |
67 | Ten pakiet zawiera demona serwera PBS (pbs_server) i jego skrypt |
68 | startowy. | |
69 | ||
6781ee2b | 70 | %package sched |
71 | Summary: PBS scheduler daemon: pbs_sched | |
e4ab3ffb | 72 | Summary(pl.UTF-8): Demon schedulera PBS: pbs_sched |
18a7ede0 | 73 | Group: Applications/Networking |
18a7ede0 | 74 | Requires(post,preun): /sbin/chkconfig |
820948c0 | 75 | Requires: %{name} = %{version}-%{release} |
9d2ea922 | 76 | Requires: rc-scripts |
18a7ede0 | 77 | |
6781ee2b | 78 | %description sched |
79 | This package contains the PBS scheduler daemon pbs_sched executable | |
80 | and startup script. | |
81 | ||
ce0ffec7 | 82 | %description sched -l pl.UTF-8 |
18a7ede0 | 83 | Ten pakiet zawiera demona schedulera pbs_sched i jego skrypt startowy. |
6781ee2b | 84 | |
85 | %prep | |
18a7ede0 | 86 | %setup -q -n %{name}_%(echo %{version} | tr . _) |
6781ee2b | 87 | cp %{SOURCE1} . |
88 | cp %{SOURCE2} . | |
89 | cp %{SOURCE3} . | |
90 | cp %{SOURCE4} . | |
91 | #cp %{SOURCE5} . | |
92 | #cp %{SOURCE6} . | |
93 | cp %{SOURCE7} . | |
94 | #cp %{SOURCE8} . | |
95 | patch -p1 < %{SOURCE8} | |
96 | ||
97 | %build | |
98 | pbs_server_home=/var/spool/pbs | |
99 | ||
100 | ./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 | |
101 | %{__make} | |
102 | cp buildutils/pbs_mkdirs buildutils/pbs_mkdirs.orig | |
103 | cp src/scheduler.cc/samples/fifo/Makefile src/scheduler.cc/samples/fifo/Makefile.orig | |
104 | ||
105 | %install | |
6781ee2b | 106 | rm -rf $RPM_BUILD_ROOT |
9d2ea922 | 107 | # make directories |
18a7ede0 | 108 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
6781ee2b | 109 | install -d $RPM_BUILD_ROOT%{_datadir} |
110 | install -d $RPM_BUILD_ROOT/var/spool/pbs | |
111 | # kludge pbs_mkdirs to create things in $RPM_BUILD_ROOT | |
112 | ||
113 | 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 | |
114 | # kludge scheduler install | |
115 | 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 | # run make install | |
9d2ea922 | 117 | #make install prefix=$RPM_BUILD_ROOT%{_prefix} PBS_SERVER_HOME=$RPM_BUILD_ROOT/var/spool/pbs |
6781ee2b | 118 | %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} |
119 | # copy docs | |
9d2ea922 | 120 | #cp INSTALL PBS_License.text Read.Me Release_Notes $RPM_BUILD_ROOT%{_prefix} |
6781ee2b | 121 | # copy startup files |
122 | cp pbs_mom pbs_server pbs_sched $RPM_BUILD_ROOT/etc/rc.d/init.d | |
123 | # copy scripts | |
9d2ea922 | 124 | #cp pbsenv.sh pbsenv.csh $RPM_BUILD_ROOT%{_bindir} |
6781ee2b | 125 | cp pbsrun pbsconfig $RPM_BUILD_ROOT%{_bindir} |
126 | # make sure all the config files exist | |
32bed2b8 | 127 | touch $RPM_BUILD_ROOT/var/spool/pbs/default_server |
128 | touch $RPM_BUILD_ROOT/var/spool/pbs/server_name | |
129 | touch $RPM_BUILD_ROOT/var/spool/pbs/mom_priv/config | |
130 | touch $RPM_BUILD_ROOT/var/spool/pbs/sched_priv/sched_config | |
131 | touch $RPM_BUILD_ROOT/var/spool/pbs/server_priv/nodes | |
6781ee2b | 132 | |
18a7ede0 JB |
133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
6781ee2b | 135 | |
136 | %post mom | |
137 | /sbin/chkconfig --add pbs_mom | |
9d2ea922 | 138 | %service pbs_mom restart "pbs_mom daemon" |
6781ee2b | 139 | |
140 | %preun mom | |
141 | if [ "$1" = "0" ]; then | |
9d2ea922 | 142 | %service pbs_mom stop |
32bed2b8 | 143 | /sbin/chkconfig --del pbs_mom |
6781ee2b | 144 | fi |
145 | ||
146 | %post server | |
147 | /sbin/chkconfig --add pbs_server | |
9d2ea922 | 148 | %service pbs_server restart "pbs_server daemon" |
6781ee2b | 149 | |
150 | %preun server | |
151 | if [ "$1" = "0" ]; then | |
9d2ea922 | 152 | %service pbs_server stop |
32bed2b8 | 153 | /sbin/chkconfig --del pbs_server |
6781ee2b | 154 | fi |
155 | ||
156 | %post sched | |
157 | /sbin/chkconfig --add pbs_sched | |
9d2ea922 | 158 | %service pbs_shed restart "pbs_shed daemon" |
6781ee2b | 159 | |
160 | %preun sched | |
161 | if [ "$1" = "0" ]; then | |
9d2ea922 | 162 | %service pbs_sched stop |
32bed2b8 | 163 | /sbin/chkconfig --del pbs_sched |
6781ee2b | 164 | fi |
165 | ||
6781ee2b | 166 | %files |
167 | %defattr(644,root,root,755) | |
820948c0 JB |
168 | %doc INSTALL PBS_License.text Read.Me Release_Notes |
169 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/default_server | |
170 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/pbs_environment | |
6781ee2b | 171 | %attr(755,root,root) %{_bindir}/chk_tree |
172 | %attr(755,root,root) %{_bindir}/hostn | |
173 | %attr(755,root,root) %{_bindir}/nqs2pbs | |
174 | %attr(755,root,root) %{_bindir}/pbs_tclsh | |
175 | %attr(755,root,root) %{_bindir}/pbsconfig | |
176 | %attr(755,root,root) %{_bindir}/pbsdsh | |
9d2ea922 ER |
177 | #%{_bindir}/pbsenv.csh |
178 | #%{_bindir}/pbsenv.sh | |
6781ee2b | 179 | %attr(755,root,root) %{_bindir}/pbsnodes |
180 | %attr(755,root,root) %{_bindir}/pbsrun | |
181 | %attr(755,root,root) %{_bindir}/printjob | |
182 | %attr(755,root,root) %{_bindir}/qalter | |
183 | %attr(755,root,root) %{_bindir}/qdel | |
184 | %attr(755,root,root) %{_bindir}/qdisable | |
185 | %attr(755,root,root) %{_bindir}/qenable | |
186 | %attr(755,root,root) %{_bindir}/qhold | |
187 | %attr(755,root,root) %{_bindir}/qmgr | |
188 | %attr(755,root,root) %{_bindir}/qmove | |
189 | %attr(755,root,root) %{_bindir}/qmsg | |
190 | %attr(755,root,root) %{_bindir}/qorder | |
191 | %attr(755,root,root) %{_bindir}/qrerun | |
192 | %attr(755,root,root) %{_bindir}/qrls | |
193 | %attr(755,root,root) %{_bindir}/qrun | |
194 | %attr(755,root,root) %{_bindir}/qselect | |
195 | %attr(755,root,root) %{_bindir}/qsig | |
196 | %attr(755,root,root) %{_bindir}/qstart | |
197 | %attr(755,root,root) %{_bindir}/qstat | |
198 | %attr(755,root,root) %{_bindir}/qstop | |
199 | %attr(755,root,root) %{_bindir}/qsub | |
200 | %attr(755,root,root) %{_bindir}/qterm | |
201 | %attr(755,root,root) %{_bindir}/tracejob | |
202 | %attr(755,root,root) %{_sbindir}/pbs_demux | |
203 | %attr(4755,root,root) %{_sbindir}/pbs_iff | |
204 | %attr(755,root,root) %{_sbindir}/pbs_rcp | |
205 | %{_libdir}/libattr.a | |
206 | %{_libdir}/libcmds.a | |
207 | %{_libdir}/liblog.a | |
208 | %{_libdir}/libnet.a | |
209 | %{_libdir}/libpbs.a | |
210 | %{_libdir}/libsite.a | |
211 | %{_libdir}/pbs_sched.a | |
9d2ea922 | 212 | #%{_prefix}/lib/pbs |
6781ee2b | 213 | %{_includedir}/pbs_error.h |
214 | %{_includedir}/pbs_ifl.h | |
215 | %{_includedir}/tm.h | |
216 | %{_includedir}/tm_.h | |
217 | %doc %{_mandir} | |
218 | ||
219 | %files mom | |
220 | %defattr(644,root,root,755) | |
b3fb6dab | 221 | %attr(754,root,root) /etc/rc.d/init.d/pbs_mom |
6781ee2b | 222 | %attr(755,root,root) %{_sbindir}/pbs_mom |
820948c0 | 223 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/mom_priv/config |
6781ee2b | 224 | %dir /var/spool/pbs/mom_priv |
225 | %dir /var/spool/pbs/mom_priv/jobs | |
226 | %dir /var/spool/pbs/mom_logs | |
227 | ||
228 | %files server | |
229 | %defattr(644,root,root,755) | |
b3fb6dab | 230 | %attr(754,root,root) /etc/rc.d/init.d/pbs_server |
6781ee2b | 231 | %attr(755,root,root) %{_sbindir}/pbs_server |
232 | %dir /var/spool/pbs/server_priv | |
233 | %dir /var/spool/pbs/server_priv/jobs | |
234 | %dir /var/spool/pbs/server_priv/queues | |
235 | %dir /var/spool/pbs/server_priv/acl_svr | |
236 | %dir /var/spool/pbs/server_priv/acl_hosts | |
237 | %dir /var/spool/pbs/server_priv/acl_users | |
238 | %dir /var/spool/pbs/server_priv/acl_groups | |
239 | %dir /var/spool/pbs/server_priv/accounting | |
240 | %dir /var/spool/pbs/server_logs | |
241 | %dir /var/spool/pbs | |
242 | %dir /var/spool/pbs/spool | |
243 | %dir /var/spool/pbs/aux | |
244 | %dir /var/spool/pbs/checkpoint | |
245 | %dir /var/spool/pbs/undelivered | |
820948c0 JB |
246 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/server_name |
247 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/server_priv/nodes | |
6781ee2b | 248 | |
249 | %files sched | |
250 | %defattr(644,root,root,755) | |
b3fb6dab | 251 | %attr(754,root,root) /etc/rc.d/init.d/pbs_sched |
6781ee2b | 252 | %attr(755,root,root) %{_sbindir}/pbs_sched |
253 | %dir /var/spool/pbs/sched_priv | |
254 | %dir /var/spool/pbs/sched_logs | |
820948c0 JB |
255 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/sched_priv/sched_config |
256 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/sched_priv/resource_group | |
257 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/sched_priv/holidays | |
258 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /var/spool/pbs/sched_priv/dedicated_time |