blob: a6dd0865833877440d79c113b0dc6d4339d54d8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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.
|