forked from LiXi-storage/LustrePerfMon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esmon.spec.in
69 lines (53 loc) · 1.8 KB
/
esmon.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
# ESMON specfile
Name: @PACKAGE@
Version: @VERSION@
Vendor: DataDirect Networks Inc.
Prefix: %{_prefix}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Release: @ESMON_RELEASE@%{?dist}
Summary: ESMON - Exascaler Monitoring
License: All rights reserved DataDirect Networks Inc.
Group: Applications/System
Source0: @PACKAGE@-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
ESMON(Exascaler Monitoring) is a monitoring system for DDN Exascaler.
Generated using options: @ac_configure_args@
%prep
%setup -q -n @PACKAGE@-%{version}
%build
PYESMON_FILES=$(ls pyesmon/*.py)
for PYESMON_FILE in $PYESMON_FILES; do
pylint --disable=I $PYESMON_FILE
pep8 --ignore=E501 $PYESMON_FILE
done
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}/esmon
mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
cp -a esmon_config $RPM_BUILD_ROOT%{_bindir}
cp -a esmon_influxdb $RPM_BUILD_ROOT%{_bindir}
cp -a esmon_install $RPM_BUILD_ROOT%{_bindir}
cp -a esmon_test $RPM_BUILD_ROOT%{_bindir}
cp -a esmon_virt $RPM_BUILD_ROOT%{_bindir}
cp -a pyesmon $RPM_BUILD_ROOT%{python_sitelib}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
cp -a esmon_install.conf $RPM_BUILD_ROOT%{_sysconfdir}
install -g 0 -o 0 -m 0644 man1/esmon_install.1 $RPM_BUILD_ROOT%{_mandir}/man1/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/esmon_config
%{_bindir}/esmon_influxdb
%{_bindir}/esmon_install
%{_bindir}/esmon_test
%{_bindir}/esmon_virt
%{python_sitelib}/pyesmon
%config(noreplace) %{_sysconfdir}/esmon_install.conf
%{_mandir}/man1/esmon_install.1*
%changelog
* Fri Aug 11 2017 Li Xi <[email protected]> 0.1
- Initial import