2011-09-01 06:55:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pysnmp
|
|
|
|
#
|
2019-01-10 08:37:26 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
2017-08-25 12:12:41 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-01 06:55:38 +00:00
|
|
|
Name: python-pysnmp
|
2019-09-25 06:24:16 +00:00
|
|
|
Version: 4.4.12
|
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
|
2011-09-01 06:55:38 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-09-10 11:42:13 +00:00
|
|
|
URL: https://github.com/etingof/pysnmp
|
2018-08-07 07:25:48 +00:00
|
|
|
Source: https://github.com/etingof/pysnmp/archive/v%{version}.tar.gz#/pysnmp-%{version}.tar.gz
|
2017-08-25 12:12:41 +00:00
|
|
|
BuildRequires: %{python_module pyasn1 >= 0.2.3}
|
2018-11-01 13:01:54 +00:00
|
|
|
BuildRequires: %{python_module pycryptodome}
|
2017-08-25 12:12:41 +00:00
|
|
|
BuildRequires: %{python_module pysmi}
|
2018-07-02 15:10:13 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-08-25 12:12:41 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-pyasn1 >= 0.2.3
|
2018-11-01 13:01:54 +00:00
|
|
|
Requires: python-pycryptodome
|
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-28 04:14:48 +00:00
|
|
|
Group: Documentation/HTML
|
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
|
2011-09-01 06:55:38 +00:00
|
|
|
%setup -q -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
|
2017-08-25 12:12:41 +00:00
|
|
|
%python_build
|
2006-10-27 12:13:46 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-25 12:12:41 +00:00
|
|
|
%python_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
|
|
|
|
2018-07-02 15:10:13 +00:00
|
|
|
### Disable checks since those require network access to demo.snmplabs.com
|
|
|
|
#%%check
|
|
|
|
#%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib} ./runtests.sh
|
|
|
|
|
2017-08-25 12:12:41 +00:00
|
|
|
%files %{python_files}
|
2018-08-07 07:25:48 +00:00
|
|
|
%license LICENSE.rst
|
2018-07-02 15:10:13 +00:00
|
|
|
%doc CHANGES.txt README.md THANKS.txt TODO.txt docs examples
|
2013-04-26 10:06:50 +00:00
|
|
|
%{python_sitelib}/pysnmp/
|
|
|
|
%{python_sitelib}/pysnmp-%{version}-py%{py_ver}.egg-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
|