forked from pool/python-python-rapidjson
- Update to 0.7.1:
* Raise a more specific exception on loading errors, JSONDecodeError, instead of generic ValueError (issue #118) * Fix optimization path when using OrderedDicts (issue #119) * Fix serialization of IntEnums (issue #121) * Raise correct exception in code samples (PR #109), thanks to Thomas Dähling * Fix compilation with system-wide install of rapidjson (issue #110) * Use current master version of rapidjson, that includes a fix for its issue #1368 and issue #1336, and cures several compilation warnings as well (issue #112 and issue #107) * Fix memory leak when using object_hook (issue #115) - Add patch to enforce use of system rapidjson: * rapidjson-system.patch - Initial packaging of version 0.6.3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-rapidjson?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
ccdb01ab09
commit
01a2e585a2
65
python-python-rapidjson.spec
Normal file
65
python-python-rapidjson.spec
Normal file
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# spec file for package python
|
||||
#
|
||||
# Copyright (c) 2019 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
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-rapidjson
|
||||
Version: 0.7.1
|
||||
Release: 0
|
||||
Summary: Python wrapper around rapidjson
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/python-rapidjson/python-rapidjson
|
||||
Source: https://github.com/python-rapidjson/python-rapidjson/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch0: rapidjson-system.patch
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: rapidjson-devel
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
RapidJSON is an extremely fast C++ JSON parser and serialization library: this
|
||||
module wraps it into a Python 3 extension, exposing its
|
||||
serialization/deserialization (to/from either bytes, str or file-like
|
||||
instances) and JSON Schema validation capabilities.
|
||||
|
||||
%prep
|
||||
%setup -q -n python-rapidjson-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_expand PYTHONPATH=%{buildroot}%{python_sitearch} py.test-%{$python_bin_suffix} -v tests
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGE* README*
|
||||
%license LICENSE*
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user