From 956a8ccefb067dd90b543b068535d6494a6b28b5 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Jul 24 2017 16:09:52 +0000 Subject: Initial import (#1465006) --- diff --git a/.gitignore b/.gitignore index e69de29..c37ae62 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/netmiko-1.4.1.tar.gz diff --git a/python-netmiko.spec b/python-netmiko.spec new file mode 100644 index 0000000..bc7e8a1 --- /dev/null +++ b/python-netmiko.spec @@ -0,0 +1,93 @@ +%if 0%{?fedora} +%global with_python3 1 +%endif + +%global srcname netmiko +%global sum Multi-vendor library to simplify Paramiko SSH connections to network devices + +Name: python-%{srcname} +Version: 1.4.1 +Release: 1%{?dist} +Summary: %{sum} + +License: MIT +URL: https://pypi.python.org/pypi/%{srcname} +Source0: https://pypi.io/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%description +%{sum} + + +%package -n python2-%{srcname} +Summary: %{sum} +BuildRequires: python2-devel +Requires: python2-paramiko >= 1.13.0 +Requires: python2-scp >= 0.10.0 +Requires: PyYAML +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +%{sum} - package for Python 2. + + +%if 0%{?with_python3} + +%package -n python3-%{srcname} +Summary: %{sum} +BuildRequires: python3-devel +Requires: python3-paramiko >= 1.13.0 +Requires: python3-scp >= 0.10.0 +Requires: python3-PyYAML +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{sum} - package for Python 3. + +%endif + +# FIXME: build the documentation, when upstream starts shipping its sources: +# https://github.com/ktbyers/netmiko/issues/507 + + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py2_build + +%if 0%{?with_python3} +%py3_build +%endif + +%install +%py2_install + +%if 0%{?with_python3} +%py3_install +%endif + +%check +# FIXME: run unit tests, when upstream starts shipping them: +# https://github.com/ktbyers/netmiko/issues/508 + + +%files -n python2-%{srcname} +%license LICENSE +%doc README.md +%{python2_sitelib}/* + +%if 0%{?with_python3} + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md +%{python3_sitelib}/* + +%endif + + +%changelog +* Mon Jul 24 2017 Dmitry Tantsur - 1.4.1-1 +- Initial packaging (#1465006) diff --git a/sources b/sources index e69de29..6bdf3c3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (netmiko-1.4.1.tar.gz) = 96bf72c8bfe29004258439f785e1803771efb64f1879e73d3416d2b8ce9c18f8267f1fe46889dab4b73fced8827b309ca3e45f30f1469b0a7f0ada72647cc366