- Update to version 1.14.0: * Add a new "dynamic launcher" portal, which can install .desktop files and accompanying icons after user confirmation. * Rework handling of empty app IDs: In case an empty string app ID is stored in the permission store, this permission is now shared only by apps whose app ID couldn't be determined, rather than all unsandboxed apps. * Use libsystemd (when available) to try to determine the app ID of unsandboxed processes. This is useful since some portals otherwise can't be used by host apps. * Make x-d-p start on session start, which is needed for the dynamic launcher portal to handle rewriting launchers for apps that have been renamed. * Bring back the copy of Flatpak's icon-validator, which was dropped many releases ago. * Icon validation is now required for the notification and dynamic launcher portals (previously it was only done if the "flatpak-validate-icon" binary could be found). * document-portal: Move to the libfuse3 API * document-portal: Use renameat2 sys call * document-portal: Use mutex to fix concurrency bug * realtime: Fix error code paths * realtime: Fix MakeThreadHighPriorityWithPID method * screencast: Fix an error when restoring streams * ci: Various improvements * Documentation improvements * New translations: pt, ro - Replace BuildRequires: pkgconfig(fuse) with pkgconfig(fuse3) since document-portal moved to use it. - Add BuildRequires: pkgconfig(libsystemd) and OBS-URL: https://build.opensuse.org/request/show/962648 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/xdg-desktop-portal?expand=0&rev=47
120 lines
4.0 KiB
RPMSpec
120 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package xdg-desktop-portal
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: xdg-desktop-portal
|
|
Version: 1.14.0
|
|
Release: 0
|
|
Summary: A portal frontend service for Flatpak
|
|
License: LGPL-2.1-or-later
|
|
Group: System/Libraries
|
|
URL: https://github.com/flatpak/xdg-desktop-portal
|
|
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: systemd-rpm-macros
|
|
BuildRequires: xmlto
|
|
BuildRequires: pkgconfig(flatpak)
|
|
BuildRequires: pkgconfig(fuse3)
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
|
BuildRequires: pkgconfig(libgeoclue-2.0) >= 2.5.2
|
|
BuildRequires: pkgconfig(libpipewire-0.3) >= 0.2.90
|
|
BuildRequires: pkgconfig(libportal)
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
# Break cycle: we buildrequire flatpak, and flatpak has a requires on xdg-desktop-portal
|
|
#!BuildIgnore: xdg-desktop-portal
|
|
# xdg-dfesktop-portal calls out to fusermount (in $PATH) (boo#1175899)
|
|
# document-portal/document-portal-fuse.c: char *umount_argv[] = { "fusermount", "-u", "-z", (char *) path, NULL };
|
|
Requires: %{_bindir}/fusermount
|
|
|
|
%description
|
|
A portal frontend service for Flatpak and possibly other desktop containment frameworks.
|
|
|
|
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as portals under
|
|
a well-known name (org.freedesktop.portal.Desktop) and object path (/org/freedesktop/portal/desktop).
|
|
|
|
The portal interfaces include APIs for file access, opening URIs, printing and others.
|
|
|
|
%package devel
|
|
Summary: A portal frontend service for Flatpak -- Development files
|
|
Group: Development/Languages/C and C++
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
A portal frontend service for Flatpak and possibly other desktop containment frameworks.
|
|
|
|
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as portals under
|
|
a well-known name (org.freedesktop.portal.Desktop) and object path (/org/freedesktop/portal/desktop).
|
|
|
|
This package contains convenience files for developers.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
export LANG=C.UTF-8
|
|
autoreconf -fiv
|
|
%configure \
|
|
--enable-geoclue \
|
|
--enable-pipewire \
|
|
--docdir=%{_defaultdocdir}/%{name} \
|
|
%{nil}
|
|
%make_build
|
|
|
|
%install
|
|
export LANG=C.UTF-8
|
|
%make_install
|
|
%find_lang %{name}
|
|
|
|
%post
|
|
%systemd_user_post %{name}.service xdg-document-portal.service xdg-permission-store.service
|
|
|
|
%preun
|
|
%systemd_user_preun %{name}.service xdg-document-portal.service xdg-permission-store.service
|
|
|
|
%files
|
|
%license COPYING
|
|
%dir %{_datadir}/dbus-1
|
|
%dir %{_datadir}/dbus-1/interfaces
|
|
%dir %{_datadir}/dbus-1/services
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
|
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
|
|
%{_libexecdir}/%{name}
|
|
%{_libexecdir}/xdg-desktop-portal-validate-icon
|
|
%{_libexecdir}/xdg-document-portal
|
|
%{_libexecdir}/xdg-permission-store
|
|
%{_userunitdir}/%{name}.service
|
|
%{_userunitdir}/xdg-document-portal.service
|
|
%{_userunitdir}/xdg-permission-store.service
|
|
|
|
%files devel
|
|
%doc %{_defaultdocdir}/%{name}/
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|