File python-pysnmp-mibs.spec of Package python-pysnmp-mibs
#
# spec file for package pysnmp-mibs
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname pysnmp-mibs
%bcond_without python2
Name: python-%{modname}
Version: 0.1.6
Release: 1
License: BSD-2-Clause
Summary: A Collection of IETF & IANA MIBs Pre-compiled for PySNMP
Url: http://pysnmp.sourceforge.net/
Group: Development/Libraries/Python
Source: http://pypi.python.org/packages/source/p/pysnmp-mibs/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module pysnmp}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pysnmp
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
This is a set of IETF & IANA MIBs pre-compiled and packaged to simplify their
use with the PySNMP library.
All these files were autogenerated from ASN.1 MIB files using ether
build-pysnmp-mib or rebuild-pysnmp-mibs tools. The former is distributed with
pysnmp package while the latter with this pysnmp-mibs one.
%prep
%setup -q -n %{modname}-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(-,root,root)
%license LICENSE.txt
%doc CHANGES.txt README.txt
%{python_sitelib}/pysnmp_mibs
%{python_sitelib}/pysnmp_mibs-%{version}-py*.egg-info
%changelog