forked from pool/python-pyeapi
- Update to version 0.8.3 * This release includes checks on ACL regexp statement of 'match', adopts changes of CLI described in Field Notice 0039 - Use github source URL OBS-URL: https://build.opensuse.org/request/show/767309 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyeapi?expand=0&rev=4
73 lines
2.3 KiB
RPMSpec
73 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-pyeapi
|
|
#
|
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2017-2019, 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-pyeapi
|
|
Version: 0.8.3
|
|
Release: 0
|
|
Summary: Python Client for eAPI
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/arista-eosplus/pyeapi
|
|
Source: https://github.com/arista-eosplus/pyeapi/archive/v%{version}.tar.gz#/pyeapi-%{version}.tar.gz
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module netaddr}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-netaddr
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
The Python Client for eAPI (pyeapi) is a native Python library wrapper around
|
|
Arista EOS eAPI. It provides a set of Python language bindings for configuring
|
|
Arista EOS nodes.
|
|
|
|
The Python library can be used to communicate with EOS either locally
|
|
(on-box) or remotely (off-box). It uses a standard INI-style configuration file
|
|
to specify one or more nodes and connection profiles.
|
|
|
|
The pyeapi library also provides an API layer for building native Python
|
|
objects to interact with the destination nodes. The API layer is a convenient
|
|
implementation for working with the EOS configuration and is extensible for
|
|
developing custom implementations.
|
|
|
|
%prep
|
|
%setup -q -n pyeapi-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%fdupes %{buildroot}
|
|
|
|
%check
|
|
%pytest test/unit
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGELOG.md README.md
|
|
%doc examples
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|