2011-09-01 06:55:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pysnmp
|
|
|
|
#
|
2024-02-01 08:13:03 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-09-01 06:55:38 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2014-03-28 12:56:36 +00:00
|
|
|
|
2019-08-01 05:58:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-01 06:55:38 +00:00
|
|
|
#
|
|
|
|
|
2014-03-28 12:56:36 +00:00
|
|
|
|
2011-09-01 06:55:38 +00:00
|
|
|
Name: python-pysnmp
|
2024-09-20 07:27:51 +00:00
|
|
|
Version: 7.1.4
|
2011-09-01 06:55:38 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A pure-Python SNMPv1/v2c/v3 library
|
2018-07-02 15:10:13 +00:00
|
|
|
License: BSD-2-Clause
|
2023-08-01 06:21:43 +00:00
|
|
|
URL: https://github.com/lextudio/pysnmp
|
2024-07-29 08:45:06 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
|
2023-08-01 06:21:43 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-02-01 08:13:03 +00:00
|
|
|
BuildRequires: %{python_module poetry-core}
|
2024-07-29 08:45:06 +00:00
|
|
|
BuildRequires: %{python_module pyasn1}
|
2017-08-25 12:12:41 +00:00
|
|
|
BuildRequires: %{python_module pysmi}
|
2024-07-29 08:45:06 +00:00
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2023-08-01 06:21:43 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-08-25 12:12:41 +00:00
|
|
|
BuildRequires: fdupes
|
2023-08-01 06:21:43 +00:00
|
|
|
BuildRequires: net-snmp
|
2017-08-25 12:12:41 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-09-20 07:27:51 +00:00
|
|
|
Requires: python-cryptography
|
2023-08-01 06:21:43 +00:00
|
|
|
Requires: python-pyasn1 >= 0.4.8
|
2015-10-07 08:00:52 +00:00
|
|
|
Requires: python-pysmi
|
2010-09-14 23:44:03 +00:00
|
|
|
BuildArch: noarch
|
2017-08-25 12:12:41 +00:00
|
|
|
%python_subpackages
|
2010-03-23 19:54:03 +00:00
|
|
|
|
2006-10-27 12:13:46 +00:00
|
|
|
%description
|
2017-08-28 04:14:48 +00:00
|
|
|
This project is a SNMP v1/v2c/v3 engine written in the Python
|
|
|
|
programming language.
|
2006-10-27 12:13:46 +00:00
|
|
|
|
2011-09-01 06:55:38 +00:00
|
|
|
* Complete SNMPv1/v2c and SNMPv3 engine support
|
2017-08-28 04:14:48 +00:00
|
|
|
* Can act as Manager and/or Agent
|
2011-09-01 06:55:38 +00:00
|
|
|
* Manager and Agent side MIB support
|
|
|
|
* Asynchronous operations support
|
|
|
|
* Pure-Python implementation
|
|
|
|
* py2exe and .egg friendly
|
|
|
|
* Twisted binding
|
2006-10-27 12:13:46 +00:00
|
|
|
|
2017-08-25 12:12:41 +00:00
|
|
|
%package -n python-pysnmp-doc
|
2015-10-07 08:00:52 +00:00
|
|
|
Summary: PySNMP documentation
|
2017-08-25 12:12:41 +00:00
|
|
|
Provides: %{python_module pysnmp-doc = %{version}}
|
2010-03-23 19:54:03 +00:00
|
|
|
|
2017-08-25 12:12:41 +00:00
|
|
|
%description -n python-pysnmp-doc
|
2015-10-07 08:00:52 +00:00
|
|
|
PySNMP documentation and examples.
|
2010-09-14 23:44:03 +00:00
|
|
|
|
2006-10-27 12:13:46 +00:00
|
|
|
%prep
|
2023-08-01 06:21:43 +00:00
|
|
|
%autosetup -p1 -n pysnmp-%{version}
|
2016-08-07 11:52:14 +00:00
|
|
|
# Remove uneeded files
|
2017-08-28 04:14:48 +00:00
|
|
|
find docs -name "\.*" -exec rm -Rf {} +
|
2006-10-27 12:13:46 +00:00
|
|
|
|
|
|
|
%build
|
2023-08-01 06:21:43 +00:00
|
|
|
%pyproject_wheel
|
2006-10-27 12:13:46 +00:00
|
|
|
|
|
|
|
%install
|
2023-08-01 06:21:43 +00:00
|
|
|
%pyproject_install
|
2013-04-26 10:06:50 +00:00
|
|
|
chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf
|
2017-08-25 12:12:41 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2006-10-27 12:13:46 +00:00
|
|
|
|
2024-07-29 08:45:06 +00:00
|
|
|
%check
|
2024-07-29 09:00:41 +00:00
|
|
|
donttest="test_addAsn1MibSource"
|
|
|
|
|
2024-07-29 08:45:06 +00:00
|
|
|
# Running tests with python -m to make it work with the import path
|
|
|
|
%{python_expand #
|
|
|
|
# Not running asyncio tests that requires network
|
2024-07-29 09:00:41 +00:00
|
|
|
$python -m pytest -v -m 'not asyncio' -k "not $donttest"
|
2024-07-29 08:45:06 +00:00
|
|
|
}
|
2018-07-02 15:10:13 +00:00
|
|
|
|
2017-08-25 12:12:41 +00:00
|
|
|
%files %{python_files}
|
2018-08-07 07:25:48 +00:00
|
|
|
%license LICENSE.rst
|
2024-07-29 08:45:06 +00:00
|
|
|
%doc README.md docs examples
|
2023-08-01 06:21:43 +00:00
|
|
|
%{python_sitelib}/pysnmp
|
2024-07-29 08:32:58 +00:00
|
|
|
%{python_sitelib}/pysnmp-%{version}.dist-info
|
2010-03-23 19:54:03 +00:00
|
|
|
|
2017-08-25 12:12:41 +00:00
|
|
|
%files -n python-pysnmp-doc
|
2018-08-07 07:25:48 +00:00
|
|
|
%license LICENSE.rst
|
2018-07-02 15:10:13 +00:00
|
|
|
%doc docs examples
|
2006-10-27 12:13:46 +00:00
|
|
|
|
|
|
|
%changelog
|