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