forked from jcftang/slurm-bank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slurm-bank.spec
74 lines (55 loc) · 2.11 KB
/
slurm-bank.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
# Pass --with docs to rpmbuild if you want the HTML documentation (requires ikiwiki)
Name: slurm-bank
Version: 1.4.2
Release: 1%{?dist}
Summary: SLURM Bank, a collection of wrapper scripts to do banking
Group: System
License: GPLv2
URL: http://www.tchpc.tcd.ie/
Source0: slurm-bank-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl, bash, rsync, make
Requires: slurm >= 2.2.0, perl, bash
%define path_settings HTMLDIR=%{_docdir}/%{name}-%{version}/html
%description
SLURM Bank, a collection of wrapper scripts for implementing full
resource allocation to replace Maui and GOLD.
With the scripts we are able to provide a simple banking system where we
can deposit hours to an account. Users are associated to these accounts
from which they can use to run jobs. If users do not have an account or
if they do not have hours in their account then they cannot run jobs.
%prep
%setup -q
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
%{path_settings} \
all %{?_with_docs: docs}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} \
%{path_settings} \
install %{?_with_docs: install-docs}
(find $RPM_BUILD_ROOT%{_bindir} -type f | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
install -m 644 src/sbank.bash_completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/sbank
%clean
rm -rf %{buildroot}
%files -f bin-man-doc-files
%defattr(-,root,root,-)
%doc AUTHORS README
%{_mandir}/*
%{_sysconfdir}/bash_completion.d
%if %{?_with_docs:1}0
%doc html/*
%else
%doc doc/*
%endif
%changelog
* Thu Jun 06 2013 Paddy Doyle <[email protected]> - 1.3.2
Add a '-s yyyy-mm-dd' start-date parameter to balance report.
* Thu May 30 2013 Paddy Doyle <[email protected]> - 1.3.1
Change usage reporting from sshare to sreport (change from local to Slurmdbd).
* Wed Jun 08 2011 Jimmy Tang <[email protected]> - 1.1.1.2-2
Include bash completion when installing
* Wed May 18 2011 Jimmy Tang <[email protected]> - 1.0-1
Initial creation of spec file