1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
%define _userunitdir %(pkg-config systemd --variable systemduserunitdir) %define _libexecdir %_prefix/libexec %def_disable docs Name: xdg-desktop-portal Version: 1.2.0 Release: alt1 Summary: Portal frontend service to Flatpak Group: Graphical desktop/GNOME License: LGPLv2+ Url: https://github.com/flatpak/%name Source: %url/releases/download/%version/%name-%version.tar.xz %define geoclue_ver 2.5.2 Requires: dbus Requires: flatpak >= 1.2.0 Requires: /usr/bin/fusermount Requires: pipewire Requires: geoclue2 >= %geoclue_ver BuildRequires: pkgconfig(flatpak) BuildRequires: pkgconfig(fuse) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(libpipewire-0.2) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(libgeoclue-2.0) >= %geoclue_ver BuildRequires: pkgconfig(systemd) %{?_enable_docs:BuildRequires: xmlto docbook-dtds docbook-style-xsl} %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 Group: Development/C BuildArch: noarch Requires: %name = %version-%release %description devel The pkg-config file for %name. %prep %setup %build %autoreconf %configure %{?_disable_docs:--disable-docbook-docs} %make_build %install %makeinstall_std # directory for portals such as xdg-desktop-portal-gtk install -d -m755 %buildroot/%_datadir/%name/portals %find_lang %name %files -f %name.lang %_libexecdir/%name %_libexecdir/xdg-document-portal %_libexecdir/xdg-permission-store %_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 %_datadir/dbus-1/services/org.freedesktop.portal.Documents.service %_datadir/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service %_datadir/%name/ %_userunitdir/%name.service %_userunitdir/xdg-document-portal.service %_userunitdir/xdg-permission-store.service %doc README.md NEWS %{?_enable_docs:%doc %_docdir/%name} %files devel %_datadir/pkgconfig/%name.pc %changelog * Tue Jan 29 2019 Yuri N. Sedunov <aris@altlinux.org> 1.2.0-alt1 - 1.2.0 * Thu Nov 29 2018 Yuri N. Sedunov <aris@altlinux.org> 1.0.3-alt1 - 1.0.3 * Thu Sep 13 2018 Yuri N. Sedunov <aris@altlinux.org> 1.0.2-alt1 - 1.0.2 * Mon Sep 03 2018 Yuri N. Sedunov <aris@altlinux.org> 1.0.1-alt1 - 1.0.1 * Wed Aug 22 2018 Yuri N. Sedunov <aris@altlinux.org> 1.0-alt1 - 1.0 * Sun May 27 2018 Yuri N. Sedunov <aris@altlinux.org> 0.11-alt1 - first build for Sisyphus