forked from pool/python-simplejson
Accepting request 83928 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/83928 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-simplejson?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,34 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 20 13:59:30 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Re-add python-distribute, you can't simply remove that, it breaks RPM updates
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 6 22:10:51 UTC 2011 - alexandre@exatati.com.br
|
||||||
|
|
||||||
|
- Update to 2.2.1:
|
||||||
|
* Fix MANIFEST.in issue when building a sdist from a sdist.
|
||||||
|
https://github.com/simplejson/simplejson/issues/16
|
||||||
|
- Aditional changes from version 2.2.0:
|
||||||
|
* Remove setuptools requirement, reverted to pure distutils
|
||||||
|
* use_decimal default for encoding (dump, dumps, JSONEncoder) is now True
|
||||||
|
* tuple encoding as JSON objects can be turned off with new
|
||||||
|
tuple_as_array=False option.
|
||||||
|
https://github.com/simplejson/simplejson/pull/6
|
||||||
|
* namedtuple (or other tuple subclasses with _asdict methods) are now
|
||||||
|
encoded as JSON objects rather than arrays by default. Can be disabled
|
||||||
|
and treated as a tuple with the new namedtuple_as_object=False option.
|
||||||
|
https://github.com/simplejson/simplejson/pull/6
|
||||||
|
* JSONDecodeError is now raised instead of ValueError when a document
|
||||||
|
ends with an opening quote and the C speedups are in use.
|
||||||
|
https://github.com/simplejson/simplejson/issues/15
|
||||||
|
* Updated documentation with information about JSONDecodeError
|
||||||
|
* Force unicode linebreak characters to be escaped (U+2028 and U+2029)
|
||||||
|
http://timelessrepo.com/json-isnt-a-javascript-subset
|
||||||
|
* Moved documentation from a git submodule to
|
||||||
|
http://simplejson.readthedocs.org/
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 9 03:20:42 UTC 2011 - alexandre@exatati.com.br
|
Mon May 9 03:20:42 UTC 2011 - alexandre@exatati.com.br
|
||||||
|
|
||||||
|
@@ -16,25 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{!?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-simplejson
|
||||||
|
Version: 2.2.1
|
||||||
Name: python-%{mod_name}
|
Release: 0
|
||||||
Version: 2.1.6
|
|
||||||
Release: 1
|
|
||||||
Url: http://github.com/simplejson/simplejson
|
Url: http://github.com/simplejson/simplejson
|
||||||
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
||||||
License: MIT License
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: %{mod_name}-%{version}.tar.bz2
|
Source: simplejson-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-distribute
|
BuildRequires: python-distribute
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%py_requires
|
%py_requires
|
||||||
%endif
|
%endif
|
||||||
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
simplejson is a simple, fast, complete, correct and extensible
|
simplejson is a simple, fast, complete, correct and extensible
|
||||||
@@ -43,18 +40,14 @@ with no dependencies, but includes an optional C extension for a
|
|||||||
serious speed boost.
|
serious speed boost.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{mod_name}-%{version}
|
%setup -q -n simplejson-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||||
python setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3f46be3ba8d1c9da82db96ccb9e41f5eaef02bca21f6b58862ad051bde099b46
|
|
||||||
size 45020
|
|
3
simplejson-2.2.1.tar.bz2
Normal file
3
simplejson-2.2.1.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9689c87055f87dc3d5b221e199be5881336ccf0cbf24455794d3dac11204fe77
|
||||||
|
size 42876
|
Reference in New Issue
Block a user