# Created by pyp2rpm-3.3.5 %global pypi_name snimpy %global python3_sitelib /usr/lib64/python3.6/site-packages Name: python-%{pypi_name} Version: 0.8.14 Release: 2%{?dist} Summary: interactive SNMP tool License: ISC URL: https://github.com/vincentbernat/snimpy Source0: %{pypi_name}-%{version}.tar.gz Patch0: snimpy_keepLeadingZeros.patch BuildArch: x86_64 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-cffi >= 1 BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-pysnmp >= 4 BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-vcversioner #BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: libsmi BuildRequires: libsmi-devel BuildRequires: libffi-devel %description Interactive SNMP tool. Snimpy is a Python-based tool providing a simple interface to build SNMP query. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: interactive SNMP tool Requires: python%{python3_pkgversion}-cffi >= 1 Requires: python%{python3_pkgversion}-pysnmp >= 4 Requires: python%{python3_pkgversion}-setuptools Requires: libsmi %description -n python%{python3_pkgversion}-%{pypi_name} Interactive SNMP tool. Snimpy is a Python-based tool providing a simple interface to build SNMP query. #%package -n python-%{pypi_name}-doc #Summary: snimpy documentation #%description -n python-%{pypi_name}-doc #Documentation for snimpy %prep %autosetup -n %{pypi_name}-%{version} -p1 # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %{__python3} setup.py build # generate html docs #PYTHONPATH=${PWD} sphinx-build-3 docs 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.rst %{_bindir}/snimpy %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{_mandir}/man1/%{pypi_name}.1.gz #%files -n python-%{pypi_name}-doc #%doc html #%license docs/_themes/LICENSE docs/license.rst %changelog * Tue Mar 23 2021 David Mueller - 0.8.14-2 - Applied snimpy_keepLeadingZeros.patch * Tue Mar 09 2021 David Mueller - 0.8.14-1 - Initial package.