2022-04-16 09:05:07 +00:00
|
|
|
%global xdg_desktop_portal_version 1.14.0
|
2018-02-14 15:13:30 +00:00
|
|
|
|
2016-07-13 16:59:06 +00:00
|
|
|
Name: xdg-desktop-portal-gtk
|
2022-04-16 09:05:07 +00:00
|
|
|
Version: 1.14.0
|
2022-04-08 18:37:50 +00:00
|
|
|
Release: %autorelease
|
2016-07-13 16:59:06 +00:00
|
|
|
Summary: Backend implementation for xdg-desktop-portal using GTK+
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://github.com/flatpak/%{name}
|
2018-04-25 06:19:27 +00:00
|
|
|
Source0: https://github.com/flatpak/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2016-07-13 16:59:06 +00:00
|
|
|
|
2018-07-09 17:06:53 +00:00
|
|
|
BuildRequires: gcc
|
2017-06-06 10:00:50 +00:00
|
|
|
BuildRequires: gettext
|
2021-12-21 16:18:02 +00:00
|
|
|
BuildRequires: make
|
2019-10-04 20:00:18 +00:00
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
2021-11-11 09:00:28 +00:00
|
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
2016-07-13 16:59:06 +00:00
|
|
|
BuildRequires: pkgconfig(gtk+-unix-print-3.0)
|
2018-02-14 15:13:30 +00:00
|
|
|
BuildRequires: pkgconfig(xdg-desktop-portal) >= %{xdg_desktop_portal_version}
|
2021-12-21 16:18:02 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2016-07-13 16:59:06 +00:00
|
|
|
Requires: dbus
|
2021-11-11 09:00:28 +00:00
|
|
|
Requires: gsettings-desktop-schemas
|
2018-02-14 15:13:30 +00:00
|
|
|
Requires: xdg-desktop-portal >= %{xdg_desktop_portal_version}
|
2022-04-08 18:41:01 +00:00
|
|
|
|
|
|
|
# This portal is recommended if you have installed any app that uses GTK. (It's
|
|
|
|
# also recommended if you have any such app installed via flatpak or snap, but
|
|
|
|
# that is impossible to detect here.)
|
|
|
|
Supplements: gtk3
|
|
|
|
Supplements: gtk4
|
2016-07-13 16:59:06 +00:00
|
|
|
|
|
|
|
%description
|
2021-09-16 08:36:39 +00:00
|
|
|
A backend implementation for xdg-desktop-portal that is using GTK+.
|
2016-07-13 16:59:06 +00:00
|
|
|
|
2016-07-29 13:05:29 +00:00
|
|
|
|
2016-07-13 16:59:06 +00:00
|
|
|
%prep
|
2019-10-04 20:00:18 +00:00
|
|
|
%autosetup -p1
|
2016-07-29 13:05:29 +00:00
|
|
|
|
2016-07-13 16:59:06 +00:00
|
|
|
|
|
|
|
%build
|
2021-09-16 08:36:39 +00:00
|
|
|
# All backends that are disabled are instead provided by
|
|
|
|
# xdg-desktop-portal-gnome, to keep this package free of GNOME dependencies.
|
2021-11-11 09:00:28 +00:00
|
|
|
# The appchooser and settings backends are enabled for non-GNOME GTK
|
|
|
|
# applications.
|
2021-09-16 08:36:39 +00:00
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
2021-11-11 09:00:28 +00:00
|
|
|
--enable-appchooser \
|
|
|
|
--enable-settings \
|
2021-09-16 08:36:39 +00:00
|
|
|
--disable-background \
|
2022-02-08 17:32:04 +00:00
|
|
|
--disable-lockdown \
|
2021-09-16 08:36:39 +00:00
|
|
|
--disable-screencast \
|
|
|
|
--disable-screenshot \
|
|
|
|
--disable-wallpaper
|
2016-07-13 16:59:06 +00:00
|
|
|
%make_build
|
|
|
|
|
2016-07-29 13:05:29 +00:00
|
|
|
|
2016-07-13 16:59:06 +00:00
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%find_lang %{name}
|
|
|
|
|
2016-07-29 13:05:29 +00:00
|
|
|
|
2017-03-31 13:41:34 +00:00
|
|
|
%post
|
|
|
|
%systemd_user_post %{name}.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_user_preun %{name}.service
|
|
|
|
|
|
|
|
|
2016-07-13 16:59:06 +00:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%license COPYING
|
|
|
|
%doc NEWS
|
|
|
|
%{_libexecdir}/%{name}
|
2017-03-31 13:41:34 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2016-07-13 16:59:06 +00:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.gtk.service
|
|
|
|
%{_datadir}/xdg-desktop-portal/portals/gtk.portal
|
2017-03-31 13:41:34 +00:00
|
|
|
%{_userunitdir}/%{name}.service
|
2016-07-13 16:59:06 +00:00
|
|
|
|
2016-07-29 13:05:29 +00:00
|
|
|
|
|
|
|
|
2016-07-13 16:59:06 +00:00
|
|
|
%changelog
|
2022-04-08 18:37:50 +00:00
|
|
|
%autochangelog
|