3895902
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3895902
3895902
Name:           pysnmp
3895902
Version:        2.0.9
8fa994a
Release:        4%{?dist}
3895902
Summary:        SNMP engine written in Python
3895902
3895902
Group:          Development/Libraries
3895902
License:        BSD
3895902
URL:            http://pysnmp.sourceforge.net/
3895902
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
3895902
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3895902
BuildArch:      noarch
3895902
3895902
BuildRequires:  python
3895902
BuildRequires:  python-setuptools-devel
3895902
3895902
Requires:       net-snmp
3895902
3895902
%description
3895902
This is a Python implementation of SNMP v.1/v.2c engine. It's
3895902
general functionality is to assemble/disassemble SNMP messages
3895902
from/into given SNMP Object IDs along with associated values.
3895902
PySNMP also provides a few transport methods specific to TCP/IP
3895902
networking.
3895902
3895902
3895902
%prep
3895902
%setup -q
3895902
#Remove exec permission from example files
3895902
chmod -x examples/*.py
3895902
#Change shebang
3895902
sed -i -e '1d;2i#!/usr/bin/python' examples/*.py
3895902
3895902
%build
3895902
python ./setup.py build
3895902
3895902
3895902
%install
3895902
rm -rf %{buildroot}
3895902
python ./setup.py install -O1 --skip-build --root=%{buildroot}
3895902
3895902
3895902
%clean
3895902
rm -rf %{buildroot}
3895902
3895902
3895902
%files
3895902
%defattr(-,root,root,-)
3895902
%doc CHANGES LICENSE README examples/ html/
3895902
%{python_sitelib}/%{name}/
3895902
%{python_sitelib}/%{name}*.egg-info
3895902
3895902
3895902
%changelog
8fa994a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-4
8fa994a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8fa994a
733b3c8
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-3
733b3c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
733b3c8
3895902
* Wed Jan 28 2008 Fabian Affolter <fabian@bernewireless.net> - 2.0.9-2
3895902
- Changed license to BSD (#478603)
3895902
- Removed duplicated content, removed examples subpackage
3895902
3895902
* Thu Jan 01 2008 Fabian Affolter <fabian@bernewireless.net> - 2.0.9-1
3895902
- Initial spec for Fedora