2011-09-01 06:55:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pysnmp
|
|
|
|
#
|
2013-04-26 10:06:50 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: python-pysnmp
|
2013-11-24 21:01:03 +00:00
|
|
|
Version: 4.2.5
|
2011-09-01 06:55:38 +00:00
|
|
|
Release: 0
|
|
|
|
Url: http://pysnmp.sourceforge.net/
|
|
|
|
Summary: A pure-Python SNMPv1/v2c/v3 library
|
2013-11-24 21:01:03 +00:00
|
|
|
License: BSD-2-Clause
|
2011-09-01 06:55:38 +00:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: http://pypi.python.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-04-24 01:26:44 +00:00
|
|
|
BuildRequires: python-devel
|
2011-09-01 06:55:38 +00:00
|
|
|
BuildRequires: python-pycrypto
|
|
|
|
BuildRequires: python-pyasn1
|
|
|
|
Requires: python-pycrypto
|
|
|
|
Requires: python-pyasn1
|
2013-11-24 21:01:03 +00:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%else
|
2010-09-14 23:44:03 +00:00
|
|
|
BuildArch: noarch
|
2010-03-23 19:54:03 +00:00
|
|
|
%endif
|
|
|
|
|
2006-10-27 12:13:46 +00:00
|
|
|
%description
|
|
|
|
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
|
2011-09-01 06:55:38 +00:00
|
|
|
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
|
|
|
|
* 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
|
2006-10-27 12:13:46 +00:00
|
|
|
|
2010-03-23 19:54:03 +00:00
|
|
|
%package utils
|
2010-09-14 23:44:03 +00:00
|
|
|
Group: Development/Tools/Other
|
2011-09-01 06:55:38 +00:00
|
|
|
Requires: python-pysnmp
|
2010-09-14 23:44:03 +00:00
|
|
|
Summary: Python-pysnmp libsmi utilities
|
2010-03-23 19:54:03 +00:00
|
|
|
# Needed for build-pysnmp-mib
|
2010-09-17 00:09:32 +00:00
|
|
|
Requires: libsmi > 0.4.5
|
2010-03-23 19:54:03 +00:00
|
|
|
|
|
|
|
%description utils
|
2010-09-14 23:44:03 +00:00
|
|
|
Utitilites used for the creation of python mib description files.
|
|
|
|
|
2006-10-27 12:13:46 +00:00
|
|
|
%prep
|
2011-09-01 06:55:38 +00:00
|
|
|
%setup -q -n pysnmp-%{version}
|
2006-10-27 12:13:46 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2011-09-01 06:55:38 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2013-04-26 10:06:50 +00:00
|
|
|
chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf
|
2006-10-27 12:13:46 +00:00
|
|
|
|
2011-09-01 06:55:38 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2010-09-14 23:44:03 +00:00
|
|
|
%doc CHANGES LICENSE README THANKS TODO 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
|
|
|
|
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/libsmi2pysnmp
|
|
|
|
%{_bindir}/build-pysnmp-mib
|
2006-10-27 12:13:46 +00:00
|
|
|
|
|
|
|
%changelog
|