File python-pycopia-SNMP.spec of Package python-pycopia-SNMP

%define modname pycopia-SNMP
Name:           python-%{modname}
Version:        1.0
Release:        1
Summary:        SNMP Protocol Module for Python
URL:            http://www.pycopia.net/
License:        LGPL
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}.tar.bz2
Patch:          pycopia-SNMP-Manager-set.patch
BuildRoot:      %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires:  python-devel python-setuptools
Requires:       python-pycopia-mibs python-setuptools
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:      noarch
%endif

%description
SNMP protocol module for Python. Provides SNMP query, traps, and device manager
objects.

Authors:
--------
    Keith Dart <keith@kdart.com>

%prep
%setup -q -n %{modname}-%{version}
%patch

%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build

%install
python setup.py install --single-version-externally-managed --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README.txt

%changelog
openSUSE Build Service is sponsored by