|
rdobuilder |
83ba0b |
%global modname pysmi
|
|
rdobuilder |
83ba0b |
%global srcname pysmi_lextudio
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%{?python_disable_dependency_generator}
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
Name: python-smi-lextudio
|
|
rdobuilder |
83ba0b |
Version: 1.1.13
|
|
rdobuilder |
83ba0b |
Release: 1%{?dist}
|
|
rdobuilder |
83ba0b |
Summary: A Python implementation of SNMP/SMI MIB parsing and conversion library
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
License: BSD
|
|
rdobuilder |
83ba0b |
URL: https://github.com/lextudio/pysmi
|
|
rdobuilder |
83ba0b |
Source0: %{pypi_source}
|
|
rdobuilder |
83ba0b |
BuildArch: noarch
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%description
|
|
rdobuilder |
83ba0b |
PySMI is a pure-Python implementation of SNMP SMI MIB parser. This tool is
|
|
rdobuilder |
83ba0b |
designed to turn ASN.1 MIBs into various formats. As of this moment, JSON
|
|
rdobuilder |
83ba0b |
and pysnmp modules can be generated from ASN.1 MIBs.
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
- Understands SMIv1, SMIv2 and de-facto SMI dialects
|
|
rdobuilder |
83ba0b |
- Turns MIBs into pysnmp classes and JSON documents
|
|
rdobuilder |
83ba0b |
- Maintains an index of MIB objects over many MIB modules
|
|
rdobuilder |
83ba0b |
- Automatically pulls ASN.1 MIBs from local directories, ZIP archives, HTTP
|
|
rdobuilder |
83ba0b |
and FTP servers
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%package -n python3-smi-lextudio
|
|
rdobuilder |
83ba0b |
Summary: %{summary}
|
|
rdobuilder |
83ba0b |
Conflicts: python3-smi
|
|
rdobuilder |
83ba0b |
Requires: python3-ply >= 3.11
|
|
rdobuilder |
83ba0b |
# Note: Works with requests 2.25.1 in RHEL9, despite 2.26.0 in pyproject.toml
|
|
rdobuilder |
83ba0b |
Requires: python3-requests >= 2.25.1
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
BuildRequires: python3-devel
|
|
rdobuilder |
83ba0b |
BuildRequires: python3-setuptools
|
|
rdobuilder |
83ba0b |
BuildRequires: python3-ply
|
|
rdobuilder |
83ba0b |
%{?python_provide:%python_provide python3-smi-lextudio}
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%description -n python3-smi-lextudio
|
|
rdobuilder |
83ba0b |
PySMI is a pure-Python implementation of SNMP SMI MIB parser. This tool is
|
|
rdobuilder |
83ba0b |
designed to turn ASN.1 MIBs into various formats. As of this moment, JSON
|
|
rdobuilder |
83ba0b |
and pysnmp modules can be generated from ASN.1 MIBs.
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
- Understands SMIv1, SMIv2 and de-facto SMI dialects
|
|
rdobuilder |
83ba0b |
- Turns MIBs into pysnmp classes and JSON documents
|
|
rdobuilder |
83ba0b |
- Maintains an index of MIB objects over many MIB modules
|
|
rdobuilder |
83ba0b |
- Automatically pulls ASN.1 MIBs from local directories, ZIP archives, HTTP
|
|
rdobuilder |
83ba0b |
and FTP servers
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%prep
|
|
rdobuilder |
83ba0b |
%autosetup -n %{srcname}-%{version}
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%build
|
|
rdobuilder |
83ba0b |
%py3_build
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%install
|
|
rdobuilder |
83ba0b |
%py3_install
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
# Tests depend on python3-pysnmp and python3-pysnmp depends on python3-smi.
|
|
rdobuilder |
83ba0b |
# This leads to a circular dependency that may cause side-effects.
|
|
rdobuilder |
83ba0b |
#%check
|
|
rdobuilder |
83ba0b |
#%{__python3} setup.py test
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%files -n python3-smi-lextudio
|
|
rdobuilder |
83ba0b |
%doc README.md examples/*.py
|
|
rdobuilder |
83ba0b |
%license LICENSE.rst
|
|
rdobuilder |
83ba0b |
%{_bindir}/mibcopy
|
|
rdobuilder |
83ba0b |
%{_bindir}/mibdump
|
|
rdobuilder |
83ba0b |
%{python3_sitelib}/*.egg-info
|
|
rdobuilder |
83ba0b |
%{python3_sitelib}/%{modname}/
|
|
rdobuilder |
83ba0b |
|
|
rdobuilder |
83ba0b |
%changelog
|
|
rdobuilder |
83ba0b |
* Thu Feb 22 2024 Lon Hohberger <lon@redhat.com> - 1.1.13-1
|
|
rdobuilder |
83ba0b |
- Initial packaging of python-smi-lextudio, a python-smi replacement
|