summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-02 13:37:45 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-02 13:37:45 +0000
commit3bf6e860e03c874c719a7232b016c36f82dfb712 (patch)
treec53a3539f455c5ec125063f4dbc84a1f7436b063
parentc89406c4a7e44e91d9852502b1f37e182e09924f (diff)
automatic import of websocketppopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--websocketpp.spec68
3 files changed, 70 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9431ff7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/websocketpp-0.8.2.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..a28f951
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+261e977d69fdcb8fdaacb46b7c9e2258 websocketpp-0.8.2.tar.gz
diff --git a/websocketpp.spec b/websocketpp.spec
new file mode 100644
index 0000000..a6dd086
--- /dev/null
+++ b/websocketpp.spec
@@ -0,0 +1,68 @@
+%global debug_package %{nil}
+
+Name: websocketpp
+Version: 0.8.2
+Release: 1%{?dist}
+Summary: Header-only C++ library implementing the WebSocket protocol
+
+License: BSD-3-Clause
+URL: https://github.com/zaphoyd/websocketpp
+Source0: %{name}-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: make
+
+%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, with pluggable transports and full protocol support (text and
+binary messages, TLS, blocking and non-blocking modes).
+
+Consumers supply the transport: Boost.Asio via boost-devel, and for TLS the
+OpenSSL headers. Nothing is linked by this package itself.
+
+%package devel
+Summary: Development files for websocketpp
+Requires: %{name} = %{version}-%{release}
+Requires: cmake-filesystem
+
+%description devel
+Headers and the CMake package configuration for WebSocket++.
+
+To compile code that includes <websocketpp/...> you also need a transport, i.e.
+Boost.Asio (boost-devel) and, when TLS is used, openssl-devel.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+# Nothing is compiled: WebSocket++ is header-only. The CMake project only
+# installs headers plus its package config, so examples/tests stay off.
+mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform}
+%cmake3 \
+ -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
+ -DINSTALL_CMAKE_DIR=%{_datadir}/cmake/websocketpp \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_TESTS=OFF \
+ ..
+%make_build
+
+%install
+%make_install -C .obj-%{_target_platform}
+
+%files
+%license COPYING
+%doc readme.md changelog.md
+
+%files devel
+%{_includedir}/websocketpp
+%{_datadir}/cmake/websocketpp
+
+%changelog
+* Fri Oct 02 2026 Rourou2285 <snowmantin@foxmail.com> - 0.8.2-1
+- Initial openEuler package: WebSocket++ 0.8.2 (header-only), needed by
+ ros-humble-rmf-websocket, ros-humble-rmf-visualization and
+ ros-humble-foxglove-bridge, none of which can build without websocketpp-devel.