14
0

Accepting request 480736 from home:rjschwei:branches:devel:languages:python

- Switch to single-spec build
- Update to 3.10.0
  * Add RawJSON class to allow a faster path for already encoded JSON.
- From 3.9.0
  * Workaround for bad behavior in string subclasses
  * Fix warnings flagged by -3
  * Update readthedocs documentation links
  * Add build status badge to README

OBS-URL: https://build.opensuse.org/request/show/480736
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=63
This commit is contained in:
Jan Matejek
2017-03-20 14:41:00 +00:00
committed by Git OBS Bridge
parent 2b9b5bdb76
commit a210e43284
4 changed files with 46 additions and 21 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Mar 16 18:58:42 UTC 2017 - rjschwei@suse.com
- Switch to single-spec build
- Update to 3.10.0
* Add RawJSON class to allow a faster path for already encoded JSON.
- From 3.9.0
* Workaround for bad behavior in string subclasses
* Fix warnings flagged by -3
* Update readthedocs documentation links
* Add build status badge to README
-------------------------------------------------------------------
Fri Nov 18 22:41:28 UTC 2016 - dmueller@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-simplejson
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,20 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-simplejson
Version: 3.8.2
Version: 3.10.0
Release: 0
Url: http://github.com/simplejson/simplejson
Summary: Simple, fast, extensible JSON encoder/decoder for Python
License: MIT or AFL-2.1
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%else
%py_requires
%endif
Url: http://github.com/simplejson/simplejson
Source: http://pypi.io/packages/source/s/simplejson/simplejson-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
%python_subpackages
%description
simplejson is a simple, fast, complete, correct and extensible
@@ -39,22 +37,37 @@ 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.
%package test
Version: %{version}
Release: 0
Summary: Tests for python-simplejson
Group: Development/Languages/Python
Requires: %{name} == %{version}
%description test
Test cases for python-simplejson
%prep
%setup -q -n simplejson-%{version}
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%check
python setup.py test
%python_exec setup.py test
%files
%files %{python_files}
%defattr(-,root,root)
%doc CHANGES.txt LICENSE.txt README.rst
%{python_sitearch}/simplejson/
%{python_sitearch}/simplejson-%{version}-py%{py_ver}.egg-info
%exclude %{python_sitearch}/simplejson/tests/*
%{python_sitearch}/*
%files %{python_files test}
%defattr(-,root,root)
%{python_sitearch}/simplejson/tests/*
%changelog

3
simplejson-3.10.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:953be622e88323c6f43fad61ffd05bebe73b9fd9863a46d68b052d2aa7d71ce2
size 77953

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d58439c548433adcda98e695be53e526ba940a4b9c44fb9a05d92cd495cdd47f
size 76578