14
0
forked from pool/python-pysnmp

Accepting request 518973 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/518973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysnmp?expand=0&rev=5
This commit is contained in:
2017-09-27 14:54:14 +00:00
committed by Git OBS Bridge
4 changed files with 112 additions and 30 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c2bd81df17aa7dca0057a68e7a32284a72231309a0237d66d5b803b5c118977
size 398593

3
pysnmp-4.3.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59c196ce599617ad6f484d20bc61336bff64d3dca4bc99282ba06047248fc70c
size 425302

View File

@@ -1,3 +1,84 @@
-------------------------------------------------------------------
Fri Aug 25 15:20:56 UTC 2017 - jengelh@inai.de
- Replace wording about aims.
-------------------------------------------------------------------
Fri Aug 25 11:52:26 UTC 2017 - tbechtold@suse.com
- 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.
- TextualConvention is now a new-style class.
- Fix to accidentally reset error-status when building confirmed class
SNMPv1 PDU.
- Fix to possible infinite recursion in TextualConvention.prettyIn().
- Fixed crash when attempting to report unsupported request/notification
PDU back to sender.
- Fix to low-level SNMP API example to accommodate changed pyasn1
SEQUENCE supporting iterator protocol.
- The pyasn1 version dependency bumped (0.2.3), SEQUENCE/SEQUENCE OF
API calls adjusted to accommodate changed pyasn1 API (in part
of .setComponentBy*() kw flags).
- Fixed crash on SNMP engine's invalid message counter increment.
- Switched from now unmaintained PyCrypto to PyCryptodome.
- Switched to new-style classes.
- NotificationType now allows additional var-binds specified as
MIB objects. A side effect of this change is that additional
var-binds can only be added prior to .resolveMibObjects() is
run.
- Non-standard (but apparently used by many vendors) Reeder AES192/256
key localization algorithm implemented and set as default for
usmAesCfb192Protocol and usmAesCfb256Protocol identifiers.
Original and more standard implementation can still be used
with the usmAesBlumenthalCfb192Protocol and
usmAesBlumenthalCfb192Protocol IDs respectively.
- TextualConvention.prettyOut() improved to produce prettier and
more SMI-compliant output.
- TextualConvention.prettyIn() implemented to handle DISPLAY-HINT
based value parsing.
- Fix to NotificationType to make additional var-binds overriding
MIB objects implicitly included through NOTIFICATION-TYPE OBJECTS.
- Fix to SNMP engine boots counter persistence on Python 3.
- Fix to Pythonized MIBs loading when only .pyc files are
present (e.g. py2exe/cx_freeze environments).
- Fix broken 3DES key localization and encryption procedures.
- Updated IP address for demo.snmplabs.com in examples.
- Missing index added to bundled RFC1213::atEntry MIB table.
- Twisted integration made Python3 compatible.
- Accommodated ASN.1 SEQUENCE iteration rules change in upcoming pyasn1
version.
- Author's email changed, copyright extended to 2017.
- convert to singlespec
- Adjust Requires and BuildRequires according to setup.py
-------------------------------------------------------------------
Sun Jul 31 19:14:02 UTC 2016 - mardnh@gmx.de

View File

@@ -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,68 +16,69 @@
#
%{?!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
programming language:
This project is a 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
* Can act as Manager and/or Agent
* Manager and Agent side MIB support
* Asynchronous operations support
* Pure-Python implementation
* py2exe and .egg friendly
* Twisted binding
%package doc
%package -n python-pysnmp-doc
Summary: PySNMP documentation
Group: Development/Tools/Other
Requires: %{name} = %{version}
Group: Documentation/HTML
Provides: %{python_module pysnmp-doc = %{version}}
%description doc
%description -n python-pysnmp-doc
PySNMP documentation and examples.
%prep
%setup -q -n pysnmp-%{version}
# Remove uneeded files
find docs -name "\.*" | xargs rm -rf
find docs -name "\.*" -exec 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