Name: libdatachannel Version: 0.19.1 Release: 1%{?dist} Summary: WebRTC network library featuring Data Channels, Media Transport, and WebSockets License: MPL-2.0 URL: https://libdatachannel.org/ Source0: https://github.com/paullouisageneau/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz # From: https://github.com/paullouisageneau/libdatachannel/pull/975 Patch0: libdatachannel-gnuinstalldirs.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: make # Not yet needed and not packaged in Fedora yet #BuildRequires: cmake(LibJuice) BuildRequires: cmake(nlohmann_json) BuildRequires: cmake(plog) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(nice) BuildRequires: libsrtp-devel BuildRequires: usrsctp-devel %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. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %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 %files %license LICENSE %{_libdir}/%{name}.so.%{version} %files devel %doc README.md DOC.md examples %{_includedir}/rtc/ %{_libdir}/cmake/LibDataChannel/ %{_libdir}/%{name}.so %changelog * Sun Sep 10 2023 Neal Gompa - 0.19.1-1 - Initial package