diff --git a/_multibuild b/_multibuild deleted file mode 100644 index 7117aa1..0000000 --- a/_multibuild +++ /dev/null @@ -1,3 +0,0 @@ - - cpp-httplib-headers - diff --git a/_service b/_service index 0f532fd..5f01448 100644 --- a/_service +++ b/_service @@ -1,16 +1,3 @@ - - https://github.com/yhirose/cpp-httplib.git - git - @PARENT_TAG@ - v(\d.*) - \1 - enable - - - - - *.tar - gz - + diff --git a/cpp-httplib-0.11.4.tar.gz b/cpp-httplib-0.11.4.tar.gz deleted file mode 100644 index 52bccbb..0000000 --- a/cpp-httplib-0.11.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d27d270f29dd4574a237ab573a5e8ee1ade3c1ad496586bff1538ec9c39c349 -size 711249 diff --git a/cpp-httplib-0.12.0.tar.gz b/cpp-httplib-0.12.0.tar.gz new file mode 100644 index 0000000..f8bd655 --- /dev/null +++ b/cpp-httplib-0.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:423900c9a124b88c406cd34aba08c9e60742e477a02bd29051cf0ecbf9ef0c65 +size 635941 diff --git a/cpp-httplib-headers.spec b/cpp-httplib-headers.spec deleted file mode 100644 index 8d01c28..0000000 --- a/cpp-httplib-headers.spec +++ /dev/null @@ -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 diff --git a/cpp-httplib.changes b/cpp-httplib.changes index 54472da..856b553 100644 --- a/cpp-httplib.changes +++ b/cpp-httplib.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Thu Feb 16 07:01:16 UTC 2023 - Alexey Svistunov + +- 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 + +- 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 + +- Switch to meson tests +- Add examples to headers package + +------------------------------------------------------------------- +Mon Feb 6 14:55:29 UTC 2023 - Alexey Svistunov + +- 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 diff --git a/cpp-httplib.spec b/cpp-httplib.spec index 3f76c77..a08209c 100644 --- a/cpp-httplib.spec +++ b/cpp-httplib.spec @@ -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