-
Notifications
You must be signed in to change notification settings - Fork 0
/
lmt.spec.in
74 lines (61 loc) · 1.55 KB
/
lmt.spec.in
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
Name: @META_NAME@
Version: @META_VERSION@
Release: @META_RELEASE@
# TODO: lmt-utils subpackage for ltop (once ltop can read proc directly)
License: GPL
Group: Applications/System
Summary: Lustre Montitoring Tool
URL: http://github.com/chaos/lmt
Packager: Ned Bass <[email protected]>
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: mysql, mysql-devel
BuildRequires: cerebro >= 1.3-5
BuildRequires: ncurses-devel
BuildRequires: lua-devel >= 5.1
#%define __spec_install_post /usr/lib/rpm/brp-compress || :
%define debug_package %{nil}
%description
Lustre Monitoring Tool
%package server
Summary: Lustre Monitoring Tools Server
Group: Applications/System
Requires: cerebro >= 1.3
Requires: mysql-server >= 4.1.20
Requires: perl-DBI
%description server
Lustre Monitoring Tools (LMT) Server
%package server-agent
Summary: Lustre Monitoring Tools Server Agent
Group: Applications/System
Requires: cerebro >= 1.3
%description server-agent
Lustre Monitoring Tools (LMT) Server Agent
%prep
%setup
%build
%configure
make
%check
SKIP_INTERACTIVE=true make -C test check
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%files server
%defattr(-,root,root)
%{_libdir}/cerebro/cerebro_monitor_lmt*
%{_sbindir}/lmtsh
%{_sbindir}/lmtinit
%{_bindir}/ltop
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_datadir}/lmt/*
%dir %{_sysconfdir}/lmt
%config(noreplace) %{_sysconfdir}/lmt/lmt.conf
%files server-agent
%{_libdir}/cerebro/cerebro_metric_lmt*
%{_sbindir}/lmtmetric