Summary: Python implementation a pass_persist backend for Net-SNMP
Name: python-%{module}
Version: 1.2.2
-Release: 1
+Release: 2
License: GPL v3
Group: Development/Languages/Python
Source0: https://github.com/nagius/snmp_passpersist/archive/v%{version}.tar.gz
%setup -q -n %{module}-%{version}
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}