From 00f9b648e96b9fe2a61d843071ea03e63a0ad947650f16059a618c7094b34e2e Mon Sep 17 00:00:00 2001 From: Alexey Svistunov Date: Tue, 17 Jan 2023 10:25:12 +0000 Subject: [PATCH] - Update to version 0.11.4: * Release v0.11.4 * add support for requests with both MultipartFormDataItems and Content Providers (#1454) * Add EINTR and EAGAIN judge for accept (#1438) * Updated unit test * std::condition_variable::notify_one/all() should be called after unlocking mutex (#1448) * Support LOCAL_ADDR and LOCAL_PORT header in client Request (#1450) * Fix #1442 * Removed code for upsupported OpenSSL - Combined multibuild cpp-httplib and cpp-httplib-headers packages - Remove unneeded BuildRequires for cpp-httplib-headers OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=7 --- _multibuild | 3 ++ cpp-httplib-0.11.3.obscpio | 3 -- cpp-httplib-0.11.4.obscpio | 3 ++ cpp-httplib-headers.spec | 63 ++++++++++++++++++++++++++++++++++++++ cpp-httplib.changes | 15 +++++++++ cpp-httplib.spec | 4 +-- 6 files changed, 86 insertions(+), 5 deletions(-) create mode 100644 _multibuild delete mode 100644 cpp-httplib-0.11.3.obscpio create mode 100644 cpp-httplib-0.11.4.obscpio create mode 100644 cpp-httplib-headers.spec diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..7117aa1 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + cpp-httplib-headers + diff --git a/cpp-httplib-0.11.3.obscpio b/cpp-httplib-0.11.3.obscpio deleted file mode 100644 index 6dccf86..0000000 --- a/cpp-httplib-0.11.3.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d335fca5240f0f6d0d77551d15f5a0f0e0aaddd6359db7ce3b914a1fe8e515d7 -size 6657037 diff --git a/cpp-httplib-0.11.4.obscpio b/cpp-httplib-0.11.4.obscpio new file mode 100644 index 0000000..732d0a2 --- /dev/null +++ b/cpp-httplib-0.11.4.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de238cc24ec14b3d988e18fc4fbbc035747b1b7cfc33d415e2a3fb4c5f7660fa +size 6668301 diff --git a/cpp-httplib-headers.spec b/cpp-httplib-headers.spec new file mode 100644 index 0000000..d2dddcb --- /dev/null +++ b/cpp-httplib-headers.spec @@ -0,0 +1,63 @@ +# +# spec file for package cpp-httplib-headers +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: cpp-httplib-headers +Version: 0.11.4 +Release: 0 +Summary: A C++11 header-only HTTP/HTTPS library +License: MIT +URL: https://github.com/yhirose/cpp-httplib +BuildRequires: meson >= 0.47.0 + +%package devel +Summary: A C++11 header-only HTTP/HTTPS library +Conflicts: cpp-httplib-devel +Provides: cpp-httplib-devel-static = %{version} +BuildArch: noarch + +%description +This is a multi-threaded HTTP library with blocking I/O. There is no +support for non-blocking mode. + +%description devel +This is a multi-threaded HTTP library with blocking I/O. There is no +support for non-blocking mode. + +It features built-in mappings, static file server, pre-routing and +post-routing handlers, and support for binding sockets to multiple +interfaces and any available port. + +%prep +%setup -q -n %{_sourcedir}/cpp-httplib-%{version} -T -D +# For avoid c++ compiler check +sed -i "7s/.*/version: '%{version}',/" meson.build + +%build +%meson -Dcpp-httplib_openssl=disabled -Dcpp-httplib_brotli=disabled \ + -Dcpp-httplib_zlib=disabled + +%install +%meson_install + +%files devel +%{_includedir}/httplib.h +%{_datadir}/pkgconfig/cpp-httplib.pc +%doc README.md +%license LICENSE + +%changelog diff --git a/cpp-httplib.changes b/cpp-httplib.changes index a797ee1..97de553 100644 --- a/cpp-httplib.changes +++ b/cpp-httplib.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Jan 17 10:14:59 UTC 2023 - Alexey Svistunov + +- Update to version 0.11.4: + * Release v0.11.4 + * add support for requests with both MultipartFormDataItems and Content Providers (#1454) + * Add EINTR and EAGAIN judge for accept (#1438) + * Updated unit test + * std::condition_variable::notify_one/all() should be called after unlocking mutex (#1448) + * Support LOCAL_ADDR and LOCAL_PORT header in client Request (#1450) + * Fix #1442 + * Removed code for upsupported OpenSSL +- Combined multibuild cpp-httplib and cpp-httplib-headers packages +- Remove unneeded BuildRequires for cpp-httplib-headers + ------------------------------------------------------------------- Mon Jan 16 17:53:43 UTC 2023 - Alexey Svistunov diff --git a/cpp-httplib.spec b/cpp-httplib.spec index d12d799..6f75a03 100644 --- a/cpp-httplib.spec +++ b/cpp-httplib.spec @@ -18,7 +18,7 @@ %define sover 0.11 %define libver 0_11 Name: cpp-httplib -Version: 0.11.3 +Version: 0.11.4 Release: 0 Summary: A C++11 HTTP/HTTPS library License: MIT @@ -57,7 +57,7 @@ interfaces and any available port. %setup -q -n %_sourcedir/%name-%version -T -D %build -%meson -Dcpp-httplib_compile=true +%meson -Dcpp-httplib_compile=true --buildtype=release %meson_build %install