From 8ffa16e4bced26b5023caf1023e5b96661f5695ab3ed076bf1b32f3bfe78db80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:58:53 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main rapidjson revision 9d99caaf411ae71e3812c4aa0ce75981 --- .gitattributes | 23 ++++++ _service | 16 +++++ rapidjson-1.1.0+git20211015.4d6cb081.tar.xz | 3 + rapidjson.changes | 80 +++++++++++++++++++++ rapidjson.spec | 80 +++++++++++++++++++++ 5 files changed, 202 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 rapidjson-1.1.0+git20211015.4d6cb081.tar.xz create mode 100644 rapidjson.changes create mode 100644 rapidjson.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..dfbebb9 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git + https://github.com/Tencent/rapidjson.git + 4d6cb08189cf7336821f04090b612baa2ca6a90d + enable + rapidjson + 1.1.0+git%cd.%h + thirdparty/* + + + *.tar + xz + + + diff --git a/rapidjson-1.1.0+git20211015.4d6cb081.tar.xz b/rapidjson-1.1.0+git20211015.4d6cb081.tar.xz new file mode 100644 index 0000000..ac0dc97 --- /dev/null +++ b/rapidjson-1.1.0+git20211015.4d6cb081.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:400542c5d8f015082bb7ed7d7aeb0d74f598a1c0a0bdf5057e5e5eaa7f58bd62 +size 866676 diff --git a/rapidjson.changes b/rapidjson.changes new file mode 100644 index 0000000..20521da --- /dev/null +++ b/rapidjson.changes @@ -0,0 +1,80 @@ +------------------------------------------------------------------- +Fri Jan 14 21:24:15 UTC 2022 - Ben Greiner + +- Update to version 1.1.0+git20211015.4d6cb081 + * using the git commit referenced by python-rapidjson + * see also changelog entry from Jun 06 2019 about the reasoning + +------------------------------------------------------------------- +Wed Jun 12 10:15:53 UTC 2019 - Tomáš Chvátal + +- Remove bundled gtest and do not test as the testing only + works with bundled gtest version + +------------------------------------------------------------------- +Thu Jun 06 08:16:06 UTC 2019 - tchvatal@suse.com + +- Switch to _service as upstream didn't release since 2016 and we + would need to backport many more features to make ie python-rapidjson + working +- Update to version 1.1.0+git20190517.4b3d7c2f: + * Add missing curly brackets in STDREGEX's CreatePattern(). + * fix typo + * add missing header "ios" + * doc/tutorial.zh-cn: fixed some typos + * Update allocators.h +- Remove pateches for the old version: + * fix_compilation_gcc7.patch + * fix_compilation_sle11sp4.patch + * fix_install_paths.patch + * ignore_gcc8_warnings.patch + * remove_arch_specific_flags.patch + +------------------------------------------------------------------- +Wed Dec 12 09:43:25 UTC 2018 - Jan Engelhardt + +- Trim bias from description. + +------------------------------------------------------------------- +Tue Dec 11 20:05:08 UTC 2018 - mmnelemane@suse.com + +- Fix build for SLE_12_SP2: + * use %doc for license file to fix build for older distro + +------------------------------------------------------------------- +Mon Jun 18 08:30:06 UTC 2018 - christophe@krop.fr + +- Add upstream's patch ignore_gcc8_warnings.patch. + +------------------------------------------------------------------- +Fri Jun 2 08:03:34 UTC 2017 - christophe@krop.fr + +- Add fix_compilation_gcc7.patch. Fixes build with GCC >= 7.0 + +------------------------------------------------------------------- +Mon Oct 10 14:11:09 UTC 2016 - adam.majer@suse.de + +- Added BuildRoot so we can actually build for SLE11 + +------------------------------------------------------------------- +Fri Sep 30 12:49:18 UTC 2016 - adam.majer@suse.de + +- New upstream version 1.1.0 + * Added JSON Pointer + * Added JSON Schema + * Added relaxed JSON syntax (comment, trailing comma, + NaN/Infinity) + * Iterating array/object with C++11 Range-based for loop + * Reduce memory overhead of each Value from 24 bytes to 16 bytes + in x86-64 architecture. + * full changeset at + https://github.com/miloyip/rapidjson/releases/tag/v1.1.0 +- remove_arch_specific_flags.patch: remove architecture specific + compiler flags. +- merge doc into devel package, it only adds about 20kB + +------------------------------------------------------------------- +Wed Apr 20 12:56:56 UTC 2016 - tbechtold@suse.com + +- Initial packaging (version 1.0.2) + diff --git a/rapidjson.spec b/rapidjson.spec new file mode 100644 index 0000000..a9e65a1 --- /dev/null +++ b/rapidjson.spec @@ -0,0 +1,80 @@ +# +# spec file for package rapidjson +# +# Copyright (c) 2022 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/ +# + + +Name: rapidjson +Version: 1.1.0+git20211015.4d6cb081 +Release: 0 +Summary: JSON parser and generator for C++ +License: MIT +Group: Development/Libraries/C and C++ +URL: http://rapidjson.org/ +Source0: %{name}-%{version}.tar.xz +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig + +%description +RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml. + +* 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). + +%package devel +Summary: Header files for rapidjson, a JSON parser and generator for C++ +Group: Development/Libraries/C and C++ +Provides: %{name} = %{version} + +%description devel +RapidJSON is a header-only JSON parser and generator for C++. +This package contains development headers and examples. + +%prep +%setup -q +sed -i -e 's:-Werror::g' CMakeLists.txt + +%build +%cmake \ + -DDOC_INSTALL_DIR=%{_docdir}/%{name}-devel \ + -DRAPIDJSON_BUILD_TESTS=ON \ + -DRAPIDJSON_ENABLE_INSTRUMENTATION_OPT=OFF +%cmake_build + +%install +%cmake_install + +%files devel +%doc CHANGELOG.md readme.md +%license license.txt +%dir %{_docdir}/%{name}-devel +%{_docdir}/%{name}-devel/* +%{_includedir}/rapidjson/ +%{_libdir}/cmake/RapidJSON/ +%{_libdir}/pkgconfig/*.pc + +%changelog