diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 04:32:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 04:32:09 +0000 |
commit | 2f81b59f56ba39fabe450ee8bc57b2963a8a666c (patch) | |
tree | 1c7f72499471a43acffb3ef90cfa71ce50f1ec06 | |
parent | 7a47ed23ab12beec2211572e6a137443d24263f1 (diff) |
automatic import of python-snmpclitools
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-snmpclitools.spec | 83 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 85 insertions, 0 deletions
@@ -0,0 +1 @@ +/snmpclitools-0.6.4.tar.gz diff --git a/python-snmpclitools.spec b/python-snmpclitools.spec new file mode 100644 index 0000000..3b42947 --- /dev/null +++ b/python-snmpclitools.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-snmpclitools +Version: 0.6.4 +Release: 1 +Summary: SNMP command-line tools +License: BSD +URL: https://github.com/etingof/snmpclitools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/03/2a/8488828e92a82c5416e33fba6089283162937b0f73e5b15205fb6ec3bbea/snmpclitools-0.6.4.tar.gz +BuildArch: noarch + +Requires: python3-pysmi +Requires: python3-pysnmp + +%description +A collection of command-line tools for SNMP management purposes built on top of PySNMP package. + + + + +%package -n python3-snmpclitools +Summary: SNMP command-line tools +Provides: python-snmpclitools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-snmpclitools +A collection of command-line tools for SNMP management purposes built on top of PySNMP package. + + + + +%package help +Summary: Development documents and examples for snmpclitools +Provides: python3-snmpclitools-doc +%description help +A collection of command-line tools for SNMP management purposes built on top of PySNMP package. + + + + +%prep +%autosetup -n snmpclitools-0.6.4 + +%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-snmpclitools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.4-1 +- Package Spec generated @@ -0,0 +1 @@ +132b100f5e7b80715e6c1d424e89687c snmpclitools-0.6.4.tar.gz |