- Upgrade to 3.0.0 (#2180064)

- Added (hopefully future upstream) patch for PipeWire support
This commit is contained in:
Robert Scheck 2023-03-20 17:20:22 +01:00
parent 00c34811bb
commit 5e6179159d
3 changed files with 1266 additions and 6 deletions

1230
baresip-3.0.0-pipewire.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
Summary: Modular SIP user-agent with audio and video support
Name: baresip
Version: 2.12.0
Version: 3.0.0
Release: 1%{?dist}
License: BSD-3-Clause
URL: https://github.com/baresip/baresip
@ -11,14 +11,14 @@ Source11: https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/raw/1e1d6921
Source12: https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/raw/master/COPYING#/COPYING.adwaita-icon-theme
Source13: https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/raw/master/COPYING_CCBYSA3#/COPYING_CCBYSA3.adwaita-icon-theme
Source14: https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/raw/master/COPYING_LGPL#/COPYING_LGPL.adwaita-icon-theme
Patch0: https://patch-diff.githubusercontent.com/raw/baresip/baresip/pull/2439.patch#/baresip-3.0.0-pipewire.patch
BuildRequires: cmake
%if 0%{?rhel} && 0%{?rhel} < 8
BuildRequires: cmake3
%endif
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libre-devel >= 2.12.0
BuildRequires: librem-devel >= 2.12.0
BuildRequires: libre-devel >= 3.0.0
%if 0%{?fedora} || 0%{?rhel} >= 8
BuildRequires: openssl-devel >= 1.1.0
%else
@ -26,11 +26,15 @@ BuildRequires: openssl11-devel
# Atomic support in libre >= 2.1.0
BuildRequires: devtoolset-8-toolchain
%endif
%if 0%{?fedora} || 0%{?rhel} > 7
%if 0%{?fedora} || 0%{?rhel} > 8
Recommends: %{name}-pipewire%{?_isa} = %{version}-%{release}
%else
%if 0%{?rhel} == 8
Recommends: %{name}-pulse%{?_isa} = %{version}-%{release}
%else
Requires: %{name}-pulse%{?_isa} = %{version}-%{release}
%endif
%endif
Obsoletes: %{name}-cairo < 1.1.0-1
Obsoletes: %{name}-rst < 2.0.0-1
Obsoletes: %{name}-speex_pp < 2.0.0-1
@ -233,6 +237,18 @@ Baresip is a modular SIP user-agent with audio and video support.
This module provides the Opus speech and audio codec module.
%if 0%{?fedora} || 0%{?rhel} > 8
%package pipewire
Summary: PipeWire audio driver for baresip
BuildRequires: pkgconfig(libpipewire-0.3)
Requires: %{name}%{?_isa} = %{version}-%{release}
%description pipewire
Baresip is a modular SIP user-agent with audio and video support.
This module provides the PipeWire audio driver.
%endif
%package plc
Summary: Packet Loss Concealment module for baresip
BuildRequires: spandsp-devel
@ -351,6 +367,7 @@ This module provides the X11 video output driver.
%prep
%setup -q
%patch0 -p1 -b .pipewire
%build
%if 0%{?rhel} && 0%{?rhel} < 8
@ -363,7 +380,11 @@ This module provides the X11 video output driver.
%cmake \
-DDEFAULT_CAFILE:PATH="%{_sysconfdir}/pki/tls/certs/ca-bundle.crt" \
%if 0%{?fedora} || 0%{?rhel} > 8
-DDEFAULT_AUDIO_DEVICE:STRING="pipewire" \
%else
-DDEFAULT_AUDIO_DEVICE:STRING="pulse" \
%endif
%if 0%{?rhel} && 0%{?rhel} < 8
-DOPENSSL_ROOT_DIR:PATH="%{_includedir}/openssl11;%{_libdir}/openssl11"
%endif
@ -425,7 +446,7 @@ gtk-update-icon-cache --force %{_datadir}/icons/Adwaita &>/dev/null || :
%license LICENSE
%doc CHANGELOG.md docs/THANKS docs/examples
%{_bindir}/%{name}
%{_libdir}/lib%{name}.so.4*
%{_libdir}/lib%{name}.so.5*
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/modules/
%{_libdir}/%{name}/modules/account.so
@ -526,6 +547,11 @@ gtk-update-icon-cache --force %{_datadir}/icons/Adwaita &>/dev/null || :
%{_libdir}/%{name}/modules/opus.so
%{_libdir}/%{name}/modules/opus_multistream.so
%if 0%{?fedora} || 0%{?rhel} > 8
%files pipewire
%{_libdir}/%{name}/modules/pipewire.so
%endif
%files plc
%{_libdir}/%{name}/modules/plc.so
@ -560,6 +586,10 @@ gtk-update-icon-cache --force %{_datadir}/icons/Adwaita &>/dev/null || :
%{_libdir}/%{name}/modules/x11.so
%changelog
* Mon Mar 20 2023 Robert Scheck <robert@fedoraproject.org> 3.0.0-1
- Upgrade to 3.0.0 (#2180064)
- Added (hopefully future upstream) patch for PipeWire support
* Sat Feb 18 2023 Robert Scheck <robert@fedoraproject.org> 2.12.0-1
- Upgrade to 2.12.0 (#2170292)

View File

@ -1,4 +1,4 @@
SHA512 (baresip-2.12.0.tar.gz) = b0c60be4b30c6e4497cf57a6a8e9598f840b85e6ed2088fe204f9bb2ccbd923aa32c3b9f6b62781d002c133cf092e6a8aa0ce9fad37bb396edb7e70562874eaa
SHA512 (baresip-3.0.0.tar.gz) = 7eaba0d36d14f6f4bb5077a816f3650192aa7d9ac372265a667bced24b10d13f4669eb426fb1121c3d3366ad01e3134ab25e494cfa987fcb7bb386679b265819
SHA512 (call-incoming-symbolic.svg) = 49b6422efff9986dd4a18b34df4ab185b01b46c44ab5b8c1d45ab1ca25694cb42e73428b0a69e5fe2eb61c4e7a7aba9c0df82b5e0290f45950f3942be63bf987
SHA512 (call-outgoing-symbolic.svg) = 142cf668d977e3a709d3c13e01d86fdd09e501affd1756df3000de84581c55b3b5082758b32a73ae0e47f45233cc7e55609f3e54effbba01666ca97d5a55fdaa
SHA512 (COPYING.adwaita-icon-theme) = e8963bab4d94d9fbcfc930b95164afff9502e4e53209104f4836fcd6dab2c2e9f105c9f9a17b43bc9502903c9c7b2e0880dacf2339cbe110a19654f13742e20a