Blame SPECS/python-netmiko.spec

466b0a
%global srcname netmiko
466b0a
%global sum Multi-vendor library to simplify Paramiko SSH connections to network devices
466b0a
466b0a
Name:           python-%{srcname}
466b0a
Version:        3.3.3
466b0a
Release:        2%{?dist}
466b0a
Summary:        %{sum}
466b0a
466b0a
License:        MIT and ASL 2.0
466b0a
URL:            https://pypi.org/project/%{srcname}
466b0a
Source0:        https://files.pythonhosted.org/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz
466b0a
466b0a
BuildArch:      noarch
466b0a
466b0a
%description
466b0a
%{sum}
466b0a
466b0a
%package -n python3-%{srcname}
466b0a
Summary:        %{sum}
466b0a
BuildRequires:  python3-devel
466b0a
Requires:       python3-paramiko >= 2.6.0
466b0a
Requires:       python3-scp >= 0.13.2
466b0a
Requires:       python3-pyserial
466b0a
Requires:       python3-tenacity
466b0a
Requires:       python3-textfsm
466b0a
# For import test, keep the same as requirements
466b0a
BuildRequires:  python3-paramiko
466b0a
BuildRequires:  python3-scp
466b0a
BuildRequires:  python3-pyserial
466b0a
BuildRequires:  python3-tenacity
466b0a
BuildRequires:  python3-textfsm
466b0a
BuildRequires:  python3-setuptools
466b0a
%if 0%{?rhel} <= 8
466b0a
BuildRequires:  python3-importlib-resources
466b0a
%endif
466b0a
466b0a
%{?python_provide:%python_provide python3-%{srcname}}
466b0a
466b0a
%description -n python3-%{srcname}
466b0a
%{sum} - package for Python 3.
466b0a
466b0a
# FIXME: build the documentation, when upstream starts shipping its sources:
466b0a
# https://github.com/ktbyers/netmiko/issues/507
466b0a
466b0a
%prep
466b0a
%autosetup -n %{srcname}-%{version}
466b0a
# NOTE(dtantsur): ntc-templates is not packaged, we're using python3-textfsm
466b0a
# instead. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1927400.
466b0a
sed -i '/ntc-templates/d' setup.py
466b0a
466b0a
%build
466b0a
%py3_build
466b0a
466b0a
%install
466b0a
%py3_install
466b0a
466b0a
%check
466b0a
# FIXME: run unit tests, when/if upstream creates them:
466b0a
# https://github.com/ktbyers/netmiko/issues/509
466b0a
%{__python3} -c "from netmiko import ConnectHandler"
466b0a
466b0a
%files -n python3-%{srcname}
466b0a
%license LICENSE
466b0a
%doc README.md
466b0a
%{python3_sitelib}/*
466b0a
466b0a
466b0a
%changelog
466b0a
* Wed Feb 10 2021 Dmitry Tantsur <divius.inside@gmail.com> - 3.3.3-2
466b0a
- Fix missing dependency (#1927400)
466b0a
466b0a
* Tue Feb 09 2021 Joel Capitao <jcapitao@redhat.com> - 3.3.3-1
466b0a
- Update to 3.3.3 (#1791581)
466b0a
466b0a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
466b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
466b0a
466b0a
* Wed Sep 09 2020 Yatin Karel <ykarel@redhat.com> - 3.3.0-1
466b0a
- Update to 3.3.0 (#1791581)
466b0a
466b0a
* Sun Aug 30 2020 Dmitry Tantsur <divius.inside@gmail.com> - 3.2.0-1
466b0a
- Update to 3.2.0 (#1791581)
466b0a
466b0a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
466b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
466b0a
466b0a
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 3.0.0-3
466b0a
- Rebuilt for Python 3.9
466b0a
466b0a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
466b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
466b0a
466b0a
* Thu Jan 16 2020 Dmitry Tantsur <divius.inside@gmail.com> - 3.0.0-1
466b0a
- Update to 3.0.0 (#1791581)
466b0a
466b0a
* Tue Dec 03 2019 Dmitry Tantsur <divius.inside@gmail.com> - 2.4.2-1
466b0a
- Update to 2.4.2 (#1727660)
466b0a
466b0a
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.3.3-4
466b0a
- Rebuilt for Python 3.8.0rc1 (#1748018)
466b0a
466b0a
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.3.3-3
466b0a
- Rebuilt for Python 3.8
466b0a
466b0a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
466b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
466b0a
466b0a
* Mon Mar 11 2019 Dmitry Tantsur <divius.inside@gmail.com> - 2.3.3-1
466b0a
- Update to 2.3.3
466b0a
466b0a
* Mon Feb 11 2019 Yatin Karel <ykarel@redhat.com> - 2.3.0-1
466b0a
- Update to 2.3.0
466b0a
466b0a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-3
466b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
466b0a
466b0a
* Mon Sep 10 2018 Dmitry Tantsur <divius.inside@gmail.com> - 2.2.2-2
466b0a
- Disable Python 2 subpackage for Fedora (rhbz#1627402)
466b0a
466b0a
* Thu Jul 19 2018 Dmitry Tantsur <divius.inside@gmail.com> - 2.2.2-1
466b0a
- Update to 2.2.2 (rhbz#1559654)
466b0a
466b0a
* Tue Jul 17 2018 Dmitry Tantsur <divius.inside@gmail.com> - 2.1.1-1
466b0a
- Update to 2.1.1
466b0a
466b0a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
466b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
466b0a
466b0a
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 2.1.0-2
466b0a
- Rebuilt for Python 3.7
466b0a
466b0a
* Fri Mar 16 2018 Alan Pevec <alan.pevec@redhat.com> 2.1.0-1
466b0a
- Update to 2.1.0 (rhbz#1532228)
466b0a
466b0a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
466b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
466b0a
466b0a
* Thu Jan 4 2018 Dmitry Tantsur <divius.inside@gmail.com> - 1.4.3-1
466b0a
- Update to 1.4.3
466b0a
466b0a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2
466b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
466b0a
466b0a
* Mon Jul 24 2017 Dmitry Tantsur <divius.inside@gmail.com> - 1.4.2-1
466b0a
- Update to 1.4.2
466b0a
466b0a
* Mon Jul 24 2017 Dmitry Tantsur <divius.inside@gmail.com> - 1.4.1-1
466b0a
- Initial packaging (#1465006)