14
0
Files
python-simplejson/python-simplejson.spec
Alexandre Rogoski 10854928ae - 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/

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=21
2011-09-06 22:13:40 +00:00

62 lines
1.9 KiB
RPMSpec

#
# spec file for package python-simplejson
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# 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.2.1
Release: 1
Url: http://github.com/simplejson/simplejson
Summary: Simple, fast, extensible JSON encoder/decoder for Python
License: MIT License
Group: Development/Languages/Python
Source: %{mod_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
%if 0%{?suse_version}
%py_requires
%endif
%description
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 %{mod_name}-%{version}
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{python_sitearch}/*
%changelog