-
Notifications
You must be signed in to change notification settings - Fork 23
/
lmt.spec.in
85 lines (70 loc) · 1.71 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
75
76
77
78
79
80
81
82
83
84
85
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
License: GPL
Group: Applications/System
Summary: Lustre Montitoring Tool
URL: http://github.com/chaos/lmt
Packager: Ned Bass <bass6@llnl.gov>
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
# MySQL was replaced with MariaDB in RHEL 8
%if 0%{?rhel} >= 8
BuildRequires: mariadb, mariadb-devel
%else
BuildRequires: mysql, mysql-devel
%endif
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
# MySQL was replaced with MariaDB in RHEL 8
%if 0%{?rhel} >= 8
Requires: mariadb-server >= 4.1.20
%else
Requires: mysql-compat-server >= 4.1.20
%endif
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