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

%define modname pycopia-mibs
Name:           python-%{modname}
Version:        1.0
Release:        1
Summary:        A Collection of Pre-compiled MIBs for Pycopia SNMP
URL:            http://www.pycopia.net/
License:        LGPL
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires:  python-devel python-setuptools
Requires:       python-pycopia-SMI python-setuptools
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:      noarch
%endif

%description
A collection of pre-compiled MIBs for Pycopia SNMP. These are generated Python
modules, produced by the mib2py program.

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