%{?!python:%define python python} %{?!pybasever:%{expand:%%define pybasever %(%{__python} -c "import sys ; print sys.version[:3]")}} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define origname TwistedSNMP Name: %{python}-twistedsnmp Version: 0.3.13 Release: 1%{?dist} Summary: SNMP Protocol for the Twisted Networking Framework Group: Development/Libraries License: MIT URL: http://twistedsnmp.sourceforge.net/ Source0: http://download.sf.net/twistedsnmp/%{origname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: pysnmp-se BuildRequires: %{python}-twisted-core >= 2.4.0 # for FC3 and earlier %if "%{pybasever}" < "2.4" Requires: python(abi) = %{pybasever} %endif Requires: %{python}-twisted-core BuildArch: noarch %description TwistedSNMP is a set of SNMP protocol implementations for Python's Twisted Matrix networking framework using the PySNMP project. It provides the following: * get, set, getnext and getbulk Manager-side queries * get, set, getnext and getbulk Agent-side services %prep %setup -n %{origname}-%{version} -q %build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc doc/* %dir %{python_sitelib}/twistedsnmp/ %{python_sitelib}/twistedsnmp/*.py %{python_sitelib}/twistedsnmp/*.pyc %ghost %{python_sitelib}/twistedsnmp/*.pyo %dir %{python_sitelib}/twistedsnmp/test/ %{python_sitelib}/twistedsnmp/test/*.py %{python_sitelib}/twistedsnmp/test/*.pyc %ghost %{python_sitelib}/twistedsnmp/test/*.pyo %dir %{python_sitelib}/twistedsnmp/utilities/ %{python_sitelib}/twistedsnmp/utilities/*.py %{python_sitelib}/twistedsnmp/utilities/*.pyc %ghost %{python_sitelib}/twistedsnmp/utilities/*.pyo %dir %{python_sitelib}/twistedsnmp/v3/ %{python_sitelib}/twistedsnmp/v3/*.py %{python_sitelib}/twistedsnmp/v3/*.pyc %ghost %{python_sitelib}/twistedsnmp/v3/*.pyo %dir %{python_sitelib}/twistedsnmp/v4/ %{python_sitelib}/twistedsnmp/v4/*.py %{python_sitelib}/twistedsnmp/v4/*.pyc %ghost %{python_sitelib}/twistedsnmp/v4/*.pyo %changelog * Fri Jun 16 2006 Thomas Vander Stichele - 0.3.13-1 - first package