diff --git a/xdg-desktop-portal-libpipewire_0_2.patch b/xdg-desktop-portal-libpipewire_0_2.patch new file mode 100644 index 0000000..e28c7f7 --- /dev/null +++ b/xdg-desktop-portal-libpipewire_0_2.patch @@ -0,0 +1,19 @@ +From 7fe4cbe6d42d1358980464c70bba445a2c4695bb Mon Sep 17 00:00:00 2001 +From: Jan Grulich +Date: Wed, 1 Aug 2018 09:15:57 +0200 +Subject: Depend on current PipeWire library and API + + +diff --git a/configure.ac b/configure.ac +index 0f2f275..a3d02aa 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -67,7 +67,7 @@ AC_ARG_ENABLE(pipewire, + [AS_HELP_STRING([--enable-pipewire],[Enable PipeWire support. Needed for screen cast portal])], + enable_pipewire=$enableval, enable_pipewire=yes) + if test x$enable_pipewire = xyes ; then +- PKG_CHECK_MODULES(PIPEWIRE, [libpipewire-0.1 >= 0.1.8]) ++ PKG_CHECK_MODULES(PIPEWIRE, [libpipewire-0.2 >= 0.2.2]) + AC_DEFINE([HAVE_PIPEWIRE],[1], [Define to enable PipeWire support]) + fi + AM_CONDITIONAL([HAVE_PIPEWIRE],[test "$enable_pipewire" = "yes"]) diff --git a/xdg-desktop-portal.spec b/xdg-desktop-portal.spec index 55ec9bf..5cf7c6d 100644 --- a/xdg-desktop-portal.spec +++ b/xdg-desktop-portal.spec @@ -1,17 +1,19 @@ Name: xdg-desktop-portal Version: 0.99 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Portal frontend service to flatpak License: LGPLv2+ URL: https://github.com/flatpak/xdg-desktop-portal/ Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz +Patch0: xdg-desktop-portal-libpipewire_0_2.patch + BuildRequires: gcc BuildRequires: pkgconfig(flatpak) BuildRequires: pkgconfig(fuse) BuildRequires: pkgconfig(gio-unix-2.0) -BuildRequires: pkgconfig(libpipewire-0.1) +BuildRequires: pkgconfig(libpipewire-0.2) BuildRequires: /usr/bin/xmlto %{?systemd_requires} BuildRequires: systemd @@ -38,6 +40,7 @@ The pkg-config file for %{name}. %prep %setup -q +%patch0 -p1 -b .libpipewire_0_2 %build %configure --enable-docbook-docs @@ -87,6 +90,9 @@ install -dm 755 %{buildroot}/%{_datadir}/%{name}/portals %changelog +* Wed Aug 01 2018 Jan Grulich - 0.99-2 +- Rebuild PipeWire 0.2.2 + * Tue Jul 24 2018 David King - 0.99-1 - Update to 0.99