%global sover 1 %global proj_name socket.io %global lib_name client-cpp Name: sioclient-cpp Version: 3.1.0 Release: 3%{?dist} Summary: Library that enables low-latency, bidirectional and event-based communication between a client and a server. License: MIT URL: https://socket.io Source0: https://github.com/socketio/%{proj_name}-%{lib_name}/archive/%{version}/%{proj_name}-%{lib_name}-%{version}.tar.gz Patch0: sioclient-cpp.patch BuildRequires: cmake gcc-c++ BuildRequires: asio-devel BuildRequires: catch2-devel BuildRequires: openssl-devel BuildRequires: rapidjson-devel BuildRequires: websocketpp-devel %description %{summary} %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for %{name}. %prep %autosetup -p1 -n %{proj_name}-%{lib_name}-%{version} chmod -x ./README.md ./LICENSE ./src/sio_message.h rm test/sio_test %build %cmake -DBUILD_UNIT_TESTS=ON -DUSE_SUBMODULES=OFF -DBUILD_SHARED_LIBS=ON %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc API.md CHANGELOG.md README.md %{_libdir}/libsioclient.so.%{sover}* %{_libdir}/libsioclient_tls.so.%{sover}* %files devel %{_includedir}/sio* %{_libdir}/libsioclient.so %{_libdir}/libsioclient_tls.so %changelog * Sat Sep 07 2024 Richard Shaw - 3.1.0-3 - Additional package review changes. * Sun Apr 21 2024 Richard Shaw - 3.1.0-2 - Update per review comments. * Sun Aug 06 2023 Richard Shaw - 3.1.0-1 - Initial packaging.