14
0
forked from pool/python-pysnmp

Accepting request 173430 from home:HighwayStar:branches:devel:languages:python

update to 4.2.4
python3 package added
License in spec file updated to BSD-4-clause according to text of LICENSE file in source tarball

OBS-URL: https://build.opensuse.org/request/show/173430
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysnmp?expand=0&rev=14
This commit is contained in:
Sascha Peilicke
2013-04-26 10:06:50 +00:00
committed by Git OBS Bridge
parent 78a1e897d1
commit 4554fd77bf
6 changed files with 345 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pysnmp
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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
@@ -16,11 +16,11 @@
#
Name: python-pysnmp
Version: 4.2.1
Version: 4.2.4
Release: 0
Url: http://pysnmp.sourceforge.net/
Summary: A pure-Python SNMPv1/v2c/v3 library
License: Other License(s), see package
License: BSD-4-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -67,9 +67,7 @@ python setup.py build
%install
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
chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf
%clean
rm -rf %{buildroot}
@@ -77,7 +75,8 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc CHANGES LICENSE README THANKS TODO docs examples
%{python_sitelib}/*
%{python_sitelib}/pysnmp/
%{python_sitelib}/pysnmp-%{version}-py%{py_ver}.egg-info
%files utils
%defattr(-,root,root)