From 0a27ffa08f9d6ef5a932db568448bf39b22fea8a8efb699d39cba3b131dca260 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 7 Feb 2021 20:40:26 +0000 Subject: [PATCH] Accepting request 870110 from home:1Antoine1:branches:devel:libraries:c_c++ - Update to 2.10.18: * Add ability to parse and emit the NT Epoch 1601-01-01T00:00:00Z. - Remove obsolete conditionals. - Remove duplicate call to license macro. - Simplify check section and make it work on Leap 15.2/15.3. OBS-URL: https://build.opensuse.org/request/show/870110 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=53 --- cpprest.changes | 9 +++++++++ cpprest.spec | 23 ++++++++--------------- cpprestsdk-2.10.17.tar.gz | 3 --- cpprestsdk-2.10.18.tar.gz | 3 +++ 4 files changed, 20 insertions(+), 18 deletions(-) delete mode 100644 cpprestsdk-2.10.17.tar.gz create mode 100644 cpprestsdk-2.10.18.tar.gz diff --git a/cpprest.changes b/cpprest.changes index 8a9eea1..5d53f51 100644 --- a/cpprest.changes +++ b/cpprest.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun Feb 7 13:57:13 UTC 2021 - Antoine Belvire + +- Update to 2.10.18: + * Add ability to parse and emit the NT Epoch 1601-01-01T00:00:00Z. +- Remove obsolete conditionals. +- Remove duplicate call to license macro. +- Simplify check section and make it work on Leap 15.2/15.3. + ------------------------------------------------------------------- Sun Jan 17 20:27:55 UTC 2021 - Antoine Belvire diff --git a/cpprest.spec b/cpprest.spec index c33e03e..0cda3b2 100644 --- a/cpprest.spec +++ b/cpprest.spec @@ -19,7 +19,7 @@ %define major 2 %define minor 10 Name: cpprest -Version: 2.10.17 +Version: 2.10.18 Release: 0 Summary: C++ REST library # main: MIT (license.txt) @@ -39,20 +39,16 @@ Patch2: base64.patch Patch3: filestream.patch BuildRequires: cmake >= 3.0 BuildRequires: gcc-c++ -BuildRequires: pkgconfig -BuildRequires: pkgconfig(libssl) >= 1.0 -BuildRequires: pkgconfig(websocketpp) >= 0.8 -BuildRequires: pkgconfig(zlib) -%if 0%{?suse_version} > 1325 BuildRequires: libboost_atomic-devel BuildRequires: libboost_filesystem-devel BuildRequires: libboost_random-devel BuildRequires: libboost_regex-devel BuildRequires: libboost_system-devel BuildRequires: libboost_thread-devel -%else -BuildRequires: boost-devel >= 1.55 -%endif +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libssl) >= 1.0 +BuildRequires: pkgconfig(websocketpp) >= 0.8 +BuildRequires: pkgconfig(zlib) %description The C++ REST SDK is a Microsoft project for cloud-based client-server @@ -112,20 +108,17 @@ Cflags: -I%{_includedir}/cpprest -I%{_includedir}/pplx EOF %check +# Tweak library path so that libccprest + libunittestpp are found +export LD_LIBRARY_PATH="$PWD/build/Release/Binaries" # websocketsclient_test -> authentication_tests - online tests # httpclient_test -> follows_retrieval_redirect - online test -# do not use macro so we can exclude tests -pushd build -export LD_LIBRARY_PATH=%{buildroot}%{_libdir} -ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} -E '(httpclient_test|websocketsclient_test)' -popd +%ctest --exclude-regex '(httpclient_test|websocketsclient_test)' %post -n libcpprest%{major}_%{minor} -p /sbin/ldconfig %postun -n libcpprest%{major}_%{minor} -p /sbin/ldconfig %files -n libcpprest%{major}_%{minor} %license license.txt ThirdPartyNotices.txt -%license license.txt %doc CONTRIBUTORS.txt ThirdPartyNotices.txt %{_libdir}/libcpprest.so.%{major}.%{minor} diff --git a/cpprestsdk-2.10.17.tar.gz b/cpprestsdk-2.10.17.tar.gz deleted file mode 100644 index e4b779c..0000000 --- a/cpprestsdk-2.10.17.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2d9dae3ae10cdf7e41caf3dd0fa52f0b9c5012a24ba123901f686cfc484c043 -size 1747363 diff --git a/cpprestsdk-2.10.18.tar.gz b/cpprestsdk-2.10.18.tar.gz new file mode 100644 index 0000000..7a7657b --- /dev/null +++ b/cpprestsdk-2.10.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bd74a637ff182144b6a4271227ea8b6b3ea92389f88b25b215e6f94fd4d41cb +size 1747792