python-netmiko/python-netmiko.spec

111 lines
3.2 KiB
RPMSpec
Raw Normal View History

2023-07-14 07:54:17 +00:00
%global _empty_manifest_terminate_build 0
%global common_description \
Multi-vendor library to simplify Paramiko SSH connections to network devices
2021-03-13 06:52:25 +00:00
2023-07-14 07:54:17 +00:00
Name: python-netmiko
Version: 4.2.0
2022-06-20 14:14:33 +08:00
Release: 1
2023-07-14 07:54:17 +00:00
Summary: Multi-vendor library to simplify legacy CLI connections to network devices
License: MIT
URL: https://github.com/ktbyers/netmiko
Source0: https://files.pythonhosted.org/packages/c9/26/74cb42b86b38069bcc4974fc5fccf670ca9b151cf6cfc5ecd97005cc01ae/netmiko-4.2.0.tar.gz
2021-03-13 06:52:25 +00:00
BuildArch: noarch
%description
2023-07-14 07:54:17 +00:00
%{common_description}
2021-03-13 06:52:25 +00:00
2023-07-14 07:54:17 +00:00
%package -n python3-netmiko
Summary: Multi-vendor library to simplify legacy CLI connections to network devices
Provides: python-netmiko
# Base build requires
2021-03-13 06:52:25 +00:00
BuildRequires: python3-devel
2023-07-14 07:54:17 +00:00
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General build requires
BuildRequires: python3-ntc-templates
2021-03-13 06:52:25 +00:00
BuildRequires: python3-paramiko
BuildRequires: python3-pyserial
2023-07-14 07:54:17 +00:00
BuildRequires: python3-pyyaml
BuildRequires: python3-scp
2021-03-13 06:52:25 +00:00
BuildRequires: python3-textfsm
2023-07-14 07:54:17 +00:00
# General requires
Requires: python3-ntc-templates
Requires: python3-paramiko
Requires: python3-pyserial
Requires: python3-pyyaml
Requires: python3-scp
Requires: python3-textfsm
%description -n python3-netmiko
%{common_description}
2021-03-13 06:52:25 +00:00
2023-07-14 07:54:17 +00:00
%package help
Summary: Multi-vendor library to simplify legacy CLI connections to network devices
Provides: python3-netmiko-doc
%description help
%{common_description}
2021-03-13 06:52:25 +00:00
%prep
2023-07-14 07:54:17 +00:00
%autosetup -n netmiko-%{version}
2021-03-13 06:52:25 +00:00
%build
%py3_build
%install
%py3_install
2023-07-14 07:54:17 +00:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
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
#%{__python3} setup.py test
%files -n python3-netmiko -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2021-03-13 06:52:25 +00:00
%changelog
2023-07-14 07:54:17 +00:00
* Fri Jul 14 2023 OpenStack_SIG <openstack@openeuler.org> - 4.2.0-1
- Upgrade package python3-netmiko to version 4.2.0
2022-12-07 15:29:02 +08:00
* Wed Dec 07 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 4.1.2-1
- Update package to version 4.1.2
2022-11-07 13:53:08 +00:00
* 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
2022-06-20 14:14:33 +08:00
- Upgrade version for openstack yoga
2021-03-15 08:13:57 +00:00
* Mon Mar 15 2021 zhaorenhai <zhaorenhai@hotmail.com> - 3.3.3-2
- Change url and license
2021-03-13 06:52:25 +00:00
* Sat Mar 13 2021 zhaorenhai <zhaorenhai@hotmail.com> - 3.3.3-1
2023-07-14 07:54:17 +00:00
- Init package and spec, referenced from Fedora.