2016-04-21 11:14:05 +02:00
|
|
|
#
|
|
|
|
# spec file for package rapidjson
|
|
|
|
#
|
2019-06-06 13:20:01 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-04-21 11:14:05 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-06-06 13:20:01 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-04-21 11:14:05 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: rapidjson
|
2019-06-06 13:20:01 +02:00
|
|
|
Version: 1.1.0+git20190517.4b3d7c2f
|
2016-04-21 11:14:05 +02:00
|
|
|
Release: 0
|
2018-12-12 11:44:20 +01:00
|
|
|
Summary: JSON parser and generator for C++
|
2016-04-21 11:14:05 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-02 09:14:47 +02:00
|
|
|
URL: http://rapidjson.org/
|
2019-06-06 13:20:01 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2016-04-21 11:14:05 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2018-07-02 09:14:47 +02:00
|
|
|
BuildRequires: pkgconfig
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml.
|
2018-12-12 11:44:20 +01:00
|
|
|
|
|
|
|
* It supports both SAX and DOM style API. The SAX parser is only a
|
|
|
|
half thousand lines of code.
|
|
|
|
* It optionally supports SSE2/SSE4.2 for acceleration.
|
|
|
|
* Header-only implementation. It does not depend on STL.
|
|
|
|
* Each JSON value occupies exactly 16/20 bytes for most 32/64-bit
|
|
|
|
machines (excluding text string). By default, it uses a memory
|
|
|
|
allocator, and the parser allocates memory compactly during
|
|
|
|
parsing.
|
|
|
|
* It supports UTF-8, UTF-16, UTF-32 (LE & BE), and their detection,
|
|
|
|
validation and transcoding internally. For example, you can read a
|
|
|
|
UTF-8 file and let RapidJSON transcode the JSON strings into UTF-16
|
|
|
|
in the DOM. It also supports surrogates and "\u0000" (null
|
|
|
|
character).
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%package devel
|
2018-12-12 11:44:20 +01:00
|
|
|
Summary: Header files for rapidjson, a JSON parser and generator for C++
|
2016-04-21 11:14:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-02 09:14:47 +02:00
|
|
|
Provides: %{name} = %{version}
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%description devel
|
2016-10-11 08:28:45 +02:00
|
|
|
RapidJSON is a header-only JSON parser and generator for C++.
|
|
|
|
This package contains development headers and examples.
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2019-06-06 13:20:01 +02:00
|
|
|
sed -i -e 's:-Werror::g' CMakeLists.txt
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%build
|
2019-06-06 13:20:01 +02:00
|
|
|
%cmake \
|
|
|
|
-DDOC_INSTALL_DIR=%{_docdir}/%{name}-devel \
|
|
|
|
-DRAPIDJSON_BUILD_TESTS=ON \
|
|
|
|
-DRAPIDJSON_ENABLE_INSTRUMENTATION_OPT=OFF
|
|
|
|
%cmake_build
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2019-06-06 13:20:01 +02:00
|
|
|
|
2016-04-21 11:14:05 +02:00
|
|
|
%files devel
|
2019-06-06 13:20:01 +02:00
|
|
|
%doc CHANGELOG.md readme.md
|
2018-07-02 09:14:47 +02:00
|
|
|
%license license.txt
|
2019-06-06 13:20:01 +02:00
|
|
|
%dir %{_docdir}/%{name}-devel
|
|
|
|
%{_docdir}/%{name}-devel/*
|
|
|
|
%{_includedir}/rapidjson/
|
|
|
|
%{_libdir}/cmake/RapidJSON/
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%changelog
|