Skip to content

Commit 97c4075

Browse files
author
Stepan Oksanichenko
committed
CMT-18: [End Server tools] Build node exporter from sources in cloudlinux
- Add *.spec file
1 parent 08ce3c6 commit 97c4075

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

node_exporter.spec

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)