2016-11-04 13:54:19 +01:00
|
|
|
#
|
|
|
|
# spec file for package xdg-desktop-portal
|
|
|
|
#
|
2022-01-19 18:24:56 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2016-11-04 13:54:19 +01: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 09:46:45 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-04 13:54:19 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: xdg-desktop-portal
|
2022-01-19 18:24:56 +01:00
|
|
|
Version: 1.12.1
|
2016-11-04 13:54:19 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A portal frontend service for Flatpak
|
2018-03-05 17:15:50 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2016-11-04 13:54:19 +01:00
|
|
|
Group: System/Libraries
|
2019-04-11 16:49:06 +02:00
|
|
|
URL: https://github.com/flatpak/xdg-desktop-portal
|
2019-12-27 17:23:12 +01:00
|
|
|
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2021-01-08 10:42:43 +01:00
|
|
|
|
2020-03-12 21:36:16 +01:00
|
|
|
BuildRequires: libtool
|
2016-11-04 13:54:19 +01:00
|
|
|
BuildRequires: pkgconfig
|
2021-01-14 19:28:02 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2016-11-04 13:54:19 +01:00
|
|
|
BuildRequires: xmlto
|
2019-02-01 08:33:50 +01:00
|
|
|
BuildRequires: pkgconfig(flatpak)
|
2018-03-05 17:15:50 +01:00
|
|
|
BuildRequires: pkgconfig(fuse)
|
2016-11-04 13:54:19 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2019-06-15 20:09:57 +02:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
2019-02-01 08:33:50 +01:00
|
|
|
BuildRequires: pkgconfig(libgeoclue-2.0) >= 2.5.2
|
2020-03-12 21:36:16 +01:00
|
|
|
BuildRequires: pkgconfig(libpipewire-0.3) >= 0.2.90
|
2019-12-27 17:23:12 +01:00
|
|
|
BuildRequires: pkgconfig(libportal)
|
2019-04-11 16:49:06 +02:00
|
|
|
# Break cycle: we buildrequire flatpak, and flatpak has a requires on xdg-desktop-portal
|
|
|
|
#!BuildIgnore: xdg-desktop-portal
|
2020-08-31 16:32:07 +02:00
|
|
|
# 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 };
|
2020-08-31 16:29:12 +02:00
|
|
|
Requires: %{_bindir}/fusermount
|
2016-11-04 13:54:19 +01: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 09:46:45 +01:00
|
|
|
%autosetup -p1
|
2016-11-04 13:54:19 +01:00
|
|
|
|
|
|
|
%build
|
2020-02-04 11:36:44 +01:00
|
|
|
export LANG=C.UTF-8
|
2020-03-12 21:36:16 +01:00
|
|
|
autoreconf -fiv
|
2018-03-05 17:15:50 +01:00
|
|
|
%configure \
|
2019-02-01 08:33:50 +01:00
|
|
|
--enable-geoclue \
|
2018-12-21 09:46:45 +01:00
|
|
|
--enable-pipewire \
|
2022-03-07 13:34:06 +01:00
|
|
|
--docdir=%{_defaultdocdir}/%{name} \
|
2018-12-21 09:46:45 +01:00
|
|
|
%{nil}
|
|
|
|
%make_build
|
2016-11-04 13:54:19 +01:00
|
|
|
|
|
|
|
%install
|
2020-02-04 11:36:44 +01:00
|
|
|
export LANG=C.UTF-8
|
2018-03-05 17:15:50 +01:00
|
|
|
%make_install
|
2016-11-04 13:54:19 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2021-01-14 19:28:02 +01: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 13:54:19 +01:00
|
|
|
%files
|
2018-03-05 17:15:50 +01:00
|
|
|
%license COPYING
|
|
|
|
%dir %{_datadir}/dbus-1
|
|
|
|
%dir %{_datadir}/dbus-1/interfaces
|
|
|
|
%dir %{_datadir}/dbus-1/services
|
2018-12-21 09:46:45 +01:00
|
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
2018-03-05 17:15:50 +01:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
|
2016-11-04 13:54:19 +01:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
|
2018-03-05 17:15:50 +01:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
|
2022-03-07 13:34:06 +01:00
|
|
|
%{_libexecdir}/%{name}
|
2020-07-10 12:09:45 +02:00
|
|
|
%{_libexecdir}/xdg-document-portal
|
|
|
|
%{_libexecdir}/xdg-permission-store
|
2022-03-07 13:34:06 +01:00
|
|
|
%{_userunitdir}/%{name}.service
|
2021-01-14 19:28:02 +01:00
|
|
|
%{_userunitdir}/xdg-document-portal.service
|
|
|
|
%{_userunitdir}/xdg-permission-store.service
|
2016-11-04 13:54:19 +01:00
|
|
|
|
|
|
|
%files devel
|
2022-03-07 13:34:06 +01:00
|
|
|
%doc %{_defaultdocdir}/%{name}/
|
|
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
2016-11-04 13:54:19 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|