[packages/python-pysmi] - new: pysmi 0.3.4 (last python2 release), required by python-pysnmp 4.4.12

arekm arekm at pld-linux.org
Thu Oct 1 12:37:16 CEST 2026


commit e77867feec6af975ffd7566e33fc47d946ed8879
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 1 12:36:41 2026 +0200

    - new: pysmi 0.3.4 (last python2 release), required by python-pysnmp 4.4.12

 python-pysmi.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/python-pysmi.spec b/python-pysmi.spec
new file mode 100644
index 0000000..f4003a6
--- /dev/null
+++ b/python-pysmi.spec
@@ -0,0 +1,67 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+%define		module	pysmi
+Summary:	SNMP SMI/MIB parser
+Summary(pl.UTF-8):	Analizator składniowy SNMP SMI/MIB
+Name:		python-%{module}
+# keep 0.3.x here for python2 support; python3 module is built from python3-pysmi.spec
+Version:	0.3.4
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pysmi/
+Source0:	https://files.pythonhosted.org/packages/source/p/pysmi/%{module}-%{version}.tar.gz
+# Source0-md5:	10a9dd140ad512eed9f37344df83ce9d
+URL:		https://github.com/etingof/pysmi
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-ply
+BuildRequires:	python-pysnmp >= 4.3.10
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A pure-Python implementation of SNMP/SMI MIB parsing and conversion
+library. It can turn ASN.1 MIBs into pysnmp Python modules or JSON
+documents.
+
+%description -l pl.UTF-8
+Napisana w czystym Pythonie biblioteka do analizy składniowej i
+konwersji MIB-ów SNMP/SMI. Potrafi przekształcić MIB-y ASN.1 w moduły
+Pythona dla pysnmp lub dokumenty JSON.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py_build
+
+%if %{with tests}
+%{__python} -m unittest discover -s tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py_install
+
+%py_postclean
+
+# mibdump/mibcopy are packaged in python3-pysmi
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/mib{copy,dump}.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst LICENSE.rst README.md THANKS.txt TODO.txt
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pysmi.git/commitdiff/e77867feec6af975ffd7566e33fc47d946ed8879



More information about the pld-cvs-commit mailing list