File python-easysnmp.spec of Package python-easysnmp
#
# spec file for package python-easysnmp
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# 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-%{**}}
%bcond_with test
Name: python-easysnmp
Version: 0.2.5
Release: 0
Summary: A Pythonic SNMP library
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/kamakazikamikaze/easysnmp
Source: https://files.pythonhosted.org/packages/source/e/easysnmp/easysnmp-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: net-snmp-devel
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-flake8}
BuildRequires: %{python_module pytest-sugar}
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
This is a fork of the official Net-SNMP Python Bindings and
brings a more Pythonic interface to the library.
%prep
%setup -q -n easysnmp-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %{python_files}
%doc LICENSE README.rst
%{python_sitearch}/*
%changelog