summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 14:58:51 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 14:58:51 +0000
commit726c6a38c3faef122f0a78486514ca092768b348 (patch)
tree9aa501798d4f99fa9366438ae0fbdd1ae16e2fb9
parent3c9f6b6acbf2626a651bad0a4a0f6178e329e170 (diff)
automatic import of python-pysmi
-rw-r--r--.gitignore1
-rw-r--r--python-pysmi.spec82
-rw-r--r--sources1
3 files changed, 84 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b853fc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pysmi-0.3.4.tar.gz
diff --git a/python-pysmi.spec b/python-pysmi.spec
new file mode 100644
index 0000000..5c747f3
--- /dev/null
+++ b/python-pysmi.spec
@@ -0,0 +1,82 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pysmi
+Version: 0.3.4
+Release: 1
+Summary: SNMP SMI/MIB Parser
+License: BSD
+URL: https://github.com/etingof/pysmi
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/52/42/ddaeb06ff551672b17b77f81bc2e26b7c6060b28fe1552226edc6476ce37/pysmi-0.3.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-ply
+
+%description
+A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
+
+
+
+
+%package -n python3-pysmi
+Summary: SNMP SMI/MIB Parser
+Provides: python-pysmi
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pysmi
+A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
+
+
+
+
+%package help
+Summary: Development documents and examples for pysmi
+Provides: python3-pysmi-doc
+%description help
+A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
+
+
+
+
+%prep
+%autosetup -n pysmi-0.3.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-pysmi -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..721776a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+10a9dd140ad512eed9f37344df83ce9d pysmi-0.3.4.tar.gz