summaryrefslogtreecommitdiff
path: root/python-snmpfwd.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:18:21 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:18:21 +0000
commit3db88374ba7119aa26553f0bff1e957f57163c68 (patch)
tree814c006391d6236bbf2c343b2d848ed69fb33e90 /python-snmpfwd.spec
parent9f5571dd229f090281797cbd759f1194766d9b22 (diff)
automatic import of python-snmpfwd
Diffstat (limited to 'python-snmpfwd.spec')
-rw-r--r--python-snmpfwd.spec83
1 files changed, 83 insertions, 0 deletions
diff --git a/python-snmpfwd.spec b/python-snmpfwd.spec
new file mode 100644
index 0000000..508e0e7
--- /dev/null
+++ b/python-snmpfwd.spec
@@ -0,0 +1,83 @@
+%global _empty_manifest_terminate_build 0
+Name: python-snmpfwd
+Version: 0.4.4
+Release: 1
+Summary: SNMP Proxy Forwarder can act as an application-level firewall
+License: BSD
+URL: https://github.com/etingof/snmpfwd
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7e/22/5517e589046831143f7764ecdcff15e71a47a7742ca1058a72f7a484350c/snmpfwd-0.4.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-pysnmp
+Requires: python3-pycryptodomex
+
+%description
+or SNMP protocol translator that let SNMPv1/v2c entities to talk to SNMPv3 ones or vice-versa.
+
+
+
+
+%package -n python3-snmpfwd
+Summary: SNMP Proxy Forwarder can act as an application-level firewall
+Provides: python-snmpfwd
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-snmpfwd
+or SNMP protocol translator that let SNMPv1/v2c entities to talk to SNMPv3 ones or vice-versa.
+
+
+
+
+%package help
+Summary: Development documents and examples for snmpfwd
+Provides: python3-snmpfwd-doc
+%description help
+or SNMP protocol translator that let SNMPv1/v2c entities to talk to SNMPv3 ones or vice-versa.
+
+
+
+
+%prep
+%autosetup -n snmpfwd-0.4.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-snmpfwd -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.4-1
+- Package Spec generated