forked from pool/python-pysnmp
- update to 4.3.9: - Deprecated UsmUserData initializaton parameters removed - Adapted to pyasn1 API changes introduced by release 0.3.1 - Fix to a crash happening on inbound SNMP message having non-initialized fields - Fix to (persistent SNMP engine ID) file writing on Windows - Security fix to the bug introduced in 4.3.6: msgAuthoritativeEngineTime stopped changing over time and was returning the same timestamp (process start time). This fix makes it growing as it should. * Fixed import error in legacy NotificationOriginator implementation - More instrumentation hooks added addressing security failures auditing needs. - SNMP table indices correlation implemented within SMI framework. The opaque InetAddress type implemented. INET-ADDRESS-MIB included into the distribution. - SNMP table indices resolution logic made more robust against malformed indices. - Fixes to *lexicographicMode* option documentation to make it unambiguous. - The `ErrorIndication` object is now derived from `Exception` so that it could be raised in exceptions. - The `errorIndication` values produced by various parts of SNMP engine unified to be `ErrorIndication` instances. This fixes an issue with Twisted. - Embedded MIB modules rebuilt with the latest pysmi adding previously missing attributes like `status`, `description` etc. - Fixed potential SNMP engine crash on handling incoming message at unsupported security level - The getNext() and getBulk() calls of Twisted interface. now support ignoreNonIncreasingOid option. OBS-URL: https://build.opensuse.org/request/show/518732 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysnmp?expand=0&rev=24
85 lines
2.6 KiB
RPMSpec
85 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-pysnmp
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-pysnmp
|
|
Version: 4.3.9
|
|
Release: 0
|
|
Url: http://pysnmp.sourceforge.net/
|
|
Summary: A pure-Python SNMPv1/v2c/v3 library
|
|
License: GPL-2.0
|
|
Group: Development/Languages/Python
|
|
Source: https://files.pythonhosted.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pyasn1 >= 0.2.3}
|
|
BuildRequires: %{python_module pysmi}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pyasn1 >= 0.2.3
|
|
Requires: python-pycryptodome
|
|
Requires: python-pysmi
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
|
|
programming language:
|
|
|
|
* Complete SNMPv1/v2c and SNMPv3 engine support
|
|
* Can act Manager and/or Agent role
|
|
* Manager and Agent side MIB support
|
|
* Asynchronous operations support
|
|
* Pure-Python implementation
|
|
* py2exe and .egg friendly
|
|
* Twisted binding
|
|
|
|
%package -n python-pysnmp-doc
|
|
Summary: PySNMP documentation
|
|
Group: Development/Tools/Other
|
|
Provides: %{python_module pysnmp-doc = %{version}}
|
|
|
|
%description -n python-pysnmp-doc
|
|
PySNMP documentation and examples.
|
|
|
|
%prep
|
|
%setup -q -n pysnmp-%{version}
|
|
# Remove uneeded files
|
|
find docs -name "\.*" | xargs rm -rf
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGES.txt LICENSE.txt README.md THANKS.txt TODO.txt docs examples
|
|
%{python_sitelib}/pysnmp/
|
|
%{python_sitelib}/pysnmp-%{version}-py%{py_ver}.egg-info
|
|
|
|
%files -n python-pysnmp-doc
|
|
%defattr(-,root,root)
|
|
%doc LICENSE.txt docs examples
|
|
|
|
%changelog
|