-
Notifications
You must be signed in to change notification settings - Fork 0
/
torque-meter.spec
74 lines (51 loc) · 2.07 KB
/
torque-meter.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
Name: torque-meter
Version: 1.1
Release: 1%{?dist}
Summary: Gratia probe to collect current running stats.
Group: Grid/Accounting
License: Apache 2.0
URL: http://hcc.unl.edu
# To generate source:
# git archive master --format=tar --prefix=torque-meter-1.0/ | gzip >torque-meter-1.0.tar.gz
Source0: torque-meter-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: gratia-probe-common
Requires: gratia-probe-services
BuildArch: noarch
%description
%{summary}
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}/gratia/torque-meter
install -m 644 ProbeConfig $RPM_BUILD_ROOT%{_sysconfdir}/gratia/torque-meter/ProbeConfig
install -m 644 meter.conf $RPM_BUILD_ROOT%{_sysconfdir}/gratia/torque-meter/meter.conf
install -d $RPM_BUILD_ROOT%{_sbindir}
install -m 700 TORQUE_meter_SAX.py $RPM_BUILD_ROOT%{_sbindir}/torque-meter
install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
install -m 644 torque-meter-gratia-probe.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/torque-meter-gratia-probe.cron
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/gratia/torque-meter/ProbeConfig
%config(noreplace) %{_sysconfdir}/gratia/torque-meter/meter.conf
%{_sbindir}/torque-meter
%{_sysconfdir}/cron.d/torque-meter-gratia-probe.cron
%changelog
* Mon Feb 27 2012 Derek Weitzel <[email protected]> - 1.1-1
- Updating to version 1.1 upstream
* Fri Feb 10 2012 Derek Weitzel <[email protected]> - 1.0-6
- Fixing cron permissions
* Fri Feb 10 2012 Derek Weitzel <[email protected]> - 1.0-5
- Fixing configuration reading
* Fri Feb 10 2012 Derek Weitzel <[email protected]> - 1.0-4
- Cron and configuration reading
* Fri Feb 10 2012 Derek Weitzel <[email protected]> - 1.0-3
- Fixing config files
* Fri Feb 10 2012 Derek Weitzel <[email protected]> - 1.0-2
- Fixing Probeconfig for rpm
* Fri Feb 10 2012 Derek Weitzel <[email protected]> - 1.0-1
- Initial package of torque-meter