diff --git a/pysmi-0.3.1.tar.gz b/pysmi-0.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1bb6ba8cb535cb0a7eae9b1cebf50b7d18eb6143 Binary files /dev/null and b/pysmi-0.3.1.tar.gz differ diff --git a/pysmi-0.3.4.tar.gz b/pysmi-0.3.4.tar.gz deleted file mode 100644 index 9a62bc56c6cc19cdd61746370fea71ee757f641d..0000000000000000000000000000000000000000 Binary files a/pysmi-0.3.4.tar.gz and /dev/null differ diff --git a/python-pysmi.spec b/python-pysmi.spec index 127b9de069b15984c94189075f831e5a48fe7bd6..f54f3c2e15a439a27ea8762775a60bf0abb3d496 100644 --- a/python-pysmi.spec +++ b/python-pysmi.spec @@ -1,49 +1,38 @@ %global _empty_manifest_terminate_build 0 Name: python-pysmi -Version: 0.3.4 +Version: 0.3.1 Release: 1 Summary: SNMP SMI/MIB Parser License: BSD URL: https://github.com/etingof/pysmi -Source0: https://files.pythonhosted.org/packages/52/42/ddaeb06ff551672b17b77f81bc2e26b7c6060b28fe1552226edc6476ce37/pysmi-0.3.4.tar.gz +Source0: https://files.pythonhosted.org/packages/8f/14/68331f94a5cd94e00ff064c9a790e6d7b0a0ade8c66deafa543398ca72ee/pysmi-0.3.1.tar.gz BuildArch: noarch - -Requires: python3-ply - %description A pure-Python implementation of SNMP/SMI MIB parsing and conversion library. - - - -%package -n python3-pysmi +%package -n python2-pysmi Summary: SNMP SMI/MIB Parser -Provides: python-pysmi -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-pysmi +Provides: python2-pysmi +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-ply +%description -n python2-pysmi A pure-Python implementation of SNMP/SMI MIB parsing and conversion library. - - - %package help Summary: Development documents and examples for pysmi -Provides: python3-pysmi-doc +Provides: python-pysmi-doc %description help A pure-Python implementation of SNMP/SMI MIB parsing and conversion library. - - - %prep -%autosetup -n pysmi-0.3.4 +%autosetup -n pysmi-0.3.1 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -70,12 +59,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-pysmi -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-pysmi -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Wed Nov 25 2020 Python_Bot +* Fri May 28 2021 OpenStack_SIG - Package Spec generated