|
|
ab5f7d9 |
%global srcname pysmi
|
|
|
ab5f7d9 |
|
|
|
8c9aa92 |
%{?python_disable_dependency_generator}
|
|
|
8c9aa92 |
|
|
|
ab5f7d9 |
Name: python-smi
|
|
|
ab5f7d9 |
Version: 0.3.4
|
|
|
5d8dac0 |
Release: 4%{?dist}
|
|
|
ab5f7d9 |
Summary: A Python implementation of SNMP/SMI MIB parsing and conversion library
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
License: BSD
|
|
|
ab5f7d9 |
URL: https://github.com/etingof/pysmi
|
|
|
ab5f7d9 |
Source0: %{pypi_source}
|
|
|
ab5f7d9 |
BuildArch: noarch
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
%description
|
|
|
ab5f7d9 |
PySMI is a pure-Python implementation of SNMP SMI MIB parser. This tool is
|
|
|
ab5f7d9 |
designed to turn ASN.1 MIBs into various formats. As of this moment, JSON
|
|
|
ab5f7d9 |
and pysnmp modules can be generated from ASN.1 MIBs.
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
- Understands SMIv1, SMIv2 and de-facto SMI dialects
|
|
|
ab5f7d9 |
- Turns MIBs into pysnmp classes and JSON documents
|
|
|
ab5f7d9 |
- Maintains an index of MIB objects over many MIB modules
|
|
|
ab5f7d9 |
- Automatically pulls ASN.1 MIBs from local directories, ZIP archives, HTTP
|
|
|
ab5f7d9 |
and FTP servers
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
%package -n python3-smi
|
|
|
ab5f7d9 |
Summary: %{summary}
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
BuildRequires: python3-devel
|
|
|
ab5f7d9 |
BuildRequires: python3-setuptools
|
|
|
ab5f7d9 |
BuildRequires: python3-ply
|
|
|
ab5f7d9 |
%{?python_provide:%python_provide python3-smi}
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
%description -n python3-smi
|
|
|
ab5f7d9 |
PySMI is a pure-Python implementation of SNMP SMI MIB parser. This tool is
|
|
|
ab5f7d9 |
designed to turn ASN.1 MIBs into various formats. As of this moment, JSON
|
|
|
ab5f7d9 |
and pysnmp modules can be generated from ASN.1 MIBs.
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
- Understands SMIv1, SMIv2 and de-facto SMI dialects
|
|
|
ab5f7d9 |
- Turns MIBs into pysnmp classes and JSON documents
|
|
|
ab5f7d9 |
- Maintains an index of MIB objects over many MIB modules
|
|
|
ab5f7d9 |
- Automatically pulls ASN.1 MIBs from local directories, ZIP archives, HTTP
|
|
|
ab5f7d9 |
and FTP servers
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
%prep
|
|
|
ab5f7d9 |
%autosetup -n %{srcname}-%{version}
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
%build
|
|
|
ab5f7d9 |
%py3_build
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
%install
|
|
|
ab5f7d9 |
%py3_install
|
|
|
ab5f7d9 |
mv %{buildroot}%{_bindir}/mibcopy.py %{buildroot}%{_bindir}/mibcopy
|
|
|
ab5f7d9 |
mv %{buildroot}%{_bindir}/mibdump.py %{buildroot}%{_bindir}/mibdump
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
# Tests depend on python3-pysnmp and python3-pysnmp depends on python3-smi.
|
|
|
ab5f7d9 |
# This leads to a circular dependency that may cause side-effects.
|
|
|
9c82709 |
#%check
|
|
|
9c82709 |
#%{__python3} setup.py test
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
%files -n python3-smi
|
|
|
ab5f7d9 |
%doc CHANGES.rst README.md THANKS.txt TODO.txt examples/*.py
|
|
|
ab5f7d9 |
%license LICENSE.rst
|
|
|
ab5f7d9 |
%{_bindir}/mibcopy
|
|
|
ab5f7d9 |
%{_bindir}/mibdump
|
|
|
ab5f7d9 |
%{python3_sitelib}/*.egg-info
|
|
|
ab5f7d9 |
%{python3_sitelib}/%{srcname}/
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
%changelog
|
|
|
5d8dac0 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-4
|
|
|
5d8dac0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
5d8dac0 |
|
|
|
2275f64 |
* Sat Jun 01 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.4-3
|
|
|
2275f64 |
- Disable tests
|
|
|
2275f64 |
|
|
|
ab5f7d9 |
* Fri May 31 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.4-2
|
|
|
ab5f7d9 |
- Enable tests
|
|
|
ab5f7d9 |
|
|
|
ab5f7d9 |
* Sun May 05 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.4-1
|
|
|
ab5f7d9 |
- Initial package for Fedora
|