14
0
Files
python-python-rapidjson/python-python-rapidjson.spec
Markéta Machová 2287251c45 Accepting request 1128334 from home:ecsos:python
- Update to 1.13
  * Fix handling of write_mode in dump functions (problem emerged discussing issue #191)
- Update to 1.12
  * Generate wheels on PyPI using final Python 3.12 release, thanks to cibuildwheel 2.16.2
- Update to 1.11
  * Use current master version of rapidjson
  * Use cibuildwheel 2.15.0
- Update to 1.10
  * Use current master version of rapidjson
  * Produce ppc64le wheels, thanks to mgiessing (PR #170)
  * Use cibuildwheel 2.12.1
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1128334
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-rapidjson?expand=0&rev=20
2023-11-23 13:09:56 +00:00

68 lines
2.1 KiB
RPMSpec

#
# spec file for package python-python-rapidjson
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
# check git submodule and update devel:libraries:c_c++/rapidjson
%define rjversion 1.1.0+git20211015.4d6cb081
%{?sle15_python_module_pythons}
Name: python-python-rapidjson
Version: 1.13
Release: 0
Summary: Python wrapper around rapidjson
License: MIT
URL: https://github.com/python-rapidjson/python-rapidjson
Source: https://github.com/python-rapidjson/python-rapidjson/archive/v%{version}.tar.gz#/python-rapidjson-%{version}.tar.gz
Patch0: rapidjson-system.patch
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module devel >= 3.6}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: rapidjson-devel = %{rjversion}
%python_subpackages
%description
RapidJSON is a 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
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
export LANG=en_US.UTF-8
%pytest_arch tests -s
%files %{python_files}
%doc CHANGES.rst README.rst
%license LICENSE
%{python_sitearch}/rapidjson.*.so
%{python_sitearch}/python_rapidjson-%{version}*-info
%changelog