[packages/rapidjson] - git hashes are not monothonic, so don't use them for versioning; use date instead (prefixed with "

qboosh qboosh at pld-linux.org
Mon Jun 30 18:50:25 CEST 2025


commit 52e4a2c9f5d53fcfe31e7c9b54fdc4396d9aef39
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jun 30 18:51:48 2025 +0200

    - git hashes are not monothonic, so don't use them for versioning; use date instead (prefixed with "snap" for upgrade from 0.git.*)
    - don't own /usr/share/cmake dir

 rapidjson.spec | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/rapidjson.spec b/rapidjson.spec
index e67bc4b..b7e4dbc 100644
--- a/rapidjson.spec
+++ b/rapidjson.spec
@@ -2,15 +2,18 @@ Summary:	Fast JSON parser and generator for C++
 Summary(pl.UTF-8):	Szybki parser i generator JSON-a dla C++
 Name:		rapidjson
 Version:	1.1.1
-Release:	0.git.24b5e7a8b27f42fa16b96fc70aade9106cf7102f
+%define	gitref	24b5e7a8b27f42fa16b96fc70aade9106cf7102f
+%define	snap	20250205
+%define	rel	1
+Release:	0.snap%{snap}.%{rel}
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/Tencent/rapidjson/releases
-Source0:	rapidjson-1.1.1-0.git.24b5e7a8b27f42fa16b96fc70aade9106cf7102f.tar.gz
+Source0:	rapidjson-%{version}-0.git.%{gitref}.tar.gz
 # Source0-md5:	bac681730be669812f8857a761f5096f
 Patch0:		%{name}-1.1.0-do_not_include_gtest_src_dir.patch
-URL:		http://miloyip.github.io/rapidjson
-BuildRequires:	cmake
+URL:		http://rapidjson.org/
+BuildRequires:	cmake >= 3.5
 BuildRequires:	doxygen
 BuildRequires:	gtest-devel
 BuildRequires:	libstdc++-devel >= 6:8
@@ -139,7 +142,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc CHANGELOG.md license.txt readme.md
 %lang(zh_CN) %doc readme.zh-cn.md
-%{_datadir}/cmake
+%{_datadir}/cmake/RapidJSON
 %{_npkgconfigdir}/RapidJSON.pc
 %{_includedir}/rapidjson
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rapidjson.git/commitdiff/52e4a2c9f5d53fcfe31e7c9b54fdc4396d9aef39



More information about the pld-cvs-commit mailing list