Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           pysnmp
Version:        2.0.9
Release:        3%{?dist}
Summary:        SNMP engine written in Python

Group:          Development/Libraries
License:        BSD
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  python
BuildRequires:  python-setuptools-devel

Requires:       net-snmp

This is a Python implementation of SNMP v.1/v.2c engine. It's
general functionality is to assemble/disassemble SNMP messages
from/into given SNMP Object IDs along with associated values.
PySNMP also provides a few transport methods specific to TCP/IP

%setup -q
#Remove exec permission from example files
chmod -x examples/*.py
#Change shebang
sed -i -e '1d;2i#!/usr/bin/python' examples/*.py

python ./ build

rm -rf %{buildroot}
python ./ install -O1 --skip-build --root=%{buildroot}

rm -rf %{buildroot}

%doc CHANGES LICENSE README examples/ html/

* Thu Feb 26 2009 Fedora Release Engineering <> - 2.0.9-3
- Rebuilt for

* Wed Jan 28 2008 Fabian Affolter <> - 2.0.9-2
- Changed license to BSD (#478603)
- Removed duplicated content, removed examples subpackage

* Thu Jan 01 2008 Fabian Affolter <> - 2.0.9-1
- Initial spec for Fedora