1
0
Files
python-netmiko/python-netmiko.spec
Dirk Mueller 310fbc5d84 - update to 4.3.0:
* Netmiko's session_log has certain scenarios where it was
    failing to hide the default no_log items ("secret" and
    "password"). This bug has generally been fixed though there
    are likely edge scenarios where this could still happen.
    Given the nature of the session_log it should always be
    viewed as a security sensitive file.
  * Drop PY3.7 support
  * Improve Ciena SAOS logic in set_base_prompt
  * Improve Nokia SROS disable paging behavior
  * Remove Arris and Casa from SSH autodetect
  * Add support for Genie and Linux
  * Improve TP-Link session_preparation behavior
  * Improve MikoTik terminal size definition
  * Improve Arista SSH autodetection
  * Fix SNMP autodetection when hostname is used (instead of
    IPv4/IPv6 address)
  * Improve SCP behavior for remote_file_size when subdirectories
    are used
  * Implement TelnetFallback entry point
  * Improve Extreme SLX-OS autodetect
  * Improve Fortinet driver _get_output_mode_v6 behavior
  * Improve HP comware and HP procurve behavior in
    session_preparation
  * Add Allied Telesis in SNMP and SSH autodetect
  * Update hp_comware.py handle RBM in prompt
  * Update vyos_ssh.py to enter and exit config mode on save
  * Handle Huawei secure configuration message
  * Add support for a SessionLog object in dunder-init(). This
    allows a custom no_log definition.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netmiko?expand=0&rev=48
2023-12-12 13:38:34 +00:00

99 lines
3.1 KiB
RPMSpec

#
# spec file for package python-netmiko
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-netmiko
Version: 4.3.0
Release: 0
Summary: Multi-vendor library to simplify Paramiko SSH connections to network devices
License: MIT
Group: Development/Languages/Python
URL: https://github.com/ktbyers/netmiko
Source: https://files.pythonhosted.org/packages/source/n/netmiko/netmiko-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-ntc-templates
Requires: python-paramiko >= 2.6.0
Requires: python-pyserial
Requires: python-scp >= 0.13.2
Requires: python-setuptools
Requires: python-tenacity
Requires: python-textfsm >= 1.1.2
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module paramiko >= 2.6.0}
BuildRequires: %{python_module pyserial}
BuildRequires: %{python_module scp >= 0.13.2}
BuildRequires: %{python_module textfsm}
# /SECTION
%python_subpackages
%description
Multi-vendor library to simplify Paramiko SSH connections to network devices.
%prep
%setup -q -n netmiko-%{version}
# drop shebang
sed -i -e '/^#!\//, 1d' \
netmiko/nokia/nokia_sros.py \
netmiko/cdot/cdot_cros_ssh.py
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/netmiko-cfg
%python_clone -a %{buildroot}%{_bindir}/netmiko-grep
%python_clone -a %{buildroot}%{_bindir}/netmiko-show
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# NOTE: for testing, we have to manually run it against a given device.
#
# See https://github.com/ktbyers/netmiko/blob/develop/TESTING.md
#
# Unfortunately, we can't do that during build as those doesn't appeared
# to be unit tests.
%post
%python_install_alternative netmiko-cfg
%python_install_alternative netmiko-grep
%python_install_alternative netmiko-show
%postun
%python_uninstall_alternative netmiko-cfg
%python_uninstall_alternative netmiko-grep
%python_uninstall_alternative netmiko-show
%files %{python_files}
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/netmiko-cfg
%python_alternative %{_bindir}/netmiko-grep
%python_alternative %{_bindir}/netmiko-show
%{python_sitelib}/netmiko
%{python_sitelib}/netmiko-%{version}*-info
%changelog