summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-21 12:07:52 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-21 12:07:52 +0000
commit9ff1facf6b4d2e0ce7e5e8d0673d037abda1dbd0 (patch)
treee66c616eda105c97f694eb73703b4ebb4181f77e
parent0a687fa50635491504bc85b30aa4a311faefbd53 (diff)
automatic import of libwebsocketpp-dev
-rw-r--r--.gitignore1
-rw-r--r--libwebsocketpp-dev.spec70
-rw-r--r--sources1
3 files changed, 72 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..49c3c85 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libwebsocketpp-dev-0.8.2.tar.gz
diff --git a/libwebsocketpp-dev.spec b/libwebsocketpp-dev.spec
new file mode 100644
index 0000000..5caedd8
--- /dev/null
+++ b/libwebsocketpp-dev.spec
@@ -0,0 +1,70 @@
+# topdir: libwebsocketpp-dev-0.8.2
+# The shipped tarball is synthesized from ./sources/libwebsocketpp-dev/ using
+# `tar --transform` to rename the top directory to libwebsocketpp-dev-0.8.2,
+# so the setup step must be pinned to that directory name (-n).
+# The upstream GitHub tag archive for 0.8.2 unpacks to `websocketpp-0.8.2`,
+# hence the #/ fragment on Source0 which pins the local tarball name.
+#
+# Header-only library: no shared object is produced and no main (runtime) package
+# is installed, therefore the debuginfo machinery must be disabled.
+
+%global debug_package %{nil}
+
+Name: libwebsocketpp-dev
+Version: 0.8.2
+Release: 1%{?dist}
+Summary: Header-only C++ WebSocket++ library
+
+License: BSD-3-Clause AND Zlib AND MIT
+URL: https://github.com/zaphoyd/websocketpp
+Source0: https://github.com/zaphoyd/websocketpp/archive/refs/tags/%{version}.tar.gz#/libwebsocketpp-dev-%{version}.tar.gz
+
+Group: Development/Libraries
+Packager: openEuler Builder <builder@openeuler.org>
+BuildArch: noarch
+
+BuildRequires: cmake
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: boost-devel >= 1.39.0
+BuildRequires: openssl-devel
+BuildRequires: zlib-devel
+
+Provides: websocketpp-devel = %{version}-%{release}
+Provides: cmake(websocketpp) = %{version}
+
+%description
+WebSocket++ is a header only C++ library that implements RFC6455, the WebSocket
+Protocol. It allows integrating WebSocket client and server functionality into
+C++ programs. It uses interchangeable network transport modules, including one
+based on raw char buffers, one based on C++ iostreams, and one based on Asio
+(either Boost.Asio or standalone Asio). TLS support and message compression are
+provided via pluggable extensions built on OpenSSL and zlib.
+
+This package contains the header files and the CMake integration files
+(websocketpp-config.cmake, exposing the imported target
+websocketpp::websocketpp) needed to build applications against WebSocket++.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+# Boost / OpenSSL / zlib are only probed by upstream when tests or examples are
+# enabled; both are disabled so the shipped artifacts have no such linkage.
+%cmake \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_TESTS=OFF
+%cmake_build
+
+%install
+%cmake_install
+
+%files
+%license COPYING
+%doc readme.md changelog.md roadmap.md
+%{_includedir}/websocketpp/
+%{_prefix}/lib/cmake/websocketpp/
+
+%changelog
+* Mon Sep 21 2026 openEuler Builder <builder@openeuler.org> - 0.8.2-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..b909ba8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7d2515d785ecb4f4a4e4eb42531eb11f libwebsocketpp-dev-0.8.2.tar.gz