From 37f716576d52463d8ceaa335b129964e4ab6a08e Mon Sep 17 00:00:00 2001 From: pkgagent Date: Fri, 27 Nov 2026 17:49:00 +0800 Subject: [PATCH] Update to upstream 1.5.1 (fixes multiple definition when jwt.hpp is included in multiple files) --- cmake-project-version.patch | 8 ++++---- cpp-jwt.spec | 12 +++++++----- sources | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/cmake-project-version.patch b/cmake-project-version.patch index 36b6aa7..85395ba 100644 --- a/cmake-project-version.patch +++ b/cmake-project-version.patch @@ -1,11 +1,11 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index 2f35431..f08eb22 100644 +index 8c1761f..13f6070 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ - cmake_minimum_required(VERSION 3.5.0) --project(cpp-jwt VERSION 1.2.0) -+project(cpp-jwt VERSION 1.4.0) + cmake_minimum_required(VERSION 3.14.0) +-project(cpp-jwt VERSION 1.5.0) ++project(cpp-jwt VERSION 1.5.1) option(CPP_JWT_BUILD_EXAMPLES "build examples" ON) option(CPP_JWT_BUILD_TESTS "build tests" ON) diff --git a/cpp-jwt.spec b/cpp-jwt.spec index 6c59c43..ce961ed 100644 --- a/cpp-jwt.spec +++ b/cpp-jwt.spec @@ -1,8 +1,8 @@ %global debug_package %{nil} Name: cpp-jwt -Version: 1.4 -Release: 2%{?dist} +Version: 1.5.1 +Release: 1%{?dist} Summary: JSON Web Token library for C++ License: MIT @@ -57,12 +57,14 @@ Provides: %{name}-static = %{version}-%{release} %license LICENSE %doc README.md %{_includedir}/jwt/ -%exclude %{_includedir}/jwt/test -%exclude %{_includedir}/jwt/json/test_json.cc -%{_libdir}/cmake/%{name} +%{_datadir}/cmake/%{name} %changelog +* Fri Nov 27 2026 PkgAgent Robot - 1.5.1-1 +- [Type] sync +- [DESC] Update to upstream 1.5.1 (fixes multiple definition when jwt.hpp is included in multiple files) + * Wed Jun 04 2025 bbrucezhang - 1.4-2 - Rebuilt for loongarch64 diff --git a/sources b/sources index b1946b3..8617595 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cpp-jwt-1.4.tar.gz) = e2c7433599347e0aa34261415441c61ed152e986a2699438d2733c84d56c4005e98cffb430335ff6ac3eed99bd19640d57e300924624d827487ffe85139118c5 +SHA512 (cpp-jwt-1.5.1.tar.gz) = 765579abef09774e396bdf539e1585d383aabe50b76c7d7643ede85187a665a3420db2ad90fee1ca2a9003965b777816b8594dc10b08772db58c8068cbe64a09 -- Gitee