[packages/jwt-cpp] make cmake config arch independent

atler atler at pld-linux.org
Wed Mar 25 20:18:39 CET 2026


commit 71d9ff464c6b28897e3392e97218f56703b4c1b6
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 25 20:16:39 2026 +0100

    make cmake config arch independent

 arch-independent.patch | 11 +++++++++++
 jwt-cpp.spec           |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/jwt-cpp.spec b/jwt-cpp.spec
index fbf5717..a36c5fa 100644
--- a/jwt-cpp.spec
+++ b/jwt-cpp.spec
@@ -7,6 +7,7 @@ Group:		Development/Libraries
 Source0:	https://github.com/Thalhammer/jwt-cpp/releases/download/v%{version}/%{name}-v%{version}.tar.gz
 # Source0-md5:	c1bdbd8284cce73e0a21d093b32415b5
 Patch0:		system-picojson.patch
+Patch1:		arch-independent.patch
 URL:		https://thalhammer.github.io/jwt-cpp/
 BuildRequires:	cmake >= 3.14
 BuildRequires:	libstdc++-devel
@@ -33,6 +34,7 @@ C++11.
 %prep
 %setup -qc
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %cmake -B build \
diff --git a/arch-independent.patch b/arch-independent.patch
new file mode 100644
index 0000000..dab0003
--- /dev/null
+++ b/arch-independent.patch
@@ -0,0 +1,11 @@
+--- jwt-cpp-0.7.1/CMakeLists.txt.orig	2026-03-25 20:12:45.969940181 +0100
++++ jwt-cpp-0.7.1/CMakeLists.txt	2026-03-25 20:14:35.324830165 +0100
+@@ -144,7 +144,7 @@
+   ${CMAKE_CURRENT_LIST_DIR}/cmake/jwt-cpp-config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/jwt-cpp-config.cmake
+   INSTALL_DESTINATION ${JWT_CMAKE_FILES_INSTALL_DIR})
+ write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/jwt-cpp-config-version.cmake VERSION 0.7.1
+-                                 COMPATIBILITY ExactVersion)
++                                 COMPATIBILITY ExactVersion ARCH_INDEPENDENT)
+ 
+ install(TARGETS jwt-cpp EXPORT jwt-cpp-targets PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ install(EXPORT jwt-cpp-targets NAMESPACE jwt-cpp:: FILE jwt-cpp-targets.cmake
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jwt-cpp.git/commitdiff/ddae0a1eb475552e450e410ace7da439ec18c886



More information about the pld-cvs-commit mailing list