From b2d93ab2697c1384c7427e123bffae745777d68c832fc1bab5d0b4ceb802c750 Mon Sep 17 00:00:00 2001 From: Alexandre Rogoski Date: Mon, 9 May 2011 03:32:26 +0000 Subject: [PATCH] - Update to 2.1.6: * Prevent segfaults with deeply nested JSON documents https://github.com/simplejson/simplejson/issues/11 * Fix compatibility with Python 2.5 https://github.com/simplejson/simplejson/issues/5 - Aditional changes from 2.1.5 released 2011-04-17: * Built sdist tarball with setuptools_git installed. Argh. - Aditional changes from 2.1.4 released 2011-04-17: * Does not try to build the extension when using PyPy * Trailing whitespace after commas no longer emitted when indent is used * Migrated to github http://github.com/simplejson/simplejson - Regenerate spec file with py2pack. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=19 --- python-simplejson.changes | 16 ++++++++++ python-simplejson.spec | 67 +++++++++++++++------------------------ simplejson-2.1.3.tar.bz2 | 3 -- simplejson-2.1.6.tar.bz2 | 3 ++ 4 files changed, 44 insertions(+), 45 deletions(-) delete mode 100644 simplejson-2.1.3.tar.bz2 create mode 100644 simplejson-2.1.6.tar.bz2 diff --git a/python-simplejson.changes b/python-simplejson.changes index 0c3dfef..13a074b 100644 --- a/python-simplejson.changes +++ b/python-simplejson.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon May 9 03:20:42 UTC 2011 - alexandre@exatati.com.br + +- Update to 2.1.6: + * Prevent segfaults with deeply nested JSON documents + https://github.com/simplejson/simplejson/issues/11 + * Fix compatibility with Python 2.5 + https://github.com/simplejson/simplejson/issues/5 + - Aditional changes from 2.1.5 released 2011-04-17: + * Built sdist tarball with setuptools_git installed. Argh. + - Aditional changes from 2.1.4 released 2011-04-17: + * Does not try to build the extension when using PyPy + * Trailing whitespace after commas no longer emitted when indent is used + * Migrated to github http://github.com/simplejson/simplejson +- Regenerate spec file with py2pack. + ------------------------------------------------------------------- Thu Mar 3 08:33:53 UTC 2011 - saschpe@suse.de diff --git a/python-simplejson.spec b/python-simplejson.spec index 3b0e69b..fd3f003 100644 --- a/python-simplejson.spec +++ b/python-simplejson.spec @@ -11,49 +11,38 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. - +# # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%define mod_name simplejson + +Name: python-%{mod_name} +Version: 2.1.6 +Release: 0 +Url: http://github.com/simplejson/simplejson Summary: Simple, fast, extensible JSON encoder/decoder for Python - -Name: python-simplejson -Version: 2.1.3 -Release: 1 -License: BSD -Url: http://undefined.org/python/#simplejson -Group: Development/Libraries/Python -Source: simplejson-%{version}.tar.bz2 -BuildRequires: fdupes -BuildRequires: python -BuildRequires: python-devel -BuildRequires: python-setuptools +License: MIT License +Group: Development/Languages/Python +Source: %{mod_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{py_requires} +BuildRequires: python-devel +BuildRequires: python-distribute +%if 0%{?suse_version} +%py_requires +%endif %description -simplejson is a simple, fast, complete, correct and extensible JSON - encoder and decoder for Python 2.3+. It is pure Python code -with no dependencies, but includes an optional C extension for a serious speed -boost. - -%package doc -License: BSD -Summary: Documentation for simplejson -Group: Development/Libraries/Python -Requires: %name = %version - -%description doc -simplejson is a simple, fast, complete, correct and extensible JSON - encoder and decoder for Python 2.3+. It is pure Python code -with no dependencies, but includes an optional C extension for a serious speed -boost. - -This package contains documentation for simplejson. +simplejson is a simple, fast, complete, correct and extensible +JSON encoder and decoder for Python 2.5+. It is pure Python code +with no dependencies, but includes an optional C extension for a +serious speed boost. %prep -%setup -q -n simplejson-%{version} +%setup -q -n %{mod_name}-%{version} %build export CFLAGS="%{optflags}" @@ -61,18 +50,12 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes %{buildroot} %clean -%{__rm} -rf %{buildroot} +rm -rf %{buildroot} %files -%defattr(-, root, root, 0755) -%doc LICENSE.txt CHANGES.txt -%{py_sitedir}* - -%files doc -%defattr(0644, root, root, 0755) -%doc docs index.rst +%defattr(-,root,root) +%{python_sitearch}/* %changelog diff --git a/simplejson-2.1.3.tar.bz2 b/simplejson-2.1.3.tar.bz2 deleted file mode 100644 index ff087d9..0000000 --- a/simplejson-2.1.3.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f8b827106b23c7cdc1f7345dcb60646ef009a9dadf7d0a29ca2579a687635efc -size 116014 diff --git a/simplejson-2.1.6.tar.bz2 b/simplejson-2.1.6.tar.bz2 new file mode 100644 index 0000000..bd2cff1 --- /dev/null +++ b/simplejson-2.1.6.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f46be3ba8d1c9da82db96ccb9e41f5eaef02bca21f6b58862ad051bde099b46 +size 45020