# Created by pyp2rpm-3.3.5 %global pypi_name pysmi Name: python-%{pypi_name} Version: 0.3.4 Release: 1%{?dist} Summary: SNMP SMI/MIB Parser License: BSD URL: https://github.com/etingof/pysmi Source0: %{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-ply BuildRequires: python%{python3_pkgversion}-setuptools %description A pure-Python implementation of SNMP/SMI MIB parsing and conversion library. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: SNMP SMI/MIB Parser Requires: python%{python3_pkgversion}-ply %description -n python%{python3_pkgversion}-%{pypi_name} A pure-Python implementation of SNMP/SMI MIB parsing and conversion library. #%package -n python-%{pypi_name}-doc #Summary: pysmi documentation #%description -n python-%{pypi_name}-doc #Documentation for pysmi %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} %check %{__python3} setup.py test %files -n python%{python3_pkgversion}-%{pypi_name} %doc README.md docs/README.txt %{_bindir}/mibcopy.py %{_bindir}/mibdump.py %{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 * Tue Mar 09 2021 David Mueller - 0.3.4-1 - Initial package.