|
rdobuilder |
5e68e9 |
%global srcname netmiko
|
|
rdobuilder |
5e68e9 |
%global sum Multi-vendor library to simplify Paramiko SSH connections to network devices
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
Name: python-%{srcname}
|
|
rdobuilder |
5e68e9 |
Version: 4.3.0
|
|
rdobuilder |
5e68e9 |
Release: 1%{?dist}
|
|
rdobuilder |
5e68e9 |
Summary: %{sum}
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
License: MIT and ASL 2.0
|
|
rdobuilder |
5e68e9 |
URL: https://pypi.org/project/%{srcname}
|
|
rdobuilder |
5e68e9 |
Source0: https://files.pythonhosted.org/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
BuildArch: noarch
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%description
|
|
rdobuilder |
5e68e9 |
%{sum}
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%package -n python3-%{srcname}
|
|
rdobuilder |
5e68e9 |
Summary: %{sum}
|
|
rdobuilder |
5e68e9 |
BuildRequires: python3-devel
|
|
rdobuilder |
5e68e9 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
5e68e9 |
# See prep section below on textfsm
|
|
rdobuilder |
5e68e9 |
Requires: python3-textfsm >= 1.1.3
|
|
rdobuilder |
5e68e9 |
BuildRequires: python3-textfsm
|
|
rdobuilder |
5e68e9 |
BuildRequires: python3-pysnmp-lextudio
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
# TODO(dtantsur): one of the optional modules requires pysnmp, but it's not
|
|
rdobuilder |
5e68e9 |
# usable in Python 3.12. Add it when a version that does not require asyncore
|
|
rdobuilder |
5e68e9 |
# is uploaded.
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%py_provides python3-%{srcname}
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%description -n python3-%{srcname}
|
|
rdobuilder |
5e68e9 |
%{sum} - package for Python 3.
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
# FIXME: build the documentation, when upstream starts shipping its sources:
|
|
rdobuilder |
5e68e9 |
# https://github.com/ktbyers/netmiko/issues/507
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%prep
|
|
rdobuilder |
5e68e9 |
%autosetup -n %{srcname}-%{version}
|
|
rdobuilder |
5e68e9 |
# NOTE(dtantsur): ntc-templates is not packaged, we're using python3-textfsm
|
|
rdobuilder |
5e68e9 |
# instead. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1927400.
|
|
rdobuilder |
5e68e9 |
sed -i '/ntc-templates/d' pyproject.toml
|
|
rdobuilder |
5e68e9 |
# FIXME(dtantsur): auto-generating this dependency does not work. No idea why.
|
|
rdobuilder |
5e68e9 |
sed -i '/textfsm/d' pyproject.toml
|
|
rdobuilder |
5e68e9 |
# FIXME(dtantsur): I hope upstream changes their mind on the versioning:
|
|
rdobuilder |
5e68e9 |
# https://github.com/ktbyers/netmiko/issues/3415
|
|
rdobuilder |
5e68e9 |
sed -i '/requires.*poetry/s/==1.3.2/-core/' pyproject.toml
|
|
rdobuilder |
5e68e9 |
sed -i 's/poetry.masonry.api/poetry.core.masonry.api/g' pyproject.toml
|
|
rdobuilder |
5e68e9 |
# Years after Python 2 removal, Fedora still considers just "python" ambiguous.
|
|
rdobuilder |
5e68e9 |
# Let's assume they shouldn't be invoked directly, only via generated scripts.
|
|
rdobuilder |
5e68e9 |
sed -si '/^#!\/usr\/bin\/env python/d' netmiko/cli_tools/netmiko_*.py
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%generate_buildrequires
|
|
rdobuilder |
5e68e9 |
%pyproject_buildrequires
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%build
|
|
rdobuilder |
5e68e9 |
%pyproject_wheel
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%install
|
|
rdobuilder |
5e68e9 |
%pyproject_install
|
|
rdobuilder |
5e68e9 |
%pyproject_save_files netmiko
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%check
|
|
rdobuilder |
5e68e9 |
# FIXME: run unit tests, when/if upstream creates them:
|
|
rdobuilder |
5e68e9 |
# https://github.com/ktbyers/netmiko/issues/509
|
|
rdobuilder |
5e68e9 |
export PYTHONPATH="%{buildroot}/%{python3_sitelib}"
|
|
rdobuilder |
5e68e9 |
%pyproject_check_import
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
rdobuilder |
5e68e9 |
%{_bindir}/netmiko-cfg
|
|
rdobuilder |
5e68e9 |
%{_bindir}/netmiko-grep
|
|
rdobuilder |
5e68e9 |
%{_bindir}/netmiko-show
|
|
rdobuilder |
5e68e9 |
%license LICENSE
|
|
rdobuilder |
5e68e9 |
%doc README.md
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
%changelog
|
|
rdobuilder |
5e68e9 |
* Sun Apr 21 2024 Dmitry Tantsur <dtantsur@proton.me> - 4.3.0-1
|
|
rdobuilder |
5e68e9 |
- Update to 4.3.0
|
|
rdobuilder |
5e68e9 |
- Use poetry instead of explicit setup.py, switch to new packaging macros
|
|
rdobuilder |
5e68e9 |
- Patch out the hardcoded poetry version, we have a much newer one
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Sun Apr 21 2024 Dmitry Tantsur <dtantsur@proton.me> - 4.1.2-1
|
|
rdobuilder |
5e68e9 |
- Update to 4.1.2 (in preparation to much large updates)
|
|
rdobuilder |
5e68e9 |
- Synchronize dependencies with upstream setup.py
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-7
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-6
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-5
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 4.1.1-4
|
|
rdobuilder |
5e68e9 |
- Rebuilt for Python 3.12
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-3
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Tue Jul 26 2022 Karolina Kula <kkula@redhat.com> - 4.1.1-2
|
|
rdobuilder |
5e68e9 |
- Revert removal of ntc-templates removing sed
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Mon Jul 25 2022 Karolina Kula <kkula@redhat.com> - 4.1.1-1
|
|
rdobuilder |
5e68e9 |
- Update to version 4.1.1
|
|
rdobuilder |
5e68e9 |
- Remove ntc-templates removing sed
|
|
rdobuilder |
5e68e9 |
- Add generated executables to files
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-7
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.3.3-6
|
|
rdobuilder |
5e68e9 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-5
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-4
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.3.3-3
|
|
rdobuilder |
5e68e9 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Wed Feb 10 2021 Dmitry Tantsur <divius.inside@gmail.com> - 3.3.3-2
|
|
rdobuilder |
5e68e9 |
- Fix missing dependency (#1927400)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Tue Feb 09 2021 Joel Capitao <jcapitao@redhat.com> - 3.3.3-1
|
|
rdobuilder |
5e68e9 |
- Update to 3.3.3 (#1791581)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Wed Sep 09 2020 Yatin Karel <ykarel@redhat.com> - 3.3.0-1
|
|
rdobuilder |
5e68e9 |
- Update to 3.3.0 (#1791581)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Sun Aug 30 2020 Dmitry Tantsur <divius.inside@gmail.com> - 3.2.0-1
|
|
rdobuilder |
5e68e9 |
- Update to 3.2.0 (#1791581)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 3.0.0-3
|
|
rdobuilder |
5e68e9 |
- Rebuilt for Python 3.9
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Thu Jan 16 2020 Dmitry Tantsur <divius.inside@gmail.com> - 3.0.0-1
|
|
rdobuilder |
5e68e9 |
- Update to 3.0.0 (#1791581)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Tue Dec 03 2019 Dmitry Tantsur <divius.inside@gmail.com> - 2.4.2-1
|
|
rdobuilder |
5e68e9 |
- Update to 2.4.2 (#1727660)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.3.3-4
|
|
rdobuilder |
5e68e9 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.3.3-3
|
|
rdobuilder |
5e68e9 |
- Rebuilt for Python 3.8
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Mon Mar 11 2019 Dmitry Tantsur <divius.inside@gmail.com> - 2.3.3-1
|
|
rdobuilder |
5e68e9 |
- Update to 2.3.3
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Mon Feb 11 2019 Yatin Karel <ykarel@redhat.com> - 2.3.0-1
|
|
rdobuilder |
5e68e9 |
- Update to 2.3.0
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-3
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Mon Sep 10 2018 Dmitry Tantsur <divius.inside@gmail.com> - 2.2.2-2
|
|
rdobuilder |
5e68e9 |
- Disable Python 2 subpackage for Fedora (rhbz#1627402)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Thu Jul 19 2018 Dmitry Tantsur <divius.inside@gmail.com> - 2.2.2-1
|
|
rdobuilder |
5e68e9 |
- Update to 2.2.2 (rhbz#1559654)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Tue Jul 17 2018 Dmitry Tantsur <divius.inside@gmail.com> - 2.1.1-1
|
|
rdobuilder |
5e68e9 |
- Update to 2.1.1
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 2.1.0-2
|
|
rdobuilder |
5e68e9 |
- Rebuilt for Python 3.7
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Mar 16 2018 Alan Pevec <alan.pevec@redhat.com> 2.1.0-1
|
|
rdobuilder |
5e68e9 |
- Update to 2.1.0 (rhbz#1532228)
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Thu Jan 4 2018 Dmitry Tantsur <divius.inside@gmail.com> - 1.4.3-1
|
|
rdobuilder |
5e68e9 |
- Update to 1.4.3
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2
|
|
rdobuilder |
5e68e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Mon Jul 24 2017 Dmitry Tantsur <divius.inside@gmail.com> - 1.4.2-1
|
|
rdobuilder |
5e68e9 |
- Update to 1.4.2
|
|
rdobuilder |
5e68e9 |
|
|
rdobuilder |
5e68e9 |
* Mon Jul 24 2017 Dmitry Tantsur <divius.inside@gmail.com> - 1.4.1-1
|
|
rdobuilder |
5e68e9 |
- Initial packaging (#1465006)
|