From 05b43279a8ec522c655dd7d72269df12149274838ad9e0d9cd54bf5a101d61a0 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Sun, 22 Jul 2018 21:04:07 +0000 Subject: [PATCH] Accepting request 624012 from devel:languages:python - Update to version 2.2.2 * Add Dell EMC Isilon Support * Add Citrix NetScaler Support * Add Dell OS10 Support * Add Apresia Systems AEOS Support * Add fast_cli mode to Netmiko to improve performance * Add support for a session_log - Correct package name for python-PyYAML (case-sensitive) - Use %license not %doc macro - Remove devel as it is not needed. - Remove pytest suggestion. - Disable testing during build as those aren't unit tests. See See https://github.com/ktbyers/netmiko/blob/develop/TESTING.md - Create python-netmiko package. OBS-URL: https://build.opensuse.org/request/show/624012 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netmiko?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + netmiko-2.2.2.tar.gz | 3 ++ python-netmiko.changes | 41 ++++++++++++++++++++++ python-netmiko.spec | 78 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 146 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 netmiko-2.2.2.tar.gz create mode 100644 python-netmiko.changes create mode 100644 python-netmiko.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/netmiko-2.2.2.tar.gz b/netmiko-2.2.2.tar.gz new file mode 100644 index 0000000..59d040c --- /dev/null +++ b/netmiko-2.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7066d63e47c5a9928d7a011a76502df45ebce7eeaed4951cc5263459d50116d4 +size 76053 diff --git a/python-netmiko.changes b/python-netmiko.changes new file mode 100644 index 0000000..c1beea9 --- /dev/null +++ b/python-netmiko.changes @@ -0,0 +1,41 @@ +------------------------------------------------------------------- +Thu Jul 19 07:51:23 UTC 2018 - mardnh@gmx.de + +- Update to version 2.2.2 + * Add Dell EMC Isilon Support + * Add Citrix NetScaler Support + * Add Dell OS10 Support + * Add Apresia Systems AEOS Support + * Add fast_cli mode to Netmiko to improve performance + * Add support for a session_log + +------------------------------------------------------------------- +Mon Jun 25 21:21:06 UTC 2018 - gyee@suse.com + +- Correct package name for python-PyYAML (case-sensitive) + +------------------------------------------------------------------- +Thu Jun 21 07:38:47 UTC 2018 - tchvatal@suse.com + +- Use %license not %doc macro + +------------------------------------------------------------------- +Wed Jun 20 21:06:26 UTC 2018 - gyee@suse.com + +- Remove devel as it is not needed. + +------------------------------------------------------------------- +Wed Jun 20 18:00:29 UTC 2018 - gyee@suse.com + +- Remove pytest suggestion. + +------------------------------------------------------------------- +Wed Jun 20 17:04:49 UTC 2018 - gyee@suse.com + +- Disable testing during build as those aren't unit tests. See + See https://github.com/ktbyers/netmiko/blob/develop/TESTING.md + +------------------------------------------------------------------- +Tue Jun 19 17:47:16 UTC 2018 - gyee@suse.com + +- Create python-netmiko package. diff --git a/python-netmiko.spec b/python-netmiko.spec new file mode 100644 index 0000000..53fe7af --- /dev/null +++ b/python-netmiko.spec @@ -0,0 +1,78 @@ +# +# spec file for package python-netmiko +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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-%{**}} +Name: python-netmiko +Version: 2.2.2 +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 +BuildRequires: python2-enum34 +BuildRequires: python2-ipaddress +Requires: python-PyYAML +Requires: python-paramiko >= 2.0.0 +Requires: python-pyserial +Requires: python-scp >= 0.10.0 +Requires: python-textfsm +BuildArch: noarch +%ifpython2 +Requires: python-enum34 +Requires: python-ipaddress +%endif +# SECTION test requirements +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module paramiko >= 2.0.0} +BuildRequires: %{python_module pyserial} +BuildRequires: %{python_module scp >= 0.10.0} +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} + +%build +%python_build + +%install +%python_install +%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. + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/* + +%changelog