diff --git a/munch-2.3.2.tar.gz b/munch-2.3.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f11575fa0f19c6fb92e82dffcd8c65ced3255873 Binary files /dev/null and b/munch-2.3.2.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..cfa31224e0dc8498af271fd8eb8102df47dd4e90 100644 --- a/python-munch.spec +++ b/python-munch.spec @@ -1,93 +1,41 @@ %global _empty_manifest_terminate_build 0 Name: python-munch -Version: 2.5.0 -Release: 2 -Summary: A dot-accessible dictionary (a la JavaScript objects) +Version: 2.3.2 +Release: 1 +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/68/f4/260ec98ea840757a0da09e0ed8135333d59b8dfebe9752a365b04857660a/munch-2.3.2.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 -``` +munch is a fork of David Schoonover's Bunch package, providing similar functionality. + -%package -n python3-munch -Summary: A dot-accessible dictionary (a la JavaScript objects) +%package -n python2-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 -``` +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pip +%description -n python2-munch +munch is a fork of David Schoonover's Bunch package, providing similar functionality. + %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 -``` +munch is a fork of David Schoonover's Bunch package, providing similar functionality. + %prep -%autosetup -n munch-2.5.0 +%autosetup -n munch-2.3.2 %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 +62,12 @@ 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 +%dir %{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 +* Thu Apr 29 2021 openstack-sig - Package Spec generated diff --git a/python-munch.yaml b/python-munch.yaml deleted file mode 100644 index 645aafa03285479f6d8ff93dc0ac30f53c009f9e..0000000000000000000000000000000000000000 --- a/python-munch.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: github -src_repo: Infinidat/munch -tag_prefix: "" -seperator: "."