forked from pool/cpp-httplib
Accepting request 1066113 from devel:libraries:c_c++
- Update to version 0.12.0 - Drop headers-only flavor (gh#yhirose/cpp-httplib#1491) - Add examples to devel subpackage - Enable tests OBS-URL: https://build.opensuse.org/request/show/1066113 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<multibuild>
|
||||
<flavor>cpp-httplib-headers</flavor>
|
||||
</multibuild>
|
||||
15
_service
15
_service
@@ -1,16 +1,3 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="url">https://github.com/yhirose/cpp-httplib.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(\d.*)</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual"/>
|
||||
<service name="tar" mode="manual"/>
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="download_files" mode="manual"/>
|
||||
</services>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9d27d270f29dd4574a237ab573a5e8ee1ade3c1ad496586bff1538ec9c39c349
|
||||
size 711249
|
||||
3
cpp-httplib-0.12.0.tar.gz
Normal file
3
cpp-httplib-0.12.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:423900c9a124b88c406cd34aba08c9e60742e477a02bd29051cf0ecbf9ef0c65
|
||||
size 635941
|
||||
@@ -1,64 +0,0 @@
|
||||
#
|
||||
# spec file for package cpp-httplib-headers
|
||||
#
|
||||
# Copyright (c) 2023 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
|
||||
Source0: cpp-httplib-%{version}.tar.gz
|
||||
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 cpp-httplib-%{version}
|
||||
# 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
|
||||
@@ -1,3 +1,35 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 16 07:01:16 UTC 2023 - Alexey Svistunov <svalx@svalx.net>
|
||||
|
||||
- Move examples to devel subpackage
|
||||
- Drop headers-only flavor and remove aliases for pkg-config files
|
||||
(gh#yhirose/cpp-httplib#1491)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 09 12:34:29 UTC 2023 - Alexey Svistunov <svalx@svalx.net>
|
||||
|
||||
- Update to version 0.12.0:
|
||||
* Removed is_writable() from DataSink (Resolve #1478, too) (#1483)
|
||||
* Fix #1479
|
||||
* Removed incorrect comment
|
||||
* Support CTest (#1468)
|
||||
* Issue 52666: cpp-httplib:server_fuzzer: Timeout in server_fuzzer
|
||||
* add to_human_string (#1467)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 8 14:55:18 UTC 2023 - Alexey Svistunov <svalx@svalx.net>
|
||||
|
||||
- Switch to meson tests
|
||||
- Add examples to headers package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 6 14:55:29 UTC 2023 - Alexey Svistunov <svalx@svalx.net>
|
||||
|
||||
- For an explicit choice when buildtime dependencies resolving
|
||||
added an unique pkgconfig files aliases for both shipped library
|
||||
flavors: cpp-httplib-headers.pc and cpp-httplib-shared.pc
|
||||
- Enable tests performing for compiled flavor
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 24 20:14:49 UTC 2023 - Alexey Svistunov <svalx@svalx.net>
|
||||
|
||||
|
||||
@@ -16,17 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%define sover 0.11
|
||||
%define libver 0_11
|
||||
%define sover 0.12
|
||||
%define libver 0_12
|
||||
Name: cpp-httplib
|
||||
Version: 0.11.4
|
||||
Version: 0.12.0
|
||||
Release: 0
|
||||
Summary: A C++11 HTTP/HTTPS library
|
||||
License: MIT
|
||||
URL: https://github.com/yhirose/cpp-httplib
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source0: https://codeload.github.com/yhirose/cpp-httplib/tar.gz/refs/tags/v%{version}#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: meson >= 0.47.0
|
||||
BuildRequires: pkgconfig(gtest)
|
||||
BuildRequires: pkgconfig(libbrotlidec)
|
||||
BuildRequires: pkgconfig(libbrotlienc)
|
||||
BuildRequires: pkgconfig(openssl) >= 1.1.1
|
||||
@@ -57,14 +58,22 @@ interfaces and any available port.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
chmod -x example/uploader.sh
|
||||
|
||||
%build
|
||||
%meson -Dcpp-httplib_compile=true --buildtype=release
|
||||
%meson -Dcpp-httplib_compile=true -Dcpp-httplib_test=true \
|
||||
--buildtype=release
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%check
|
||||
# OBS and chroot build environments does not provide internet
|
||||
# connectivity, skip online tests to avoid failures
|
||||
export GTEST_FILTER='-*.*_Online'
|
||||
%meson_test
|
||||
|
||||
%post -n lib%{name}%{libver} -p /sbin/ldconfig
|
||||
%postun -n lib%{name}%{libver} -p /sbin/ldconfig
|
||||
|
||||
@@ -77,6 +86,6 @@ interfaces and any available port.
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_includedir}/httplib.h
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%doc README.md
|
||||
%doc README.md example
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user