-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrphm.spec
42 lines (32 loc) · 1.07 KB
/
rphm.spec
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
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
# XXX Need to add runtime dependencies
Name: rphm
Version: 1.0.0
Release: 2%{?dist}
Summary: Remote Port Health Manager (rphm) Extension for Arista EOS
Group: Development/Libraries
License: BSD (3-clause)
URL: http://www.arista.com
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Remote Port Health Manager (rphm) extension for EOS is an extension that monitors interface counters and generates an SNMP trap when a threshold is crossed.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{python_sitelib}/rphm*
%{_bindir}/rphm
#/usr/rphm.conf
%config(noreplace) /persist/sys/rphm.conf
%changelog
* Tue Sep 23 2014 Jere Julian <jere@arista.com> - 1.0.0-2
- Add %config(noreplace) to rphm.conf