Package xdg-desktop-portal: Specfile
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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | %def_disable snapshot %define _userunitdir %(pkg-config systemd --variable systemduserunitdir) %define _libexecdir %_prefix/libexec %def_disable docs %def_enable man %def_enable check %def_enable installed_tests Name: xdg-desktop-portal Version: 1.18.2 Release: alt1 Summary: Portal frontend service to Flatpak Group: Graphical desktop/GNOME License: LGPL-2.0 Url: https://github.com/flatpak/%name %if_disabled snapshot Source: %url/releases/download/%version/%name-%version.tar.xz %else Source: %name-%version.tar %endif %{?_enable_installed_tests:%add_python3_path %_libexecdir/installed-tests/%name} %define meson_ver 0.56.2 %define glib_ver 2.66 %define geoclue_ver 2.5.2 %define portal_ver 0.2.90 %define fuse3_ver 3.10.0 Requires: dbus #Requires: flatpak >= 1.6.0 Requires: /usr/bin/fusermount Requires: pipewire Requires: geoclue2 >= %geoclue_ver BuildRequires(pre): rpm-macros-meson rpm-build-systemd %{?_enable_installed_tests:rpm-build-python3} BuildRequires: meson >= %meson_ver BuildRequires: pkgconfig(flatpak) flatpak BuildRequires: pkgconfig(fuse3) >= %fuse3_ver BuildRequires: pkgconfig(gio-unix-2.0) >= %glib_ver BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(libpipewire-0.3) BuildRequires: pkgconfig(libgeoclue-2.0) >= %geoclue_ver BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(json-glib-1.0) # since 1.5 BuildRequires: pkgconfig(libportal) >= %portal_ver %{?_enable_docs:BuildRequires: xmlto docbook-dtds docbook-style-xsl} %{?_enable_man:BuildRequires: /usr/bin/rst2man} %{?_enable_installed_tests:BuildRequires: /proc fuse3 pipewire BuildRequires: python3(pytest) python3-module-pygobject3 BuildRequires: python3-module-dbus python3-module-dbusmock} # with our xdist tests failed in hasher with typical error # Error creating thread: Resource temporarily unavailable # python3(xdist) %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 = %EVR %description devel The pkg-config file for %name. %package tests Summary: Tests for the %name Group: Development/Other Requires: %name = %EVR Requires: flatpak >= 1.6.0 %description tests This package provides tests programs that can be used to verify the functionality of the installed %name. %prep %setup sed -i 's/pytest-3/py.test-3/' tests/meson.build %build %meson \ %{?_disable_docs:-Ddocbook-docs=disabled} \ %{?_disable_man:-Dman-pages=disabled} \ %{?_enable_installed_tests:-Dinstalled-tests=true} %nil %meson_build %install %meson_install # directory for portals such as xdg-desktop-portal-gtk install -d -m755 %buildroot/%_datadir/%name/portals %find_lang %name %check %__meson_test -t 6 %files -f %name.lang %_libexecdir/%name %_libexecdir/xdg-document-portal %_libexecdir/xdg-permission-store %_libexecdir/%name-validate-icon %_libexecdir/%name-rewrite-launchers %_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 %_userunitdir/%name-rewrite-launchers.service %{?_enable_man:%_man5dir/portals.conf.5*} %doc README.md NEWS %{?_enable_docs:%doc %_docdir/%name} %files devel %_datadir/pkgconfig/%name.pc %if_enabled installed_tests %files tests %_libexecdir/installed-tests/%name/ %_datadir/installed-tests/%name/ %endif %changelog * Thu Nov 23 2023 Yuri N. Sedunov <aris@altlinux.org> 1.18.2-alt1 - 1.18.2 * Thu Oct 26 2023 Yuri N. Sedunov <aris@altlinux.org> 1.18.1-alt1 - 1.18.1 * Tue Sep 19 2023 Yuri N. Sedunov <aris@altlinux.org> 1.18.0-alt1 - 1.18.0 * Mon Sep 04 2023 Yuri N. Sedunov <aris@altlinux.org> 1.17.2-alt1 - 1.17.2 * Wed Jun 21 2023 Yuri N. Sedunov <aris@altlinux.org> 1.16.0-alt1.1 - removed flatpak dependency (https://bugzilla.altlinux.org/46580) * Tue Dec 13 2022 Yuri N. Sedunov <aris@altlinux.org> 1.16.0-alt1 - 1.16.0 (ported to Meson build system) - new -tests subpackage * Sun Sep 04 2022 Yuri N. Sedunov <aris@altlinux.org> 1.15.0-alt1 - 1.15.0 * Wed Aug 03 2022 Yuri N. Sedunov <aris@altlinux.org> 1.14.6-alt1 - 1.14.6 * Tue Jul 19 2022 Yuri N. Sedunov <aris@altlinux.org> 1.14.5-alt1 - 1.14.5 * Thu May 05 2022 Yuri N. Sedunov <aris@altlinux.org> 1.14.4-alt1 - 1.14.4 * Fri Apr 15 2022 Yuri N. Sedunov <aris@altlinux.org> 1.14.3-alt1 - 1.14.3 * Wed Mar 30 2022 Yuri N. Sedunov <aris@altlinux.org> 1.14.2-alt1 - 1.14.2 * Mon Mar 21 2022 Yuri N. Sedunov <aris@altlinux.org> 1.14.1-alt1 - 1.14.1 * Thu Dec 23 2021 Yuri N. Sedunov <aris@altlinux.org> 1.12.1-alt1 - 1.12.1 * Wed Dec 22 2021 Yuri N. Sedunov <aris@altlinux.org> 1.12.0-alt1 - 1.12.0 * Sun Sep 26 2021 Yuri N. Sedunov <aris@altlinux.org> 1.10.1-alt1 - 1.10.1 * Tue Jul 06 2021 Yuri N. Sedunov <aris@altlinux.org> 1.8.1-alt2.1 - disabled check * Sun Apr 18 2021 Yuri N. Sedunov <aris@altlinux.org> 1.8.1-alt2 - updated to 1.8.1-3-g89d2197 * Thu Feb 18 2021 Yuri N. Sedunov <aris@altlinux.org> 1.8.1-alt1 - 1.8.1 * Tue Sep 15 2020 Yuri N. Sedunov <aris@altlinux.org> 1.8.0-alt1 - 1.8.0 * Sun Apr 05 2020 Yuri N. Sedunov <aris@altlinux.org> 1.7.2-alt1 - 1.7.2 - enabled %%check * Sat Mar 28 2020 Yuri N. Sedunov <aris@altlinux.org> 1.7.1-alt1 - 1.7.1 * Tue Mar 17 2020 Yuri N. Sedunov <aris@altlinux.org> 1.7.0-alt1 - 1.7.0 * Tue Mar 10 2020 Yuri N. Sedunov <aris@altlinux.org> 1.6.0-alt2 - updated to 1.6.0-18-g552a4f3 - built against pipewire-0.3 * Sat Dec 21 2019 Yuri N. Sedunov <aris@altlinux.org> 1.6.0-alt1 - 1.6.0 * Fri Dec 13 2019 Yuri N. Sedunov <aris@altlinux.org> 1.5.4-alt1 - 1.5.4 * Thu Nov 28 2019 Yuri N. Sedunov <aris@altlinux.org> 1.5.3-alt1 - 1.5.3 * Sun Nov 03 2019 Yuri N. Sedunov <aris@altlinux.org> 1.5.2-alt1 - 1.5.2 * Thu May 30 2019 Yuri N. Sedunov <aris@altlinux.org> 1.4.2-alt1 - 1.4.2 * 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 |