diff --git a/python-simplejson.changes b/python-simplejson.changes index a43c761..305afd3 100644 --- a/python-simplejson.changes +++ b/python-simplejson.changes @@ -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 diff --git a/python-simplejson.spec b/python-simplejson.spec index 583664b..de79db3 100644 --- a/python-simplejson.spec +++ b/python-simplejson.spec @@ -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 diff --git a/simplejson-3.10.0.tar.gz b/simplejson-3.10.0.tar.gz new file mode 100644 index 0000000..0dd7a38 --- /dev/null +++ b/simplejson-3.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:953be622e88323c6f43fad61ffd05bebe73b9fd9863a46d68b052d2aa7d71ce2 +size 77953 diff --git a/simplejson-3.8.2.tar.gz b/simplejson-3.8.2.tar.gz deleted file mode 100644 index b9f742a..0000000 --- a/simplejson-3.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d58439c548433adcda98e695be53e526ba940a4b9c44fb9a05d92cd495cdd47f -size 76578