8
0
forked from pool/cpp-httplib
Files
cpp-httplib/cpp-httplib-headers.spec
Alexey Svistunov 00f9b648e9 - 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
2023-01-17 10:25:12 +00:00

64 lines
1.9 KiB
RPMSpec

#
# 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