diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 10:52:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 10:52:12 +0000 |
commit | cefb0126ecece164f85365f1961002617bb68c60 (patch) | |
tree | cb8e215f9a7f69e8ab912048be7204c9760558b2 /python-nornir-netmiko.spec | |
parent | 149ad27725d77ca6a8fa76f6a2a56c6cc02afac7 (diff) |
automatic import of python-nornir-netmikoopeneuler20.03
Diffstat (limited to 'python-nornir-netmiko.spec')
-rw-r--r-- | python-nornir-netmiko.spec | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/python-nornir-netmiko.spec b/python-nornir-netmiko.spec new file mode 100644 index 0000000..c4fba24 --- /dev/null +++ b/python-nornir-netmiko.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-nornir-netmiko +Version: 1.0.0 +Release: 1 +Summary: Netmiko's plugins for Nornir +License: Apache-2.0 +URL: https://github.com/ktbyers/nornir_netmiko +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6b/0d/5d0b2ae6dafe6a388c7155a7861cf77b836c7d5f07821001f08c62448de0/nornir_netmiko-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-netmiko +Requires: python3-textfsm + +%description +# nornir_netmiko +Netmiko Plugins for Nornir + + + +%package -n python3-nornir-netmiko +Summary: Netmiko's plugins for Nornir +Provides: python-nornir-netmiko +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-nornir-netmiko +# nornir_netmiko +Netmiko Plugins for Nornir + + + +%package help +Summary: Development documents and examples for nornir-netmiko +Provides: python3-nornir-netmiko-doc +%description help +# nornir_netmiko +Netmiko Plugins for Nornir + + + +%prep +%autosetup -n nornir-netmiko-1.0.0 + +%build +%py3_build + +%install +%py3_install +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 . + +%files -n python3-nornir-netmiko -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated |