14
0
Files
python-junos-eznc/python-junos-eznc.spec

101 lines
3.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-junos-eznc
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2017-2020, 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/
#
%{?sle15_python_module_pythons}
Name: python-junos-eznc
Version: 2.7.2
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
# replace deprecated yamlordereddictloader by yamlloader
# https://github.com/Juniper/py-junos-eznc/pull/1078
Patch0: python-junos-eznc-remove-yamlordereddictloader.patch
# PATCH-FIX-UPSTREAM gh#Juniper/py-junos-eznc#1307 Don't require six
Patch1: no-six.patch
# PATCH-FIX-UPSTREAM gh#Juniper/py-junos-eznc#1324 telnetlib not in py313 anymore
Patch2: get-telnetlib-from-netmiko.patch
BuildRequires: %{python_module Jinja2 >= 2.7.1}
BuildRequires: %{python_module PyYAML >= 5.1}
BuildRequires: %{python_module lxml >= 3.2.4}
BuildRequires: %{python_module ncclient >= 0.6.15}
BuildRequires: %{python_module netmiko >= 4.4.0}
BuildRequires: %{python_module nose2}
Accepting request 811686 from home:pgajdos:python - version update to 2.4.1 ## [1.4.0] ### Fixed - [#617] - IOS show ip ospf database router: Removed reliance on static spacing - [#620] - NXOS show fex: Allow spaces in descriptions - [#621] - Juniper show arp, etc.: Account for virtual chassis output (`{master:0}`) - [#626] - ASA show vpn-sessiondb anyconnect: Require index, capture different format style - [#650] - IOS show ip ospf database network: Change to allow one or more whitespace at the beginning of the line rather than 1 or more due to different output - [#647] - ASA show route: Allow multiline route statements - [#659] - IOS show mac address-table: Allow VLAN to be non-whitespace to allow N/A as an option ### Added - [#618] - IOS show ip ospf database network: New template - [#619] - HP Comware display lldp neighbor information verbose: New template - [#625] - ASA show vpn-sessiondb anyconnect: New template - [#628] - Cisco WLC show mobility sum: New template - [#631] - ASA show vpn-sessiondb anyconnect: Account for new data for assigned/public IP, group policy, and tunnel group - [#629] - ASA show crypto ipsec sa - Add LOCAL_ADDRESS_NAME, CURRENT_PEER_NAME, DYNAMIC_PEER_NAME, LOCAL_CRYPTO_ENDPOINT_NAME, REMOTE_CRYPTO_ENDPOINT_NAME - [#632] - ASA show nat: Added SERVICE_PROTOCOL - [#635] - IOS show ip route summary: New template - [#636] - ASA show vpn-sessiondb: New template - [#638] - ASA show inventory: Capture PID and VID withoout serial - [#637] - Cisco WLC show band select: New template ## [1.4.0] ### Fixed - [#548] IOS show mac address-table: Account for Total Mac Addresses - [#565] IOS show license: Avoid trailing spaces for features - [#575] NXOS show version: Match N5K PLATFORM & LAST_REBOOT captures split words - [#574] ASA show failover: Account for new output (IPS) - [#577] IOS show mac address-table: Account for Multicast Entries - [#582] NXOS show interface transceiver: Remove requirement for TYPE OBS-URL: https://build.opensuse.org/request/show/811686 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-junos-eznc?expand=0&rev=6
2020-06-05 10:16:10 +00:00
BuildRequires: %{python_module ntc-templates}
BuildRequires: %{python_module paramiko >= 1.15.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyparsing}
BuildRequires: %{python_module pyserial}
BuildRequires: %{python_module scp >= 0.7.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module transitions}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module yamlloader}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Jinja2 >= 2.7.1
Requires: python-PyYAML >= 5.1
Requires: python-lxml >= 3.2.4
Requires: python-ncclient >= 0.6.15
Requires: python-netmiko >= 4.4.0
Requires: python-paramiko >= 1.15.2
Requires: python-pyparsing
Requires: python-pyserial
Requires: python-scp >= 0.7.0
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
%autosetup -p1 -n py-junos-eznc-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -B -m nose2 -vv tests.unit
%files %{python_files}
%license COPYRIGHT LICENSE
%doc README.txt README.md
%dir %{python_sitelib}/jnpr
%{python_sitelib}/jnpr/junos
%{python_sitelib}/junos_eznc-%{version}.dist-info
%{python_sitelib}/junos_eznc-%{version}*-nspkg.pth
%changelog