update to 1.3.0 [release 1.3.0-1mamba;Thu Aug 20 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 04:43:32 +01:00
parent e8dcdcdbfa
commit 44adb38e1e
2 changed files with 34 additions and 4 deletions

View File

@ -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<std::string, IClientConnectionHandler *> 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);

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.3.0-1mamba
- update to 1.3.0
* Sat Apr 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-2mamba
- rebuilt with libjson-rpc-cpp 1.9.2