From 3bf6e860e03c874c719a7232b016c36f82dfb712 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 2 Oct 2026 13:37:45 +0000 Subject: automatic import of websocketpp --- websocketpp.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 websocketpp.spec (limited to 'websocketpp.spec') 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 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 - 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. -- cgit v1.2.3