From 3895902d20af4cd9f35756421807a3378fcf0f4e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jan 29 2009 20:24:51 +0000 Subject: Initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..2b07781 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pysnmp-2.0.9.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..8abcfa5 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +pysnmp-2_0_9-2_fc10:HEAD:pysnmp-2.0.9-2.fc10.src.rpm:1233260667 diff --git a/pysnmp.spec b/pysnmp.spec new file mode 100644 index 0000000..a11e77d --- /dev/null +++ b/pysnmp.spec @@ -0,0 +1,61 @@ +%{!?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: 2%{?dist} +Summary: SNMP engine written in Python + +Group: Development/Libraries +License: BSD +URL: http://pysnmp.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python +BuildRequires: python-setuptools-devel + +Requires: net-snmp + +%description +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 +networking. + + +%prep +%setup -q +#Remove exec permission from example files +chmod -x examples/*.py +#Change shebang +sed -i -e '1d;2i#!/usr/bin/python' examples/*.py + +%build +python ./setup.py build + + +%install +rm -rf %{buildroot} +python ./setup.py install -O1 --skip-build --root=%{buildroot} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc CHANGES LICENSE README examples/ html/ +%{python_sitelib}/%{name}/ +%{python_sitelib}/%{name}*.egg-info + + +%changelog +* 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 diff --git a/sources b/sources index e69de29..6545a6d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +366c3a9f6a28851af93145c09c17e370 pysnmp-2.0.9.tar.gz