%define soversion() %(echo "%1" | awk -F. '{print $1"."$2}') Name: libdatachannel Version: 0.21.2 Release: 2%{?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 BuildRequires: cmake BuildRequires: gawk 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 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPREFER_SYSTEM_LIB=ON -DUSE_GNUTLS=ON -DUSE_NICE=ON %cmake_build %install %cmake_install %files %license LICENSE %{_libdir}/%{name}.so.%{soversion %{version}}{,.*} %files devel %doc README.md DOC.md %{_includedir}/rtc/ %{_libdir}/cmake/LibDataChannel/ %{_libdir}/%{name}.so %changelog * Sat Oct 05 2024 Neal Gompa - 0.21.2-2 - Set cmake build type * Sat Oct 05 2024 Neal Gompa - 0.21.2-1 - Update to 0.21.2 * Thu Jul 18 2024 Fedora Release Engineering - 0.20.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Apr 02 2024 Neal Gompa - 0.20.2-1 - Update to 0.20.2 * Thu Jan 25 2024 Fedora Release Engineering - 0.19.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.19.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Nov 13 2023 Neal Gompa - 0.19.3-1 - Update to 0.19.3 * Fri Sep 15 2023 Neal Gompa - 0.19.1-2 - Add patch to fix library soversion * Sun Sep 10 2023 Neal Gompa - 0.19.1-1 - Initial package