diff --git a/cpprest-pthread.patch b/cpprest-pthread.patch deleted file mode 100644 index 6d9a1a9..0000000 --- a/cpprest-pthread.patch +++ /dev/null @@ -1,11 +0,0 @@ -Index: cpprestsdk-2.9.0/Release/tests/common/UnitTestpp/CMakeLists.txt -=================================================================== ---- cpprestsdk-2.9.0.orig/Release/tests/common/UnitTestpp/CMakeLists.txt -+++ cpprestsdk-2.9.0/Release/tests/common/UnitTestpp/CMakeLists.txt -@@ -49,4 +49,4 @@ elseif(WIN32) - endif() - - add_library(unittestpp ${UT_SOURCES}) --target_link_libraries(unittestpp ${ANDROID_STL_FLAGS}) -\ No newline at end of file -+target_link_libraries(unittestpp ${ANDROID_STL_FLAGS} pthread) diff --git a/cpprest.changes b/cpprest.changes index 4972348..82766b8 100644 --- a/cpprest.changes +++ b/cpprest.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Mon Nov 13 09:32:03 UTC 2017 - astieger@suse.com + +- cpprest 2.10.0: + * build system fixes: + + build system updates + + cmake 3.0 required + * Fix static library builds of test_runner on non-Windows platforms + + compatibility fixes: + + Improve compatibility with glibc 2.26 + + Improve compatibility with clang on Linux + + Improve compatibility with icc 17.0 + + Improve compatibility with openssl 1.1.0 + + Fix building with LibreSSL + * Fix several race conditions and memory leaks in the ASIO http_client + * Fix process termination bug around certain exceptional cases in all http_clients + * Add all remaining official HTTP status codes to http::status_codes + * Add convenience wrappers json::value::has_T_field(T) for inspecting object values + * Fix a race condition in the ASIO client during header parsing + * Fix error when handling responses of type NoContent, NotModified, or from 100 to 199 + * Enable specifying the User Agent used in OAuth2 requests + * Add http_request::get_remote_address() to expose the client's IP address for http_listener + * Fix a bug in the ASIO http_client where the proxy is passed the same credentials as the target host + * Make uri_builder::to_string() and uri_builder::to_uri() const + * Add handling for the host wildchar + to the ASIO http_listener + * Handle malformed URL requests to the ASIO http_listener instead of crashing + * Fix a race condition in the websocketpp websocket_client + * Fix several races in the ASIO http_listener which result in memory leaks or use after free of the connection objects + * Add http_client_config::set_nativesessionhandle_options() which enables customization of the session handle on Windows Desktop + * Improve UTF8/16 conversions from 6s per 1MB to 3s per 1GB (2000x improvement) + * Enable limited IPv6 support to http_client and http_server, depending on the underlying platform + * Fix a bug in base64 encoding that previously read beyond the input array, causing segfaults/AVs + * Add compression support (deflate and gzip) for ASIO http_clients based on Zlib + * Fix a memory leak in the UWP http_client when processing headers + * Fix inappropriate handling of certain connections errors in the ASIO http_listener +- drop upstreamed or obsolete patches: + * cpprest-pthread.patch + * cpprestsdk-2.9.1-Fix-build-error-with-glibc-2.26-xlocale.h.patch + ------------------------------------------------------------------- Wed Aug 30 08:48:08 UTC 2017 - astieger@suse.com diff --git a/cpprest.spec b/cpprest.spec index 7d4b7ea..8e40667 100644 --- a/cpprest.spec +++ b/cpprest.spec @@ -17,9 +17,9 @@ %define major 2 -%define minor 9 +%define minor 10 Name: cpprest -Version: 2.9.1 +Version: 2.10.0 Release: 0 Summary: C++ REST library # main: MIT (license.txt) @@ -28,13 +28,11 @@ Summary: C++ REST library # sha1/sha1.hpp: BSD-3-Clause (ThirdPartyNotices.txt) # common/md5.hpp: Zlib (ThirdPartyNotices.txt) # utf8_validation.hpp: MIT (ThirdPartyNotices.txt) -License: MIT and BSD-3-Clause and Zlib +License: MIT AND BSD-3-Clause AND Zlib Group: Development/Libraries/C and C++ Url: https://github.com/Microsoft/cpprestsdk Source: https://github.com/Microsoft/cpprestsdk/archive/v%{version}.tar.gz#/cpprestsdk-%{version}.tar.gz -Patch1: cpprest-pthread.patch -Patch2: cpprestsdk-2.9.1-Fix-build-error-with-glibc-2.26-xlocale.h.patch -BuildRequires: cmake >= 2.6 +BuildRequires: cmake >= 3.0 BuildRequires: gcc-c++ BuildRequires: openssl-devel >= 1.0 %if 0%{?suse_version} > 1325 @@ -77,8 +75,6 @@ Development files. %prep %setup -q -n cpprestsdk-%{version} -%patch1 -p1 -%patch2 -p1 %build %cmake \ diff --git a/cpprestsdk-2.10.0.tar.gz b/cpprestsdk-2.10.0.tar.gz new file mode 100644 index 0000000..80f25a8 --- /dev/null +++ b/cpprestsdk-2.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de333da67f1cb3d1b30be118860531092467f18d24ca6b4d36f6623fecab0de0 +size 2058343 diff --git a/cpprestsdk-2.9.1-Fix-build-error-with-glibc-2.26-xlocale.h.patch b/cpprestsdk-2.9.1-Fix-build-error-with-glibc-2.26-xlocale.h.patch deleted file mode 100644 index c8db8c6..0000000 --- a/cpprestsdk-2.9.1-Fix-build-error-with-glibc-2.26-xlocale.h.patch +++ /dev/null @@ -1,34 +0,0 @@ -From d4f707abb4575aacf43ec02d30fa10afed464c7d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Wolfgang=20St=C3=B6ggl?= -Date: Thu, 13 Jul 2017 10:00:12 +0200 -Subject: [PATCH] Fix build error with glibc 2.26, xlocale.h - -- Do not include xlocale.h on systems, where __GLIBC__ is defined - xlocale.h has been removed from glibc 2.26 - The include of locale.h in asyncrt_utils.h is sufficient - Further details: - https://sourceware.org/git/?p=glibc.git;a=commit;h=f0be25b -- Fixes https://github.com/Microsoft/cpprestsdk/issues/485 ---- - Release/include/cpprest/asyncrt_utils.h | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/Release/include/cpprest/asyncrt_utils.h b/Release/include/cpprest/asyncrt_utils.h -index 169ec3a2..fac70a91 100644 ---- a/Release/include/cpprest/asyncrt_utils.h -+++ b/Release/include/cpprest/asyncrt_utils.h -@@ -29,7 +29,10 @@ - - #ifndef _WIN32 - #include --#if !defined(ANDROID) && !defined(__ANDROID__) // CodePlex 269 -+#if !defined(ANDROID) && !defined(__ANDROID__) && !defined(__GLIBC__) // CodePlex 269 -+/* Systems using glibc: xlocale.h has been removed from glibc 2.26 -+ The above include of locale.h is sufficient -+ Further details: https://sourceware.org/git/?p=glibc.git;a=commit;h=f0be25b6336db7492e47d2e8e72eb8af53b5506d */ - #include - #endif - #endif --- -2.14.1 - diff --git a/cpprestsdk-2.9.1.tar.gz b/cpprestsdk-2.9.1.tar.gz deleted file mode 100644 index 75c8246..0000000 --- a/cpprestsdk-2.9.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7097889965df48ec5799d6ed3b4f95f16ca82ee3512eb31db844d9df600bc899 -size 1601475