2016-11-04 12:54:19 +00:00
|
|
|
#
|
|
|
|
# spec file for package xdg-desktop-portal
|
|
|
|
#
|
2023-06-23 20:28:24 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2024-05-21 07:38:48 +00:00
|
|
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
2016-11-04 12:54:19 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-21 08:46:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-04 12:54:19 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: xdg-desktop-portal
|
2024-05-21 07:38:48 +00:00
|
|
|
Version: 1.18.4
|
2016-11-04 12:54:19 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A portal frontend service for Flatpak
|
2018-03-05 16:15:50 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2016-11-04 12:54:19 +00:00
|
|
|
Group: System/Libraries
|
2019-04-11 14:49:06 +00:00
|
|
|
URL: https://github.com/flatpak/xdg-desktop-portal
|
2019-12-27 16:23:12 +00:00
|
|
|
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2021-01-08 09:42:43 +00:00
|
|
|
|
2023-09-19 08:51:46 +00:00
|
|
|
BuildRequires: docutils
|
2023-10-27 13:50:01 +00:00
|
|
|
BuildRequires: meson >= 0.58
|
2016-11-04 12:54:19 +00:00
|
|
|
BuildRequires: pkgconfig
|
2021-01-14 18:28:02 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2016-11-04 12:54:19 +00:00
|
|
|
BuildRequires: xmlto
|
2019-02-01 07:33:50 +00:00
|
|
|
BuildRequires: pkgconfig(flatpak)
|
2022-03-18 10:59:46 +00:00
|
|
|
BuildRequires: pkgconfig(fuse3)
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
2016-11-04 12:54:19 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2019-06-15 18:09:57 +00:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
2019-02-01 07:33:50 +00:00
|
|
|
BuildRequires: pkgconfig(libgeoclue-2.0) >= 2.5.2
|
2020-03-12 20:36:16 +00:00
|
|
|
BuildRequires: pkgconfig(libpipewire-0.3) >= 0.2.90
|
2019-12-27 16:23:12 +00:00
|
|
|
BuildRequires: pkgconfig(libportal)
|
2022-03-18 10:59:46 +00:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2019-04-11 14:49:06 +00:00
|
|
|
# Break cycle: we buildrequire flatpak, and flatpak has a requires on xdg-desktop-portal
|
|
|
|
#!BuildIgnore: xdg-desktop-portal
|
2022-03-30 11:13:04 +00:00
|
|
|
# xdg-dfesktop-portal calls out to fusermount3 (in $PATH) (boo#1197567)
|
|
|
|
# document-portal/document-portal-fuse.c: char *umount_argv[] = { "fusermount3", "-u", "-z", (char *) path, NULL };
|
|
|
|
Requires: %{_bindir}/fusermount3
|
2016-11-04 12:54:19 +00:00
|
|
|
|
|
|
|
%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
|
2018-12-21 08:46:45 +00:00
|
|
|
%autosetup -p1
|
2016-11-04 12:54:19 +00:00
|
|
|
|
|
|
|
%build
|
2023-09-12 08:22:03 +00:00
|
|
|
%meson \
|
|
|
|
-Dpytest=disabled \
|
2018-12-21 08:46:45 +00:00
|
|
|
%{nil}
|
2023-09-12 08:22:03 +00:00
|
|
|
%meson_build
|
2016-11-04 12:54:19 +00:00
|
|
|
|
|
|
|
%install
|
2023-09-12 08:22:03 +00:00
|
|
|
%meson_install
|
2023-12-04 13:34:05 +00:00
|
|
|
|
|
|
|
# own the packaging directories
|
2024-01-12 13:06:08 +00:00
|
|
|
install -d %{buildroot}%{_datadir}/xdg-desktop-portal/portals
|
2023-12-04 13:34:05 +00:00
|
|
|
|
2022-04-01 12:39:39 +00:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2016-11-04 12:54:19 +00:00
|
|
|
|
2021-01-14 18:28:02 +00:00
|
|
|
%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
|
|
|
|
|
2016-11-04 12:54:19 +00:00
|
|
|
%files
|
2018-03-05 16:15:50 +00:00
|
|
|
%license COPYING
|
|
|
|
%dir %{_datadir}/dbus-1
|
|
|
|
%dir %{_datadir}/dbus-1/interfaces
|
|
|
|
%dir %{_datadir}/dbus-1/services
|
2018-12-21 08:46:45 +00:00
|
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
2018-03-05 16:15:50 +00:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
|
2016-11-04 12:54:19 +00:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
|
2018-03-05 16:15:50 +00:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
|
2023-12-04 13:34:05 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
2024-01-12 13:06:08 +00:00
|
|
|
%dir %{_datadir}/%{name}/portals
|
2022-03-07 12:34:06 +00:00
|
|
|
%{_libexecdir}/%{name}
|
2022-03-18 10:59:46 +00:00
|
|
|
%{_libexecdir}/xdg-desktop-portal-validate-icon
|
2020-07-10 10:09:45 +00:00
|
|
|
%{_libexecdir}/xdg-document-portal
|
|
|
|
%{_libexecdir}/xdg-permission-store
|
2022-03-21 08:36:02 +00:00
|
|
|
%{_libexecdir}/xdg-desktop-portal-rewrite-launchers
|
2022-03-07 12:34:06 +00:00
|
|
|
%{_userunitdir}/%{name}.service
|
2021-01-14 18:28:02 +00:00
|
|
|
%{_userunitdir}/xdg-document-portal.service
|
|
|
|
%{_userunitdir}/xdg-permission-store.service
|
2022-03-21 08:36:02 +00:00
|
|
|
%{_userunitdir}/xdg-desktop-portal-rewrite-launchers.service
|
2023-09-19 08:51:46 +00:00
|
|
|
%{_mandir}/man5/portals.conf.5%{?ext_man}
|
2016-11-04 12:54:19 +00:00
|
|
|
|
|
|
|
%files devel
|
2024-05-21 07:38:48 +00:00
|
|
|
%license COPYING
|
2023-09-12 08:22:03 +00:00
|
|
|
%doc %{_datadir}/doc/%{name}/
|
2023-10-04 09:21:18 +00:00
|
|
|
%if %{pkg_vcmp meson < 0.62.0 }
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%else
|
2022-03-07 12:34:06 +00:00
|
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
2023-10-04 09:21:18 +00:00
|
|
|
%endif
|
2016-11-04 12:54:19 +00:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2024-05-21 07:38:48 +00:00
|
|
|
%license COPYING
|
2016-11-04 12:54:19 +00:00
|
|
|
|
|
|
|
%changelog
|