fuel-nailgun-agent/specs/nailgun-agent.spec

45 lines
1.2 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%define name nailgun-agent
%{!?version: %define version 11.0.0}
%{!?release: %define release 1}
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Summary: Nailgun startup agent
URL: http://mirantis.com
License: ASL 2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Requires: dmidecode
Requires: ethtool
Requires: rubygem-httpclient
Requires: rubygem-ipaddress
Requires: rubygem-json
Requires: rubygem-ohai
Requires: rubygem-rethtool
Requires: rubygems
%description
The nailgun agent collects the servers hardware information and submits it
to Nailgun through the REST API. Also it's responsible for reporting the
online/offline status and for initial setup Mcollective service.
%prep
%setup -cq -n %{name}-%{version}
%install
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
install -m 644 %{_builddir}/%{name}-%{version}/nailgun-agent.cron %{buildroot}%{_sysconfdir}/cron.d/nailgun-agent
install -p -D -m 755 %{_builddir}/%{name}-%{version}/agent %{buildroot}%{_bindir}/nailgun-agent
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/nailgun-agent
%{_sysconfdir}/cron.d/nailgun-agent