2019-01-16 07:14:24 +00:00
|
|
|
%global geoclue_version 2.5.2
|
2022-04-04 22:47:01 +00:00
|
|
|
%global glib_version 2.69.1
|
2020-01-03 11:22:15 +00:00
|
|
|
%global low_memory_monitor_version 2.0
|
2022-12-15 11:11:56 +00:00
|
|
|
%global pipewire_version 0.2.90
|
2018-08-20 17:39:09 +00:00
|
|
|
|
2016-07-11 14:53:20 +00:00
|
|
|
Name: xdg-desktop-portal
|
2023-08-05 15:50:13 +00:00
|
|
|
Version: 1.17.0
|
2022-10-22 17:22:57 +00:00
|
|
|
Release: %autorelease
|
2016-07-11 14:53:20 +00:00
|
|
|
Summary: Portal frontend service to flatpak
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://github.com/flatpak/xdg-desktop-portal/
|
|
|
|
Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
|
2018-07-24 11:41:43 +00:00
|
|
|
BuildRequires: gcc
|
2022-12-15 11:11:56 +00:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: meson
|
2021-12-21 16:11:51 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2016-07-11 14:53:20 +00:00
|
|
|
BuildRequires: pkgconfig(flatpak)
|
2022-04-16 08:57:04 +00:00
|
|
|
BuildRequires: pkgconfig(fuse3)
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
2020-01-03 11:22:15 +00:00
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib_version}
|
2019-05-28 16:31:50 +00:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
2019-01-16 07:14:24 +00:00
|
|
|
BuildRequires: pkgconfig(libgeoclue-2.0) >= %{geoclue_version}
|
2020-03-10 06:37:38 +00:00
|
|
|
BuildRequires: pkgconfig(libpipewire-0.3) >= %{pipewire_version}
|
2022-12-15 11:11:56 +00:00
|
|
|
BuildRequires: pkgconfig(libportal)
|
2022-04-16 08:57:04 +00:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2023-08-05 15:50:13 +00:00
|
|
|
BuildRequires: python3-dbusmock
|
|
|
|
BuildRequires: python3-gobject-base
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-pytest-xdist
|
2016-07-11 14:53:20 +00:00
|
|
|
BuildRequires: /usr/bin/xmlto
|
2020-03-10 06:37:38 +00:00
|
|
|
|
2016-07-11 14:53:20 +00:00
|
|
|
Requires: dbus
|
2019-01-16 07:14:24 +00:00
|
|
|
Requires: geoclue2 >= %{geoclue_version}
|
2022-03-25 12:33:42 +00:00
|
|
|
Requires: glib2%{?_isa} >= %{glib_version}
|
2019-09-16 15:12:39 +00:00
|
|
|
Recommends: pipewire >= %{pipewire_version}
|
2022-03-25 12:33:42 +00:00
|
|
|
Requires: pipewire-libs%{?_isa} >= %{pipewire_version}
|
2018-02-14 13:39:25 +00:00
|
|
|
# Required for the document portal.
|
2022-11-26 18:55:40 +00:00
|
|
|
Requires: /usr/bin/fusermount3
|
2020-01-03 11:22:15 +00:00
|
|
|
# Required for the GMemoryMonitor GIO API
|
|
|
|
Requires: low-memory-monitor >= %{low_memory_monitor_version}
|
2016-07-11 14:53:20 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
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: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The pkg-config file for %{name}.
|
|
|
|
|
2016-07-13 11:44:19 +00:00
|
|
|
|
2016-07-11 14:53:20 +00:00
|
|
|
%prep
|
2020-03-10 06:37:38 +00:00
|
|
|
%autosetup -p1
|
|
|
|
|
2016-07-11 14:53:20 +00:00
|
|
|
|
|
|
|
%build
|
2022-12-15 11:11:56 +00:00
|
|
|
%meson
|
|
|
|
%meson_build
|
2016-07-11 14:53:20 +00:00
|
|
|
|
2016-07-13 11:44:19 +00:00
|
|
|
|
2016-07-11 14:53:20 +00:00
|
|
|
%install
|
2022-12-15 11:11:56 +00:00
|
|
|
%meson_install
|
2016-07-13 11:44:19 +00:00
|
|
|
install -dm 755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
install -pm 644 README.md %{buildroot}/%{_pkgdocdir}
|
|
|
|
# This directory is used by implementations such as xdg-desktop-portal-gtk.
|
2022-08-02 15:14:17 +00:00
|
|
|
install -dm 755 %{buildroot}/%{_datadir}/xdg-desktop-portal/portals
|
2016-07-13 11:44:19 +00:00
|
|
|
|
2016-07-29 13:00:57 +00:00
|
|
|
%find_lang %{name}
|
2016-07-11 14:53:20 +00:00
|
|
|
|
2016-07-29 13:00:57 +00:00
|
|
|
|
2017-03-31 13:23:28 +00:00
|
|
|
%post
|
2022-08-02 15:14:17 +00:00
|
|
|
%systemd_user_post xdg-desktop-portal.service
|
2018-02-14 13:39:25 +00:00
|
|
|
%systemd_user_post xdg-document-portal.service
|
|
|
|
%systemd_user_post xdg-permission-store.service
|
2017-03-31 13:23:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%preun
|
2022-08-02 15:14:17 +00:00
|
|
|
%systemd_user_preun xdg-desktop-portal.service
|
2018-02-14 13:39:25 +00:00
|
|
|
%systemd_user_preun xdg-document-portal.service
|
|
|
|
%systemd_user_preun xdg-permission-store.service
|
2017-03-31 13:23:28 +00:00
|
|
|
|
|
|
|
|
2016-07-29 13:00:57 +00:00
|
|
|
%files -f %{name}.lang
|
2016-07-11 14:53:20 +00:00
|
|
|
%doc %{_pkgdocdir}
|
|
|
|
%license COPYING
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.*.xml
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.*.xml
|
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
|
2018-02-14 13:39:25 +00:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
|
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
|
2022-08-02 15:14:17 +00:00
|
|
|
%{_datadir}/xdg-desktop-portal/
|
2018-02-14 13:39:25 +00:00
|
|
|
%{_libexecdir}/xdg-desktop-portal
|
2022-04-16 08:57:04 +00:00
|
|
|
%{_libexecdir}/xdg-desktop-portal-rewrite-launchers
|
|
|
|
%{_libexecdir}/xdg-desktop-portal-validate-icon
|
2018-02-14 13:39:25 +00:00
|
|
|
%{_libexecdir}/xdg-document-portal
|
|
|
|
%{_libexecdir}/xdg-permission-store
|
2022-08-02 15:14:17 +00:00
|
|
|
%{_userunitdir}/xdg-desktop-portal.service
|
2022-04-16 08:57:04 +00:00
|
|
|
%{_userunitdir}/xdg-desktop-portal-rewrite-launchers.service
|
2018-02-14 13:39:25 +00:00
|
|
|
%{_userunitdir}/xdg-document-portal.service
|
|
|
|
%{_userunitdir}/xdg-permission-store.service
|
2016-07-11 14:53:20 +00:00
|
|
|
|
|
|
|
%files devel
|
2017-11-19 22:05:33 +00:00
|
|
|
%{_datadir}/pkgconfig/xdg-desktop-portal.pc
|
2016-07-11 14:53:20 +00:00
|
|
|
|
2016-07-13 11:44:19 +00:00
|
|
|
|
2016-07-11 14:53:20 +00:00
|
|
|
%changelog
|
2022-10-22 17:22:57 +00:00
|
|
|
%autochangelog
|