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

%define modname pycopia-SMI
Name:           python-%{modname}
Version:        1.0
Release:        1
Summary:        Python Wrapper for libsmi, Providing Access to MIB/SMI Data Files
URL:            http://www.pycopia.net/
License:        LGPL
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires:  libsmi-devel python-devel python-setuptools
Requires:       python-pycopia-aid python-pycopia-core python-setuptools

%description
Python wrapper for libsmi, providing access to MIB/SMI data files. Also
provides a nicer API that is more object-oriented. Includes node interators.

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

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

%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