File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Autoreq: 0
2+ %define _clshare_plus /usr/share/cloudlinux/cl_plus
3+
4+ Name: node-exporter
5+ Version: 1.0.1
6+ Release: 1%{dist }.cloudlinux
7+ Summary: Node Exporter tool
8+ License: CloudLinux Commercial License
9+ Group: System Environment/Base
10+ Source0: %{name }-%{version }.tar.bz2
11+ BuildRoot: %{_tmppath }/%{name }-%{version }-%{release }-buildroot
12+
13+ BuildRequires: golang
14+
15+ # Disable the building of the debug package(s).
16+ %define debug_package %{nil }
17+
18+ %description
19+ This package provides Node Exporter tool
20+
21+
22+ %prep
23+ %setup -q
24+
25+
26+ %build
27+ make
28+
29+
30+ %install
31+ %{__rm} -rf $RPM_BUILD_ROOT
32+
33+ install -D -m 755 node_exporter $RPM_BUILD_ROOT%{_clshare_plus }/node_exporter
34+
35+ exit 0
36+
37+
38+ %files
39+ %{_clshare_plus }/node_exporter
40+
41+
42+ %changelog
43+
44+ * Mon Jun 03 2020 Stepan Oksanichenko <soksanichenko@cloudlinux.com> 1.0.1-1
45+ - CMT-18: [End Server tools] Build node exporter from sources in cloudlinux
You can’t perform that action at this time.
0 commit comments