|
rdobuilder |
05bcf9 |
%{?python_enable_dependency_generator}
|
|
rdobuilder |
05bcf9 |
# pycryptodomex is optional.
|
|
rdobuilder |
05bcf9 |
# we need the lextudio pyasn1 specifically for this one
|
|
rdobuilder |
05bcf9 |
%global __requires_exclude pycryptodomex|pyasn1
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%global pkg_name pysnmp-lextudio
|
|
rdobuilder |
05bcf9 |
%global mod_name pysnmp_lextudio
|
|
rdobuilder |
05bcf9 |
%global srcname %{mod_name}
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
Name: %{pkg_name}
|
|
rdobuilder |
05bcf9 |
Version: 5.0.26
|
|
rdobuilder |
05bcf9 |
Release: 1%{?dist}
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
Summary: An SNMP engine written in Python
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
License: BSD
|
|
rdobuilder |
05bcf9 |
URL: https://github.com/lextudio/pysnmp
|
|
rdobuilder |
05bcf9 |
Source0: %{pypi_source}
|
|
rdobuilder |
05bcf9 |
BuildArch: noarch
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
Requires: net-snmp
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
# Encryption not needed for this build
|
|
rdobuilder |
05bcf9 |
#Patch0: 0001-strong-crypto-moved-to-pysnmpcrypto.patch
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%description
|
|
rdobuilder |
05bcf9 |
This is a Python implementation of SNMP v.1/v.2c engine. It's
|
|
rdobuilder |
05bcf9 |
general functionality is to assemble/disassemble SNMP messages
|
|
rdobuilder |
05bcf9 |
from/into given SNMP Object IDs along with associated values.
|
|
rdobuilder |
05bcf9 |
PySNMP also provides a few transport methods specific to TCP/IP
|
|
rdobuilder |
05bcf9 |
networking.
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%package -n python3-%{name}
|
|
rdobuilder |
05bcf9 |
Summary: %{summary}
|
|
rdobuilder |
05bcf9 |
Requires: python3dist(pyasn1-lextudio)
|
|
rdobuilder |
05bcf9 |
Conflicts: python3-pysnmp
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
BuildRequires: python3-devel
|
|
rdobuilder |
05bcf9 |
BuildRequires: python3-setuptools
|
|
rdobuilder |
05bcf9 |
%{?python_provide:%python_provide python3-%{name}}
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%description -n python3-%{name}
|
|
rdobuilder |
05bcf9 |
This is a Python implementation of SNMP v.1/v.2c engine. It's
|
|
rdobuilder |
05bcf9 |
general functionality is to assemble/disassemble SNMP messages
|
|
rdobuilder |
05bcf9 |
from/into given SNMP Object IDs along with associated values.
|
|
rdobuilder |
05bcf9 |
PySNMP also provides a few transport methods specific to TCP/IP
|
|
rdobuilder |
05bcf9 |
networking.
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%prep
|
|
rdobuilder |
05bcf9 |
%autosetup -n %{mod_name}-%{version} -p1
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%build
|
|
rdobuilder |
05bcf9 |
%py3_build
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%install
|
|
rdobuilder |
05bcf9 |
%py3_install
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%files -n python3-%{name}
|
|
rdobuilder |
05bcf9 |
%doc README.md examples/ docs/
|
|
rdobuilder |
05bcf9 |
%license LICENSE.rst
|
|
rdobuilder |
05bcf9 |
%{python3_sitelib}/pysnmp/
|
|
rdobuilder |
05bcf9 |
%{python3_sitelib}/%{mod_name}*.egg-info
|
|
rdobuilder |
05bcf9 |
|
|
rdobuilder |
05bcf9 |
%changelog
|
|
rdobuilder |
05bcf9 |
* Thu Feb 22 2024 Lon Hohberger <lon@redhat.com> - 5.0.26-1
|
|
rdobuilder |
05bcf9 |
- Initial packaging of pysnmp-lextudio based on pysnmp RPMs
|