diff --git a/munch-2.2.0.tar.gz b/munch-2.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7ecf93bf2059a63d34aeaef4e79f56ebfba010b3 Binary files /dev/null and b/munch-2.2.0.tar.gz differ diff --git a/munch-2.5.0.tar.gz b/munch-2.5.0.tar.gz deleted file mode 100644 index 806cae7633f2251ed0992c92573ced7267c185e2..0000000000000000000000000000000000000000 Binary files a/munch-2.5.0.tar.gz and /dev/null differ diff --git a/python-munch.spec b/python-munch.spec index 056dba8e133a8591d6055d9ff4e2aec78ffe2130..e85df91c774f3c250f9a07af6ee781120ecd4d95 100644 --- a/python-munch.spec +++ b/python-munch.spec @@ -1,93 +1,34 @@ %global _empty_manifest_terminate_build 0 Name: python-munch -Version: 2.5.0 +Version: 2.2.0 Release: 2 -Summary: A dot-accessible dictionary (a la JavaScript objects) +Summary: A dot-accessible dictionary (a la JavaScript objects). License: MIT -URL: https://github.com/Infinidat/munch -Source0: https://files.pythonhosted.org/packages/43/a1/ec48010724eedfe2add68eb7592a0d238590e14e08b95a4ffb3c7b2f0808/munch-2.5.0.tar.gz +URL: http://github.com/Infinidat/munch +Source0: https://files.pythonhosted.org/packages/92/58/c17cf679a2b9b65541cc71ba13a950289b7d34dd0967e34b8816a4d87044/munch-2.2.0.tar.gz BuildArch: noarch - -Requires: python3-six -Requires: python3-pytest -Requires: python3-coverage -Requires: python3-astroid -Requires: python3-pylint -Requires: python3-astroid -Requires: python3-pylint -Requires: python3-PyYAML - %description -munch is a fork of David Schoonover's **Bunch** package, providing similar functionality. 99% of the work was done by him, and the fork was made mainly for lack of responsiveness for fixes and maintenance on the original code. -Munch is a dictionary that supports attribute-style access, a la JavaScript: -```python ->>> b = Munch() ->>> b.hello = 'world' ->>> b.hello -'world' ->>> b['hello'] += "!" ->>> b.hello -'world!' ->>> b.foo = Munch(lol=True) ->>> b.foo.lol -True ->>> b.foo is b['foo'] -True -``` -%package -n python3-munch -Summary: A dot-accessible dictionary (a la JavaScript objects) -Provides: python-munch -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pbr -%description -n python3-munch -munch is a fork of David Schoonover's **Bunch** package, providing similar functionality. 99% of the work was done by him, and the fork was made mainly for lack of responsiveness for fixes and maintenance on the original code. -Munch is a dictionary that supports attribute-style access, a la JavaScript: -```python ->>> b = Munch() ->>> b.hello = 'world' ->>> b.hello -'world' ->>> b['hello'] += "!" ->>> b.hello -'world!' ->>> b.foo = Munch(lol=True) ->>> b.foo.lol -True ->>> b.foo is b['foo'] -True -``` +%package -n python2-munch +Summary: A dot-accessible dictionary (a la JavaScript objects). +Provides: python2-munch +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-munch %package help Summary: Development documents and examples for munch -Provides: python3-munch-doc +Provides: python2-munch-doc %description help -munch is a fork of David Schoonover's **Bunch** package, providing similar functionality. 99% of the work was done by him, and the fork was made mainly for lack of responsiveness for fixes and maintenance on the original code. -Munch is a dictionary that supports attribute-style access, a la JavaScript: -```python ->>> b = Munch() ->>> b.hello = 'world' ->>> b.hello -'world' ->>> b['hello'] += "!" ->>> b.hello -'world!' ->>> b.foo = Munch(lol=True) ->>> b.foo.lol -True ->>> b.foo is b['foo'] -True -``` %prep -%autosetup -n munch-2.5.0 +%autosetup -n munch-2.2.0 %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 @@ -114,15 +55,14 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-munch -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-munch -f filelist.lst +%{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Wed Jan 06 2020 lingsheng - 2.5.0-2 -- Add buildrequire python3-pbr - -* Mon Oct 19 2020 Python_Bot - 2.5.0-1 +* Tue May 25 2021 openstack-sig +- Fix Provides +* Fri May 14 2021 openstack-sig - Package Spec generated