ab5f7d9
%global srcname pysmi
ab5f7d9
8c9aa92
%{?python_disable_dependency_generator}
8c9aa92
ab5f7d9
Name:           python-smi
ab5f7d9
Version:        0.3.4
7283f85
Release:        13%{?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
7283f85
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-13
7283f85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7283f85
9829aa1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-12
9829aa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9829aa1
f3ffab6
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3.4-11
f3ffab6
- Rebuilt for Python 3.10
f3ffab6
39e063b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-10
39e063b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
39e063b
6ebc152
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-9
6ebc152
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6ebc152
45e8452
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.4-8
45e8452
- Rebuilt for Python 3.9
45e8452
eae63e3
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-7
eae63e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
eae63e3
b2e80a1
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.4-6
b2e80a1
- Rebuilt for Python 3.8.0rc1 (#1748018)
b2e80a1
517efe7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.4-5
517efe7
- Rebuilt for Python 3.8
517efe7
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