Play well with the GNOME portals

... by disabling the ones that are GNOME-specific and are now provided
by xdg-desktop-portal-gnome.

Resolves: #2051495
This commit is contained in:
Debarshi Ray 2022-05-05 21:32:56 +02:00
parent 1c1184f5df
commit 327a112f0f

View File

@ -3,7 +3,7 @@
Name: xdg-desktop-portal-gtk
Version: 1.12.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Backend implementation for xdg-desktop-portal using GTK+
License: LGPLv2+
@ -15,7 +15,6 @@ BuildRequires: gettext
BuildRequires: make
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: pkgconfig(gtk+-unix-print-3.0)
BuildRequires: pkgconfig(xdg-desktop-portal) >= %{xdg_desktop_portal_version}
BuildRequires: systemd-rpm-macros
@ -30,9 +29,7 @@ Supplements: gtk3
Supplements: gtk4
%description
A backend implementation for xdg-desktop-portal that is using GTK+ and various
pieces of GNOME infrastructure, such as the org.gnome.Shell.Screenshot or
org.gnome.SessionManager D-Bus interfaces.
A backend implementation for xdg-desktop-portal that is using GTK+.
%prep
@ -40,18 +37,19 @@ org.gnome.SessionManager D-Bus interfaces.
%build
# All backends need to be enabled because xdg-desktop-portal-gnome is not
# part of RHEL 9. Once xdg-desktop-portal-gnome is added, the portals in
# this package with GNOME dependencies should be disabled.
# All backends that are disabled are instead provided by
# xdg-desktop-portal-gnome, to keep this package free of GNOME dependencies.
# The appchooser and settings backends are enabled for non-GNOME GTK
# applications.
%configure \
--disable-silent-rules \
--enable-appchooser \
--enable-settings \
--enable-background \
--enable-lockdown \
--enable-screencast \
--enable-screenshot \
--enable-wallpaper
--disable-background \
--disable-lockdown \
--disable-screencast \
--disable-screenshot \
--disable-wallpaper
%make_build
@ -79,6 +77,10 @@ org.gnome.SessionManager D-Bus interfaces.
%changelog
* Thu May 05 2022 Debarshi Ray <rishi@fedoraproject.org> - 1.12.0-2
- Play well with the GNOME portals
Resolves: #2051495
* Tue Feb 08 2022 Debarshi Ray <rishi@fedoraproject.org> - 1.12.0-1
- Recommend this portal backend for all GTK3 and GTK4 users
Resolves: #2078624