2023-11-12 13:47:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package libdatachannel
|
|
|
|
#
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-11-12 14:05:38 +00:00
|
|
|
#%%define soversion() %%(echo "%%{1}" | awk -F. '{print $1"."$2}')
|
2025-07-04 11:05:28 +00:00
|
|
|
%define son 23
|
|
|
|
%define soversion 0_%{son}
|
2023-11-12 14:05:38 +00:00
|
|
|
%define libname %{name}%{soversion}
|
2023-11-12 13:47:56 +00:00
|
|
|
Name: libdatachannel
|
2025-07-04 11:05:28 +00:00
|
|
|
Version: 0.23.1
|
2023-11-12 13:47:56 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: WebRTC network library featuring Data Channels, Media Transport, and WebSockets
|
|
|
|
License: MPL-2.0
|
|
|
|
URL: https://libdatachannel.org/
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Source0: https://github.com/paullouisageneau/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: cmake
|
2025-07-04 11:05:28 +00:00
|
|
|
BuildRequires: cmake(plog)
|
2023-11-12 13:47:56 +00:00
|
|
|
BuildRequires: gawk
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: pkgconfig
|
2023-11-12 13:57:46 +00:00
|
|
|
# Not yet needed and not packaged in openSUSE yet
|
2023-11-12 13:47:56 +00:00
|
|
|
#BuildRequires: cmake(LibJuice)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2025-07-04 11:05:28 +00:00
|
|
|
BuildRequires: pkgconfig(libsrtp2)
|
2023-11-12 13:47:56 +00:00
|
|
|
BuildRequires: pkgconfig(nice)
|
2025-07-04 11:05:28 +00:00
|
|
|
BuildRequires: pkgconfig(nlohmann_json) >= 3
|
|
|
|
%if 0%{?suse_version} < 1600
|
|
|
|
BuildRequires: usrsctp-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig(usrsctp)
|
|
|
|
%endif
|
2023-11-12 13:47:56 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libdatachannel is a standalone implementation of WebRTC Data Channels,
|
|
|
|
WebRTC Media Transport, and WebSockets in C++17 with C bindings for POSIX platforms
|
|
|
|
(including GNU/Linux, Android, FreeBSD, Apple macOS and iOS) and Microsoft Windows.
|
|
|
|
|
2023-11-12 14:05:38 +00:00
|
|
|
%package -n %{libname}
|
2024-03-13 00:23:40 +00:00
|
|
|
Summary: C++ library for %{name}
|
2023-11-12 14:05:38 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
libdatachannel is a standalone implementation of WebRTC Data Channels,
|
|
|
|
WebRTC Media Transport, and WebSockets in C++17 with C bindings for POSIX platforms
|
|
|
|
(including GNU/Linux, Android, FreeBSD, Apple macOS and iOS) and Microsoft Windows.
|
|
|
|
|
2023-11-12 13:47:56 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2024-01-25 11:49:04 +00:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2023-11-12 13:47:56 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -DPREFER_SYSTEM_LIB=ON -DUSE_GNUTLS=ON -DUSE_NICE=ON
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2023-11-12 14:05:38 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2023-11-12 13:47:56 +00:00
|
|
|
|
2023-11-12 14:05:38 +00:00
|
|
|
%files -n %{libname}
|
2023-11-12 13:47:56 +00:00
|
|
|
%license LICENSE
|
2025-07-04 11:05:28 +00:00
|
|
|
%{_libdir}/%{name}.so.*.%{son}*
|
2023-11-12 13:47:56 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc README.md DOC.md
|
|
|
|
%{_includedir}/rtc/
|
|
|
|
%{_libdir}/cmake/LibDataChannel/
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
|
|
|
%changelog
|