forked from pool/python-simplejson
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:
committed by
Git OBS Bridge
parent
2b9b5bdb76
commit
a210e43284
@@ -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
|
Fri Nov 18 22:41:28 UTC 2016 - dmueller@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-simplejson
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,22 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-simplejson
|
Name: python-simplejson
|
||||||
Version: 3.8.2
|
Version: 3.10.0
|
||||||
Release: 0
|
Release: 0
|
||||||
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 or AFL-2.1
|
License: MIT or AFL-2.1
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: http://pypi.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
|
Url: http://github.com/simplejson/simplejson
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: http://pypi.io/packages/source/s/simplejson/simplejson-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
%if 0%{?suse_version} <= 1110
|
BuildRequires: python-rpm-macros
|
||||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
||||||
%else
|
%python_subpackages
|
||||||
%py_requires
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
simplejson is a simple, fast, complete, correct and extensible
|
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
|
with no dependencies, but includes an optional C extension for a
|
||||||
serious speed boost.
|
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
|
%prep
|
||||||
%setup -q -n simplejson-%{version}
|
%setup -q -n simplejson-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGES.txt LICENSE.txt README.rst
|
%doc CHANGES.txt LICENSE.txt README.rst
|
||||||
%{python_sitearch}/simplejson/
|
%exclude %{python_sitearch}/simplejson/tests/*
|
||||||
%{python_sitearch}/simplejson-%{version}-py%{py_ver}.egg-info
|
%{python_sitearch}/*
|
||||||
|
|
||||||
|
%files %{python_files test}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{python_sitearch}/simplejson/tests/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
simplejson-3.10.0.tar.gz
Normal file
3
simplejson-3.10.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:953be622e88323c6f43fad61ffd05bebe73b9fd9863a46d68b052d2aa7d71ce2
|
||||||
|
size 77953
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d58439c548433adcda98e695be53e526ba940a4b9c44fb9a05d92cd495cdd47f
|
|
||||||
size 76578
|
|
Reference in New Issue
Block a user