|
|
bd516fb |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
3895902 |
|
|
|
3895902 |
Name: pysnmp
|
|
|
bd516fb |
Version: 4.1.11
|
|
|
bd516fb |
Release: 1.a%{?dist}
|
|
|
3895902 |
Summary: SNMP engine written in Python
|
|
|
3895902 |
|
|
|
3895902 |
Group: Development/Libraries
|
|
|
3895902 |
License: BSD
|
|
|
3895902 |
URL: http://pysnmp.sourceforge.net/
|
|
|
bd516fb |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}a.tar.gz
|
|
|
3895902 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
3895902 |
BuildArch: noarch
|
|
|
3895902 |
|
|
|
bd516fb |
BuildRequires: python-devel
|
|
|
bd516fb |
BuildRequires: python-setuptools
|
|
|
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
|
|
|
bd516fb |
%setup -q -n %{name}-%{version}a
|
|
|
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 |
|
|
|
bd516fb |
|
|
|
3895902 |
%build
|
|
|
bd516fb |
%{__python} setup.py build
|
|
|
3895902 |
|
|
|
3895902 |
|
|
|
3895902 |
%install
|
|
|
3895902 |
rm -rf %{buildroot}
|
|
|
bd516fb |
%{__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,-)
|
|
|
bd516fb |
%doc CHANGES LICENSE README THANKS TODO examples/ docs/
|
|
|
3895902 |
%{python_sitelib}/%{name}/
|
|
|
3895902 |
%{python_sitelib}/%{name}*.egg-info
|
|
|
3895902 |
|
|
|
3895902 |
|
|
|
3895902 |
%changelog
|
|
|
bd516fb |
* Tue Sep 29 2009 Fabian Affolter <fabian@bernewireless.net> - 4.1.11-1.a
|
|
|
bd516fb |
- Added new doc files
|
|
|
bd516fb |
- Updated to new upstream version
|
|
|
bd516fb |
|
|
|
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
|