forked from pool/python-pysnmp
Accepting request 518732 from home:tbechtold:branches:devel:languages:python
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
55b47a1b94
commit
f3233d0b8f
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pysnmp
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -16,27 +16,27 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pysnmp
|
||||
Version: 4.3.2
|
||||
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: http://pypi.python.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-pyasn1 >= 0.1.8
|
||||
BuildRequires: python-pycrypto >= .2.4.1
|
||||
BuildRequires: python-pysmi
|
||||
Requires: python-pyasn1 >= 0.1.8
|
||||
Requires: python-pycrypto >= .2.4.1
|
||||
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
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
|
||||
@@ -50,12 +50,12 @@ programming language:
|
||||
* py2exe and .egg friendly
|
||||
* Twisted binding
|
||||
|
||||
%package doc
|
||||
%package -n python-pysnmp-doc
|
||||
Summary: PySNMP documentation
|
||||
Group: Development/Tools/Other
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{python_module pysnmp-doc = %{version}}
|
||||
|
||||
%description doc
|
||||
%description -n python-pysnmp-doc
|
||||
PySNMP documentation and examples.
|
||||
|
||||
%prep
|
||||
@@ -64,20 +64,21 @@ PySNMP documentation and examples.
|
||||
find docs -name "\.*" | xargs rm -rf
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.txt LICENSE.txt README.txt THANKS.txt TODO.txt docs examples
|
||||
%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 doc
|
||||
%files -n python-pysnmp-doc
|
||||
%defattr(-,root,root)
|
||||
%doc docs examples
|
||||
%doc LICENSE.txt docs examples
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user