diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:18:21 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:18:21 +0000 |
| commit | 3db88374ba7119aa26553f0bff1e957f57163c68 (patch) | |
| tree | 814c006391d6236bbf2c343b2d848ed69fb33e90 | |
| parent | 9f5571dd229f090281797cbd759f1194766d9b22 (diff) | |
automatic import of python-snmpfwd
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-snmpfwd.spec | 83 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 85 insertions, 0 deletions
@@ -0,0 +1 @@ +/snmpfwd-0.4.4.tar.gz 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 @@ -0,0 +1 @@ +e7004ab21b2acc9aaaf6b34876765d30 snmpfwd-0.4.4.tar.gz |
