Compare commits
No commits in common. "2838b253a522e9c8481d32ca9470d338d141ce11" and "66372c18d6a8d59f5eca9a2b868c7a4300bf2eaf" have entirely different histories.
2838b253a5
...
66372c18d6
Binary file not shown.
@ -1,52 +1,49 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global srcname netmiko
|
||||||
%global common_description \
|
%global sum Multi-vendor library to simplify Paramiko SSH connections to network devices
|
||||||
Multi-vendor library to simplify Paramiko SSH connections to network devices
|
|
||||||
|
Name: python-%{srcname}
|
||||||
|
Version: 3.3.3
|
||||||
|
Release: 2
|
||||||
|
Summary: %{sum}
|
||||||
|
|
||||||
Name: python-netmiko
|
|
||||||
Version: 4.2.0
|
|
||||||
Release: 1
|
|
||||||
Summary: Multi-vendor library to simplify legacy CLI connections to network devices
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/ktbyers/netmiko
|
URL: https://github.com/ktbyers/netmiko
|
||||||
Source0: https://files.pythonhosted.org/packages/c9/26/74cb42b86b38069bcc4974fc5fccf670ca9b151cf6cfc5ecd97005cc01ae/netmiko-4.2.0.tar.gz
|
Source0: https://github.com/ktbyers/netmiko/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
%{sum}
|
||||||
|
|
||||||
%package -n python3-netmiko
|
%package -n python3-%{srcname}
|
||||||
Summary: Multi-vendor library to simplify legacy CLI connections to network devices
|
Summary: %{sum}
|
||||||
Provides: python-netmiko
|
|
||||||
# Base build requires
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
Requires: python3-paramiko >= 2.6.0
|
||||||
BuildRequires: python3-pbr
|
Requires: python3-scp >= 0.13.2
|
||||||
BuildRequires: python3-pip
|
|
||||||
BuildRequires: python3-wheel
|
|
||||||
# General build requires
|
|
||||||
BuildRequires: python3-ntc-templates
|
|
||||||
BuildRequires: python3-paramiko
|
|
||||||
BuildRequires: python3-pyserial
|
|
||||||
BuildRequires: python3-pyyaml
|
|
||||||
BuildRequires: python3-scp
|
|
||||||
BuildRequires: python3-textfsm
|
|
||||||
# General requires
|
|
||||||
Requires: python3-ntc-templates
|
|
||||||
Requires: python3-paramiko
|
|
||||||
Requires: python3-pyserial
|
Requires: python3-pyserial
|
||||||
Requires: python3-pyyaml
|
Requires: python3-tenacity
|
||||||
Requires: python3-scp
|
|
||||||
Requires: python3-textfsm
|
Requires: python3-textfsm
|
||||||
%description -n python3-netmiko
|
# For import test, keep the same as requirements
|
||||||
%{common_description}
|
BuildRequires: python3-paramiko
|
||||||
|
BuildRequires: python3-scp
|
||||||
|
BuildRequires: python3-pyserial
|
||||||
|
BuildRequires: python3-tenacity
|
||||||
|
BuildRequires: python3-textfsm
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
%package help
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
Summary: Multi-vendor library to simplify legacy CLI connections to network devices
|
|
||||||
Provides: python3-netmiko-doc
|
%description -n python3-%{srcname}
|
||||||
%description help
|
%{sum} - package for Python 3.
|
||||||
%{common_description}
|
|
||||||
|
# FIXME: build the documentation, when upstream starts shipping its sources:
|
||||||
|
# https://github.com/ktbyers/netmiko/issues/507
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n netmiko-%{version}
|
%autosetup -n %{srcname}-%{version}
|
||||||
|
# NOTE(dtantsur): ntc-templates is not packaged, we're using python3-textfsm
|
||||||
|
# instead. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1927400.
|
||||||
|
sed -i '/ntc-templates/d' setup.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -54,57 +51,20 @@ Provides: python3-netmiko-doc
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
%check
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
# FIXME: run unit tests, when/if upstream creates them:
|
||||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
# https://github.com/ktbyers/netmiko/issues/509
|
||||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
%{__python3} -c "from netmiko import ConnectHandler"
|
||||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
pushd %{buildroot}
|
|
||||||
if [ -d usr/lib ]; then
|
|
||||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/lib64 ]; then
|
|
||||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/bin ]; then
|
|
||||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/sbin ]; then
|
|
||||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
touch doclist.lst
|
|
||||||
if [ -d usr/share/man ]; then
|
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
|
||||||
|
|
||||||
#%check
|
%files -n python3-%{srcname}
|
||||||
#%{__python3} setup.py test
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%files -n python3-netmiko -f filelist.lst
|
|
||||||
%dir %{python3_sitelib}/*
|
|
||||||
|
|
||||||
%files help -f doclist.lst
|
|
||||||
%{_docdir}/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jul 14 2023 OpenStack_SIG <openstack@openeuler.org> - 4.2.0-1
|
|
||||||
- Upgrade package python3-netmiko to version 4.2.0
|
|
||||||
|
|
||||||
* Wed Dec 07 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 4.1.2-1
|
|
||||||
- Update package to version 4.1.2
|
|
||||||
|
|
||||||
* Mon Nov 7 2022 hkgy <kaguyahatu@outlook.com> - 4.1.1-1
|
|
||||||
- Upgrade to v4.1.1
|
|
||||||
|
|
||||||
* Thu Jun 16 2022 OpenStack_SIG <openstack@openeuler.org> - 3.4.0-1
|
|
||||||
- Upgrade version for openstack yoga
|
|
||||||
|
|
||||||
* Mon Mar 15 2021 zhaorenhai <zhaorenhai@hotmail.com> - 3.3.3-2
|
* Mon Mar 15 2021 zhaorenhai <zhaorenhai@hotmail.com> - 3.3.3-2
|
||||||
- Change url and license
|
- Change url and license
|
||||||
|
|
||||||
* Sat Mar 13 2021 zhaorenhai <zhaorenhai@hotmail.com> - 3.3.3-1
|
* Sat Mar 13 2021 zhaorenhai <zhaorenhai@hotmail.com> - 3.3.3-1
|
||||||
- Init package and spec, referenced from Fedora.
|
- Init package and spec, referenced from Fedora.
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
seperator: .
|
|
||||||
src_repo: ktbyers/netmiko
|
|
||||||
tag_prefix: ^
|
|
||||||
version_control: github.com
|
|
||||||
BIN
v3.3.3.tar.gz
Normal file
BIN
v3.3.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user