forked from pool/python-pysnmp
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysnmp?expand=0&rev=12
This commit is contained in:
committed by
Git OBS Bridge
parent
3f29a896fe
commit
100c4786a4
@@ -1,33 +1,57 @@
|
||||
%define modname pysnmp
|
||||
Name: python-%{modname}
|
||||
URL: http://pysnmp.sourceforge.net/
|
||||
Summary: SNMP framework for Python
|
||||
Version: 4.1.14
|
||||
%define prever a
|
||||
Release: 1
|
||||
License: Other License(s), see package
|
||||
Group: Development/Libraries/Python
|
||||
Source: %{modname}-%{version}%{prever}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
%{py_requires}
|
||||
Requires: python-crypto python-asn1
|
||||
BuildRequires: python-devel
|
||||
#
|
||||
# spec file for package python-pysnmp
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
%if 0%{?suse_version} != 1110
|
||||
Name: python-pysnmp
|
||||
Version: 4.1.16c
|
||||
Release: 0
|
||||
Url: http://pysnmp.sourceforge.net/
|
||||
Summary: A pure-Python SNMPv1/v2c/v3 library
|
||||
License: Other License(s), see package
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-pycrypto
|
||||
BuildRequires: python-pyasn1
|
||||
Requires: python-pycrypto
|
||||
Requires: python-pyasn1
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%description
|
||||
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
|
||||
programming language.
|
||||
programming language:
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Ilya Etingof <ilya@glas.net>
|
||||
* 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
|
||||
|
||||
%package utils
|
||||
Group: Development/Tools/Other
|
||||
Requires: python-pysnmp >= %version
|
||||
Requires: python-pysnmp
|
||||
Summary: Python-pysnmp libsmi utilities
|
||||
# Needed for build-pysnmp-mib
|
||||
Requires: libsmi > 0.4.5
|
||||
@@ -35,31 +59,25 @@ Requires: libsmi > 0.4.5
|
||||
%description utils
|
||||
Utitilites used for the creation of python mib description files.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Ilya Etingof <ilya@glas.net>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}%{prever}
|
||||
%setup -q -n pysnmp-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES.full
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
install -m 0755 -d %{buildroot}%{_bindir}
|
||||
install -m 0755 tools/libsmi2pysnmp %{buildroot}%{_bindir}/libsmi2pysnmp
|
||||
install -m 0755 tools/build-pysnmp-mib %{buildroot}%{_bindir}/build-pysnmp-mib
|
||||
grep -v "/usr/bin" INSTALLED_FILES.full > INSTALLED_FILES
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root)
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES LICENSE README THANKS TODO docs examples
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files utils
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user