[packages/nlohmann-json] - build with multiple headers for compatibility with projects expecting non-amalgamated version; rel

qboosh qboosh at pld-linux.org
Mon Jul 4 22:46:42 CEST 2022


commit b38d5215ea1dddca3556642b52b39f970c66ca9f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 4 22:48:19 2022 +0200

    - build with multiple headers for compatibility with projects expecting non-amalgamated version; release 3

 nlohmann-json.spec | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/nlohmann-json.spec b/nlohmann-json.spec
index 4991511..1961db8 100644
--- a/nlohmann-json.spec
+++ b/nlohmann-json.spec
@@ -2,7 +2,7 @@ Summary:	JSON for Modern C++ by Niels Lohmann
 Summary(pl.UTF-8):	JSON dla współczesnego C++ autorstwa Nielsa Lohmanna
 Name:		nlohmann-json
 Version:	3.10.5
-Release:	2
+Release:	3
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/nlohmann/json/releases
@@ -41,7 +41,8 @@ install -d build
 cd build
 # force noarch libdir
 %cmake .. \
-	-DCMAKE_INSTALL_LIBDIR=share
+	-DCMAKE_INSTALL_LIBDIR=share \
+	-DJSON_MultipleHeaders=ON
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -56,6 +57,12 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc ChangeLog.md LICENSE.MIT README.md
 %dir %{_includedir}/nlohmann
+%{_includedir}/nlohmann/adl_serializer.hpp
+%{_includedir}/nlohmann/byte_container_with_subtype.hpp
 %{_includedir}/nlohmann/json.hpp
+%{_includedir}/nlohmann/json_fwd.hpp
+%{_includedir}/nlohmann/ordered_map.hpp
+%{_includedir}/nlohmann/detail
+%{_includedir}/nlohmann/thirdparty
 %{_npkgconfigdir}/nlohmann_json.pc
 %{_datadir}/cmake/nlohmann_json
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nlohmann-json.git/commitdiff/b38d5215ea1dddca3556642b52b39f970c66ca9f



More information about the pld-cvs-commit mailing list