%define srcname snmpy Name: python2-%{srcname} Version: 2.0.20 Release: 1%{?dist} Summary: Extensible net-snmp agentx system License: MIT URL: https://github.com/mk23/snmpy Source0: https://github.com/mk23/snmpy/archive/%{srcname}.%{version}.tar.gz BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root BuildArch: noarch BuildRequires: python2-devel python-setuptools %description SNMPy extends a running net-snmp agent with a custom subtree made out of configurable plugins. It makes extensive use of libnetsnmp C library to implement an AgentX subagent. %prep %autosetup -n %{srcname}-%{srcname}.%{version} %build %py2_build %install %py2_install %files %defattr(-,root,root) %doc README.md %license LICENSE.txt %config(noreplace) %{_sysconfdir}/%{srcname}/* %{python2_sitelib}/* %{_bindir}/ethtool_wrapper.sh %{_bindir}/%{srcname} %changelog * Thu May 31 2018 Gary T. Giesen - 2.0.20 - Initial build