From afa93b6f6690c86fe012683eacb42ad27e2480376cb87ba17714db4b27ec3487 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 14 Feb 2025 10:50:17 +0000 Subject: [PATCH] C++11 implementation of Socket.IO client dependency of freedv (but probably in a git version) OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/socket.io-client-cpp?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + socket.io-client-cpp-3.1.0.tar.gz | 3 ++ socket.io-client-cpp.changes | 10 ++++ socket.io-client-cpp.spec | 81 +++++++++++++++++++++++++++++++ 5 files changed, 118 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 socket.io-client-cpp-3.1.0.tar.gz create mode 100644 socket.io-client-cpp.changes create mode 100644 socket.io-client-cpp.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/socket.io-client-cpp-3.1.0.tar.gz b/socket.io-client-cpp-3.1.0.tar.gz new file mode 100644 index 0000000..029c26e --- /dev/null +++ b/socket.io-client-cpp-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f54dd36b8e5618d028c7c42f0c1a83a0d3a58f9239cf4b770f6b02b925909597 +size 376292 diff --git a/socket.io-client-cpp.changes b/socket.io-client-cpp.changes new file mode 100644 index 0000000..2a52508 --- /dev/null +++ b/socket.io-client-cpp.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 11 15:11:27 UTC 2025 - Andreas Stieger + +- fixup for Tumbleweed + +------------------------------------------------------------------- +Sun Jul 16 09:22:05 UTC 2023 - Wojciech Kazubski + +- version (release) 3.1.0 +- initial package diff --git a/socket.io-client-cpp.spec b/socket.io-client-cpp.spec new file mode 100644 index 0000000..4320001 --- /dev/null +++ b/socket.io-client-cpp.spec @@ -0,0 +1,81 @@ +# +# spec file for package socket.io-client-cpp +# +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 Andreas Stieger +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define sover 1 +%define libname libsioclient +Name: socket.io-client-cpp +Version: 3.1.0 +Release: 0 +Summary: Socket.IO C++ Client +License: MIT +URL: https://github.com/socketio/socket.io-client-cpp +Source: https://github.com/socketio/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: c++_compiler +BuildRequires: cmake +BuildRequires: pkgconfig +BuildRequires: cmake(RapidJSON) +BuildRequires: cmake(websocketpp) +BuildRequires: pkgconfig(asio) + +%description +C++11 implementation of Socket.IO client + +%package -n %{libname}%{sover} +Summary: Socket.IO C++ Client + +%description -n %{libname}%{sover} +C++11 implementation of Socket.IO client + +%package devel +Summary: Development files for libm2k +Requires: %{libname}%{sover} = %{version} + +%description devel +Development files for Socket.IO client + +%prep +%autosetup -p1 +chmod -x README.md LICENSE + +%build +%cmake \ + -DCMAKE_BUILD_TYPE="Release" \ + %{nil} +%cmake_build + +%install +%cmake_install + +%check +%ctest + +%ldconfig_scriptlets -n %{libname}%{sover} + +%files -n %{libname}%{sover} +%license LICENSE +%doc API.md CHANGELOG.md README.md +%{_libdir}/%{libname}.so.* +%{_libdir}/%{libname}_tls.so.* + +%files devel +%license LICENSE +%{_includedir}/sio_*.h +%{_libdir}/%{libname}*.so + +%changelog