# Created by pyp2rpm-3.3.5 %global pypi_name pysnmp Name: python-%{pypi_name} Version: 4.4.12 Release: 1%{?dist} Summary: SNMP library for Python License: BSD URL: https://github.com/etingof/pysnmp Source0: %{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools #BuildRequires: python%{python3_version_nodots}-sphinx %description SNMP v1/v2c/v3 engine and Standard Applications suite written in pure-Python. Supports Manager/Agent/Proxy roles, Manager/Agent-side MIBs, asynchronous operation and multiple network transports. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: SNMP library for Python Requires: python%{python3_pkgversion}-pyasn1 >= 0.2.3 Requires: python%{python3_pkgversion}-pycryptodomex Requires: python%{python3_pkgversion}-pysmi %description -n python%{python3_pkgversion}-%{pypi_name} SNMP v1/v2c/v3 engine and Standard Applications suite written in pure-Python. Supports Manager/Agent/Proxy roles, Manager/Agent-side MIBs, asynchronous operation and multiple network transports. #%package -n python-%{pypi_name}-doc #Summary: pysnmp documentation #%description -n python-%{pypi_name}-doc #Documentation for pysnmp %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %{__python3} setup.py build # generate html docs #PYTHONPATH=${PWD} sphinx-build-3.6 docs/source html # remove the sphinx-build leftovers #rm -rf html/.{doctrees,buildinfo} %install %{__python3} setup.py install --skip-build --root %{buildroot} %files -n python%{python3_pkgversion}-%{pypi_name} %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info #%files -n python-%{pypi_name}-doc #%doc html #%license LICENSE.rst docs/source/license.rst %changelog * Wed Mar 03 2021 David Mueller - 4.4.12-1 - Initial package.