Blob Blame History Raw
%if 0%{?fedora}
%global with_python3 1

%global srcname netmiko
%global sum Multi-vendor library to simplify Paramiko SSH connections to network devices

Name:           python-%{srcname}
Version:        1.4.2
Release:        1%{?dist}
Summary:        %{sum}

License:        MIT
URL:  {srcname}

BuildArch:      noarch


%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.


# FIXME: build the documentation, when upstream starts shipping its sources:

%autosetup -n %{srcname}-%{version}


%if 0%{?with_python3}


%if 0%{?with_python3}

# FIXME: run unit tests, when upstream starts shipping them:

%files -n python2-%{srcname}
%license LICENSE

%if 0%{?with_python3}

%files -n python3-%{srcname}
%license LICENSE


* Mon Jul 24 2017 Dmitry Tantsur <> - 1.4.2-1
- Update to 1.4.2

* Mon Jul 24 2017 Dmitry Tantsur <> - 1.4.1-1
- Initial packaging (#1465006)