2019-10-07 08:08:30 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-junos-eznc
|
|
|
|
|
#
|
2020-06-05 10:16:10 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-10-07 08:08:30 +00:00
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-06-05 10:16:10 +00:00
|
|
|
%define skip_python2 1
|
2019-10-07 08:08:30 +00:00
|
|
|
Name: python-junos-eznc
|
2020-08-22 19:44:49 +00:00
|
|
|
Version: 2.5.2
|
2019-10-07 08:08:30 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Junos 'EZ' automation for non-programmers
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://www.github.com/Juniper/py-junos-eznc
|
|
|
|
|
Source: https://github.com/Juniper/py-junos-eznc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2019-10-07 08:24:22 +00:00
|
|
|
BuildRequires: %{python_module Jinja2 >= 2.7.1}
|
|
|
|
|
BuildRequires: %{python_module PyYAML >= 5.1}
|
|
|
|
|
BuildRequires: %{python_module lxml >= 3.2.4}
|
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
|
BuildRequires: %{python_module ncclient >= 0.6.3}
|
|
|
|
|
BuildRequires: %{python_module netaddr}
|
|
|
|
|
BuildRequires: %{python_module nose}
|
2020-06-05 10:16:10 +00:00
|
|
|
BuildRequires: %{python_module ntc-templates}
|
2019-10-07 08:24:22 +00:00
|
|
|
BuildRequires: %{python_module paramiko >= 1.15.2}
|
|
|
|
|
BuildRequires: %{python_module pyparsing}
|
|
|
|
|
BuildRequires: %{python_module pyserial}
|
|
|
|
|
BuildRequires: %{python_module scp >= 0.7.0}
|
|
|
|
|
BuildRequires: %{python_module selectors2}
|
2019-10-07 08:08:30 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-10-07 08:24:22 +00:00
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
|
BuildRequires: %{python_module transitions}
|
2019-10-07 08:08:30 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-Jinja2 >= 2.7.1
|
2019-10-07 08:24:22 +00:00
|
|
|
Requires: python-PyYAML >= 5.1
|
2019-10-07 08:08:30 +00:00
|
|
|
Requires: python-lxml >= 3.2.4
|
2019-10-07 08:24:22 +00:00
|
|
|
Requires: python-ncclient >= 0.6.3
|
2019-10-07 08:08:30 +00:00
|
|
|
Requires: python-netaddr
|
2020-06-05 10:16:10 +00:00
|
|
|
Requires: python-ntc-templates
|
2019-10-07 08:08:30 +00:00
|
|
|
Requires: python-paramiko >= 1.15.2
|
2019-10-07 08:24:22 +00:00
|
|
|
Requires: python-pyparsing
|
2019-10-07 08:08:30 +00:00
|
|
|
Requires: python-pyserial
|
|
|
|
|
Requires: python-scp >= 0.7.0
|
|
|
|
|
Requires: python-six
|
|
|
|
|
Requires: python-transitions
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Junos PyEZ is designed to provide the same capabilities as a user would have
|
|
|
|
|
on the Junos CLI, but in an environment built for automation tasks.
|
|
|
|
|
These capabilities include, but are not limited to:
|
|
|
|
|
|
|
|
|
|
- Remote connectivity and management of Junos devices via NETCONF
|
|
|
|
|
- Provide "facts" about the device
|
|
|
|
|
- Retrieve "operational" or "run-state" information
|
|
|
|
|
- Retrieve configuration information
|
|
|
|
|
- Make configuration changes in unstructured and structured ways
|
|
|
|
|
- Provide common utilities for tasks such as secure copy of files and
|
|
|
|
|
software updates
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n py-junos-eznc-%{version}
|
2019-10-07 08:24:22 +00:00
|
|
|
sed -i -e '/yamlordereddictloader/d' requirements.txt
|
|
|
|
|
# requires deprecated and not working yamlordereddictloader
|
|
|
|
|
rm tests/unit/factory/test_cmdtable.py
|
2019-10-07 08:08:30 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2019-10-07 08:24:22 +00:00
|
|
|
%python_expand PYTHONPATH=lib/ nosetests-%{$python_bin_suffix} -v tests/unit
|
2019-10-07 08:08:30 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license COPYRIGHT LICENSE
|
|
|
|
|
%doc README.txt README.md
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|