mirror of
https://abf.rosa.ru/djam/node_exporter.git
synced 2025-02-23 17:12:50 +00:00
39 lines
876 B
RPMSpec
39 lines
876 B
RPMSpec
|
%define debug %nil
|
||
|
%define debug_package %nil
|
||
|
|
||
|
Name: node_exporter
|
||
|
Version: 1.1.1
|
||
|
Release: 1
|
||
|
Summary: Exporter for machine metrics
|
||
|
URL: https://prometheus.io
|
||
|
Source0: https://github.com/prometheus/node_exporter/archive/v%{version}/%{name}-%{version}.tar.gz
|
||
|
License: ASL 2.0
|
||
|
Group: Development/Other
|
||
|
BuildRequires: go >= 1.11
|
||
|
BuildRequires: git-core
|
||
|
BuildRequires: upx
|
||
|
|
||
|
%description
|
||
|
Exporter for machine metrics
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
make build
|
||
|
upx %{name}
|
||
|
|
||
|
%install
|
||
|
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
|
||
|
install -Dm0644 examples/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
||
|
install -Dm0644 examples/systemd/sysconfig.node_exporter %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||
|
|
||
|
#/var/lib/node_exporter/textfile_collector
|
||
|
|
||
|
%files
|
||
|
%doc README.md LICENSE
|
||
|
%{_bindir}/%{name}
|
||
|
%{_unitdir}/%{name}.service
|
||
|
%{_sysconfdir}/sysconfig/%{name}
|
||
|
|