2016-04-21 11:14:05 +02:00
|
|
|
#
|
|
|
|
# spec file for package rapidjson
|
|
|
|
#
|
2018-07-02 09:14:47 +02:00
|
|
|
# Copyright (c) 2018 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: rapidjson
|
2016-10-11 08:28:45 +02:00
|
|
|
Version: 1.1.0
|
2016-04-21 11:14:05 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Fast JSON parser and generator for C++
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-02 09:14:47 +02:00
|
|
|
URL: http://rapidjson.org/
|
2016-10-11 08:28:45 +02:00
|
|
|
Source0: https://github.com/miloyip/rapidjson/archive/v%{version}.tar.gz
|
2018-07-02 09:14:47 +02:00
|
|
|
Patch0: remove_arch_specific_flags.patch
|
2016-10-11 08:28:45 +02:00
|
|
|
Patch1: fix_compilation_sle11sp4.patch
|
2017-06-02 10:22:13 +02:00
|
|
|
Patch2: fix_compilation_gcc7.patch
|
2018-07-02 09:14:47 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- ignore_gcc8_warnings.patch -- Ignore GCC 8 warnings.
|
|
|
|
Patch3: ignore_gcc8_warnings.patch
|
2016-10-11 08:28:45 +02:00
|
|
|
Patch10: fix_install_paths.patch
|
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.
|
|
|
|
- it is small but complete. It supports both SAX and DOM style API.
|
|
|
|
The SAX parser is only a half thousand lines of code.
|
|
|
|
- it is fast. Its performance can be comparable to strlen(). It also optionally
|
|
|
|
supports SSE2/SSE4.2 for acceleration.
|
|
|
|
- it is self-contained and header-only. It does not depend on external libraries
|
|
|
|
such as BOOST. It even does not depend on STL.
|
|
|
|
- it is memory-friendly. Each JSON value occupies exactly 16/20 bytes for most
|
|
|
|
32/64-bit machines (excluding text string). By default it uses a fast memory
|
|
|
|
allocator, and the parser allocates memory compactly during parsing.
|
|
|
|
- it is Unicode-friendly. 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).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Fast JSON parser and generator for C++
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-02 09:14:47 +02:00
|
|
|
Provides: %{name} = %{version}
|
2016-10-11 08:28:45 +02:00
|
|
|
%if 0%{?suse_version} > 1200
|
2016-04-21 11:14:05 +02:00
|
|
|
BuildArch: noarch
|
2016-10-11 08:28:45 +02:00
|
|
|
%endif
|
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
|
2018-07-02 09:14:47 +02:00
|
|
|
%patch0 -p1
|
2016-10-11 08:28:45 +02:00
|
|
|
%patch1 -p1
|
2017-06-02 10:22:13 +02:00
|
|
|
%patch2 -p1
|
2018-07-02 09:14:47 +02:00
|
|
|
%patch3 -p1
|
2016-10-11 08:28:45 +02:00
|
|
|
%patch10 -p1
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%build
|
2016-10-11 08:28:45 +02:00
|
|
|
%cmake -DDOC_INSTALL_DIR=%{_docdir}/%{name}
|
|
|
|
make %{?_smp_mflags}
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2018-07-12 14:30:40 +02:00
|
|
|
rm -f %{buildroot}%{_includedir}/%{name}/*.orig
|
2016-04-21 11:14:05 +02:00
|
|
|
|
|
|
|
%files devel
|
2018-07-12 14:30:40 +02:00
|
|
|
%defattr(-,root,root)
|
2018-07-02 09:14:47 +02:00
|
|
|
%license license.txt
|
2016-10-11 08:28:45 +02:00
|
|
|
%dir %{_datadir}/cmake/RapidJSON
|
|
|
|
%{_datadir}/cmake/RapidJSON/RapidJSONConfig.cmake
|
|
|
|
%{_datadir}/cmake/RapidJSON/RapidJSONConfigVersion.cmake
|
|
|
|
%{_datadir}/pkgconfig/RapidJSON.pc
|
2016-04-21 11:14:05 +02:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%{_docdir}/%{name}/*
|
|
|
|
|
|
|
|
%changelog
|