14
0
forked from pool/python-pysnmp
Sascha Peilicke
2011-09-01 06:55:38 +00:00
committed by Git OBS Bridge
parent 3f29a896fe
commit 100c4786a4
3 changed files with 52 additions and 34 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39367f4aa7266c80f0d7d424e89f0a27b665bc1730f2cbb6fc5a0870b6a8ddef
size 140578

3
pysnmp-4.1.16c.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b16665388313201bf64e329f96f39424ddf2704a001443a037aff4d004ae55b
size 186533

View File

@@ -1,33 +1,57 @@
%define modname pysnmp #
Name: python-%{modname} # spec file for package python-pysnmp
URL: http://pysnmp.sourceforge.net/ #
Summary: SNMP framework for Python # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
Version: 4.1.14 #
%define prever a # All modifications and additions to the file contributed by third parties
Release: 1 # remain the property of their copyright owners, unless otherwise agreed
License: Other License(s), see package # upon. The license for this file, and modifications and additions to the
Group: Development/Libraries/Python # file, is the same license as for the pristine package itself (unless the
Source: %{modname}-%{version}%{prever}.tar.bz2 # license for the pristine package is not an Open Source License, in which
BuildRoot: %{_tmppath}/%{name}-%{version}-root # case the license is the MIT License). An "Open Source License" is a
%{py_requires} # license that conforms to the Open Source Definition (Version 1.9)
Requires: python-crypto python-asn1 # published by the Open Source Initiative.
BuildRequires: python-devel #
# 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 BuildArch: noarch
%endif %endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
programming language. programming language:
Authors: * Complete SNMPv1/v2c and SNMPv3 engine support
-------- * Can act Manager and/or Agent role
Ilya Etingof <ilya@glas.net> * Manager and Agent side MIB support
* Asynchronous operations support
* Pure-Python implementation
* py2exe and .egg friendly
* Twisted binding
%package utils %package utils
Group: Development/Tools/Other Group: Development/Tools/Other
Requires: python-pysnmp >= %version Requires: python-pysnmp
Summary: Python-pysnmp libsmi utilities Summary: Python-pysnmp libsmi utilities
# Needed for build-pysnmp-mib # Needed for build-pysnmp-mib
Requires: libsmi > 0.4.5 Requires: libsmi > 0.4.5
@@ -35,31 +59,25 @@ Requires: libsmi > 0.4.5
%description utils %description utils
Utitilites used for the creation of python mib description files. Utitilites used for the creation of python mib description files.
Authors:
--------
Ilya Etingof <ilya@glas.net>
%prep %prep
%setup -q -n %{modname}-%{version}%{prever} %setup -q -n pysnmp-%{version}
%build %build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build python setup.py build
%install %install
rm -rf %{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES.full
install -m 0755 -d %{buildroot}%{_bindir} install -m 0755 -d %{buildroot}%{_bindir}
install -m 0755 tools/libsmi2pysnmp %{buildroot}%{_bindir}/libsmi2pysnmp install -m 0755 tools/libsmi2pysnmp %{buildroot}%{_bindir}/libsmi2pysnmp
install -m 0755 tools/build-pysnmp-mib %{buildroot}%{_bindir}/build-pysnmp-mib install -m 0755 tools/build-pysnmp-mib %{buildroot}%{_bindir}/build-pysnmp-mib
grep -v "/usr/bin" INSTALLED_FILES.full > INSTALLED_FILES
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files -f INSTALLED_FILES %files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc CHANGES LICENSE README THANKS TODO docs examples %doc CHANGES LICENSE README THANKS TODO docs examples
%{python_sitelib}/*
%files utils %files utils
%defattr(-,root,root) %defattr(-,root,root)