From 44adb38e1e7a0d9d2772d855f6733419d4c824f9 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:43:32 +0100 Subject: [PATCH] update to 1.3.0 [release 1.3.0-1mamba;Thu Aug 20 2020] --- ...n-rpc-cpp-1.3.0-libmicrohttpd-0.9.71.patch | 22 +++++++++++++++++++ libjson-rpc-cpp.spec | 16 ++++++++++---- 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 libjson-rpc-cpp-1.3.0-libmicrohttpd-0.9.71.patch diff --git a/libjson-rpc-cpp-1.3.0-libmicrohttpd-0.9.71.patch b/libjson-rpc-cpp-1.3.0-libmicrohttpd-0.9.71.patch new file mode 100644 index 0000000..6640677 --- /dev/null +++ b/libjson-rpc-cpp-1.3.0-libmicrohttpd-0.9.71.patch @@ -0,0 +1,22 @@ +--- libjson-rpc-cpp-1.3.0/src/jsonrpccpp/server/connectors/httpserver.cpp.orig 2020-08-20 15:21:21.993000000 +0200 ++++ libjson-rpc-cpp-1.3.0/src/jsonrpccpp/server/connectors/httpserver.cpp 2020-08-20 15:24:49.158000000 +0200 +@@ -151,7 +151,7 @@ + this->SetHandler(NULL); + } + +-int HttpServer::callback(void *cls, MHD_Connection *connection, const char *url, ++MHD_Result HttpServer::callback(void *cls, MHD_Connection *connection, const char *url, + const char *method, const char *version, + const char *upload_data, size_t *upload_data_size, + void **con_cls) { +--- libjson-rpc-cpp-1.3.0/src/jsonrpccpp/server/connectors/httpserver.h.orig 2020-08-20 15:22:10.705000000 +0200 ++++ libjson-rpc-cpp-1.3.0/src/jsonrpccpp/server/connectors/httpserver.h 2020-08-20 15:24:04.849000000 +0200 +@@ -79,7 +79,7 @@ + std::map urlhandler; + struct sockaddr_in loopback_addr; + +- static int callback(void *cls, struct MHD_Connection *connection, ++ static MHD_Result callback(void *cls, struct MHD_Connection *connection, + const char *url, const char *method, const char *version, + const char *upload_data, size_t *upload_data_size, + void **con_cls); diff --git a/libjson-rpc-cpp.spec b/libjson-rpc-cpp.spec index 7dd1e54..12e1911 100644 --- a/libjson-rpc-cpp.spec +++ b/libjson-rpc-cpp.spec @@ -1,6 +1,6 @@ Name: libjson-rpc-cpp -Version: 1.2.0 -Release: 2mamba +Version: 1.3.0 +Release: 1mamba Summary: C++ framework for json-rpc (json remote procedure call) Group: System/Libraries Vendor: openmamba @@ -8,6 +8,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/cinemast/libjson-rpc-cpp.git Source: https://github.com/cinemast/libjson-rpc-cpp.git/v%{version}/libjson-rpc-cpp-%{version}.tar.bz2 +Patch0: libjson-rpc-cpp-1.3.0-libmicrohttpd-0.9.71.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -21,7 +22,7 @@ BuildRequires: libmicrohttpd-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: cmake -BuildRequires: libjsoncpp-devel >= 1.9.2 +BuildRequires: libjsoncpp-devel >= 1.9.3 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -48,9 +49,13 @@ This package contains utility applications for %{name}. %prep %setup -q +%patch0 -p1 %build -%cmake -d build +%cmake -d build \ + -DCOMPILE_TESTS=NO \ + -DCOMPILE_EXAMPLES=NO + %make %install @@ -93,6 +98,9 @@ This package contains utility applications for %{name}. %{_mandir}/man1/jsonrpcstub.1* %changelog +* Thu Aug 20 2020 Silvan Calarco 1.3.0-1mamba +- update to 1.3.0 + * Sat Apr 11 2020 Silvan Calarco 1.2.0-2mamba - rebuilt with libjson-rpc-cpp 1.9.2