commit da358c0bd6b3eefd4e0fb792e9afe21d591911e29a7b032bbe3ad162810ccd7e Author: Christophe Marin Date: Thu Sep 26 10:50:02 2024 +0000 Plasma 6.2 beta, try 2 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks/xdg-desktop-portal-kde6?expand=0&rev=28 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/plasma.keyring b/plasma.keyring new file mode 100644 index 0000000..df40fb7 Binary files /dev/null and b/plasma.keyring differ diff --git a/xdg-desktop-portal-kde-6.1.3.tar.xz b/xdg-desktop-portal-kde-6.1.3.tar.xz new file mode 100644 index 0000000..e146ab6 --- /dev/null +++ b/xdg-desktop-portal-kde-6.1.3.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:824cfe7b065785be7f802a812692d509b8213d64a984d97e830448f70aa13cc6 +size 172240 diff --git a/xdg-desktop-portal-kde-6.1.3.tar.xz.sig b/xdg-desktop-portal-kde-6.1.3.tar.xz.sig new file mode 100644 index 0000000..0efeb64 --- /dev/null +++ b/xdg-desktop-portal-kde-6.1.3.tar.xz.sig @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmaWVV4ACgkQ11dEg7tX +sY0Ifw/+MmtYbW+qXveQhY79aohkIL97Q/TokltZnUWdxT1kqYnzhkIBP/Lgs3Pn +Iy89BFi846mKB/QgrjWTDW5Gjl5WgtrGrgwpIt9cfk4BY0avejgpuciyMiqU7jIF +1fWQr6JLGwIhmtRpCk3+uUhNy7hNTG4SokeN/fZgeos56C2Zpic9eSDOmuz2bVi4 +HMp2vKER2/8h/j0wwdhHmSdALenzAnVa78f0Ns/uLs8tjCKmEsSfy7ms7pYoV5Zt +aJglV9Z1dzDG8OxKYJ3HlQZcqb0rC9YPDjz8Okuq3A5TA25vnEb9VdE6ExvzfVP+ +cL3obM81DmcFBXmcR+iIoP8SdIp/0AgndTbUyiYu8DBbco6lQcCkv4Q5DGBTMwtI +iJphCdTRtF9QLL0bhvQnEHta/+27/FYQZwzhFmAnXnPsuI/9dfymN4nFrvQh6qsW +PjfA3EofaW3K1hKZeueaDu3SbdCjwmzHPSSlTver1gV4cLcc9L2TK9J0yVVHnF4y +E9WZri8ENFy+dC5e5EVjHR1JSfqdIxiFqCOvk6ILiyIzI6XzSN57+MMjXxb5mdh6 +Npw2rIfhcwrUImoVj49Ln7BAt9CL4MRbu/S6cCtE5fKGU3aiqBCGE12Vpcy5gMMc +j09kio7Oz0U+TQyaeCvYuc8yU3b7GURwhNhlEwphh5b0Z30o144= +=7rAb +-----END PGP SIGNATURE----- diff --git a/xdg-desktop-portal-kde-6.1.4.tar.xz b/xdg-desktop-portal-kde-6.1.4.tar.xz new file mode 100644 index 0000000..cf97a1f --- /dev/null +++ b/xdg-desktop-portal-kde-6.1.4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38ca15fd86d5fef2cc79ac98f56b4cd3d93cefd32e82d3b2246bb77402dca7b2 +size 172404 diff --git a/xdg-desktop-portal-kde-6.1.4.tar.xz.sig b/xdg-desktop-portal-kde-6.1.4.tar.xz.sig new file mode 100644 index 0000000..6e3429f --- /dev/null +++ b/xdg-desktop-portal-kde-6.1.4.tar.xz.sig @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmayGOYACgkQ11dEg7tX +sY2SBg/9Gjl2bLmLVM4rzct9L/3KfxX/3nAEmDvHqHxNU7XdnVlJKe5CLrBWEMDw +Hv1Ge+NJuoJfro+Is8B8uVSFTKj07hKqw3rHxl2SiDk65K7G1eLuR8Ue92mj8l1l +bGy915Ep0bGt9hPMgBVOetbGvfQFM8mOlydlfLXAK+ehirnCZjdGG5rZYilqCkjG +Ok1MCouxlYcvu9WhWwMdJoryRiMvKDcqUayrNcI4qvzamB1vRcOjkmuikPIWLGPq +iubXmmKsssV1zmIns8FUm7tPTPkxMvbD8Cr0nur+JVTM52rChEKRgLCvdakroFOz +gDPIeqiMDuD5P8RmCTAojoKgHKFqiRNPRNcS082z6fF/dbOTJKj9KNZCGOU5LqpC +xddLEkkxuh6OMv+e5Q8jeyk0u2O4Foy9RQ5ekzKPNwXmWceOFB2u4Xnj92ubZ5js +8iU77Qw2LALJoEaweh0K8v6yy16RBoqwVQ2muceNXWOES98cKjZjuYgQC6e2HST/ +IBfQ4GuPrwguQxrkq3JInKHIz3uukGdjT+4cxBhIoiHSan0xrBGDR2YzrVcKICSs +KRX4CmxDKQkIrmlisn/5QTteXABzOdGUd4A5MZZwJbT6Wycna3x9cvz+V5NcrMld +CktA7vIVZfb2zIW3SENPRPvzMbGvdaqsHN8EZwfaGQO0bzTqAAs= +=e70V +-----END PGP SIGNATURE----- diff --git a/xdg-desktop-portal-kde-6.1.5.tar.xz b/xdg-desktop-portal-kde-6.1.5.tar.xz new file mode 100644 index 0000000..c14ab50 --- /dev/null +++ b/xdg-desktop-portal-kde-6.1.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09d13c0c06fddc083249d1f5be907e271ea39f01f577d37d26743b01df5a6978 +size 172860 diff --git a/xdg-desktop-portal-kde-6.1.5.tar.xz.sig b/xdg-desktop-portal-kde-6.1.5.tar.xz.sig new file mode 100644 index 0000000..81b14a2 --- /dev/null +++ b/xdg-desktop-portal-kde-6.1.5.tar.xz.sig @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmbgCSgACgkQ11dEg7tX +sY3yhw/+P20znNpWXcsbAJTRzrZeDCTOaTMoz4uKtE7XPOgtX4xLRfgoJw6/4nQH +ygcYQ+9W8oIkjtGdiwpvqIbpRJnXbrX2jg2r6Tk/+gX4eLX1iq0++gIgfwR3mU7y +lzaQJ4Sn67xuxPojcsOIi7aOJhSjp++4QcukD4Q7hndQ86gZQFANISLD1FMUxHi0 +Vq+YQoAg3g68a3GfusuwEbpMlHsGvBRcJ1PMpaULymWxFzcj/901SLKdlN7E2hl0 +T9/JUG8ZGBRUwZgMb3fWO5qy7OP9ra4bwqhF9nqDsRXmIjfX11GPtMF8MXrla8eP +K8XSDV3BkbLgnBtUb66qgjotLVwSY6qNm4YpJ2sCKSlun6i1M1r0uC4vF9oNov/u +7EVfuvoE4S8HHNefXU4OCTm/BoxyMAJQ9ydZ9mRSQVIjbZgljeufiefqAgqgz4Or +wTsJQ75ojJOw7YmJYecB87vbV5U7agSj2lZVuPugj7cYDMKe1Mbc+HMEYuyIcUJZ +iQaAGxk3sz/X83LTEi43eGq4UqeLWrB97iQyBEmhTHMbv+K5Nb/55fC3CM9w0NdA +1WfbevNJRRCn19P6MGfrl8geboUCkBTpew4CdUTK6QkizMwmTgPIW8Rb6xMiXbrQ +jedmBTyzQSWzkwUjsiZQgCMX2+7kKhSox2c5csQnvNXCnQqdcAo= +=TCqF +-----END PGP SIGNATURE----- diff --git a/xdg-desktop-portal-kde-6.1.90.tar.xz b/xdg-desktop-portal-kde-6.1.90.tar.xz new file mode 100644 index 0000000..1f10556 --- /dev/null +++ b/xdg-desktop-portal-kde-6.1.90.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7984571934f636eecec0e19d482719a70741575af296db215fecfaf08ce0a1c +size 178112 diff --git a/xdg-desktop-portal-kde-6.1.90.tar.xz.sig b/xdg-desktop-portal-kde-6.1.90.tar.xz.sig new file mode 100644 index 0000000..67ec611 --- /dev/null +++ b/xdg-desktop-portal-kde-6.1.90.tar.xz.sig @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmbixEgACgkQ11dEg7tX +sY24OA/9F/4V0TBLB8IZr77iBI5jt9Rdo75TuakeGtTG1MJSQ4p0KdVSFCCY3qi7 +1YpnZXH6tDdpuW4nTiDyBOOlgrp+is9d2Q7LSmp1/CpmTcIOzpGMdrOd2xtuSbuL +5qrKclqgd2/CgtVAyx4W2xqLS/93m7Sp+QT5n/vPSQwKGC0jxgMXOlYU2ZWjisNl +aqNzKlkLvykWZVNwkwIDf804l2fxQUpEQ2khayDm2MC5AyHS+ECppbyCCRkBdo+2 +bvsskDS4v46Y9KXGbQCYOr5aMb4nZ896Ak82521AtJhQxSzSI//yajs3Xw9ed5k8 +3rCVijuH5gTM2racZwoZLbIZ0MEdBoVOUR0mFHrNVcnRF0X6NGlxBvz1+ktfaa1p +NPofhF+oz1ORzF8P61p5AwMvIY2MSy6fFdY/AF/ztfcme6VVrbLLEgNpBW+xtBEn +zHTIvzvkLzIVerm4jHY/xVjlYa5UJMcnRBiNExQY9ocDowZuC7zqq/fCGSZpTMfH +g1+HpypCTDY/JXPBYfS2TvyrN0HG79oP5Mx34ZqYwKCGrmtBev7GeyJj5oW3DWPF +tp9Tj8fc4KqJut/XtzLcjaSfdZ/rK56CXiPaEA3X6kSPyjJrTFO1xVG9nPP3iwZV +yfpIwlglaM2FTX97VQ1a10GD6rou96qHgR0+mfpsaAdLwTTLoVE= +=A4ay +-----END PGP SIGNATURE----- diff --git a/xdg-desktop-portal-kde6.changes b/xdg-desktop-portal-kde6.changes new file mode 100644 index 0000000..909557e --- /dev/null +++ b/xdg-desktop-portal-kde6.changes @@ -0,0 +1,203 @@ +------------------------------------------------------------------- +Tue Sep 17 14:55:05 UTC 2024 - Fabian Vogt + +- Update to 6.1.90: + * New feature release + * For more details see https://kde.org/announcements/plasma/6/6.1.90 +- Changes since 6.1.5: + * update version for new release + * appchooser: Send activation token when selecting an app + * Generate wayland code with PRIVATE_CODE + * Set up crash handling + * Fix inputcapture signal string connection typo + * Set up translation for FileDialog + * Set timeout on DBus calls to KWin + * Inhibit: Forward the correct inhibition flags to PolicyAgent (kde#486506) + * Remove kde-portals.conf which moves to plasma-workspace + * remotedesktop: Only show the restore checkbox if the app wants to persist + * appchooser: bring private interface to feature parity with kopenwithdialog + * InputCapture: Fix retrieving of cursor position out of QVariantMap + * InputCapture: activation_id needs to be unsigned + * Fix remote desktop restoring (kde#480235) + * Fixed wrong input passed to y1 + * Initialize input capture state properly + * Make the file chooser dialog consistent with plasma-integration + * Send error replys not the original messages + * Fix screencast window restoration check (kde#485697) + * colorschemetest: Test just built binary instead of host installed one + * update version for new release + +------------------------------------------------------------------- +Tue Sep 10 14:55:38 UTC 2024 - Fabian Vogt + +- Update to 6.1.5: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.1.5 +- Changes since 6.1.4: + * update version for new release + * appchooser: Send activation token when selecting an app + * Fix inputcapture signal string connection typo + * update version for new release + +------------------------------------------------------------------- +Tue Aug 6 13:29:21 UTC 2024 - Fabian Vogt + +- Update to 6.1.4: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.1.4 +- Changes since 6.1.3: + * update version for new release + * Set up translation for FileDialog + * Set timeout on DBus calls to KWin + * Inhibit: Forward the correct inhibition flags to PolicyAgent (kde#486506) + * remotedesktop: Only show the restore checkbox if the app wants to persist + +------------------------------------------------------------------- +Tue Jul 16 13:25:52 UTC 2024 - Fabian Vogt + +- Update to 6.1.3: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.1.3 +- Changes since 6.1.2: + * update version for new release + +------------------------------------------------------------------- +Tue Jul 2 17:34:36 UTC 2024 - Fabian Vogt + +- Update to 6.1.2: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.1.2 +- Changes since 6.1.1: + * update version for new release + +------------------------------------------------------------------- +Tue Jun 25 17:16:03 UTC 2024 - Fabian Vogt + +- Update to 6.1.1: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.1.1 +- Changes since 6.1.0: + * update version for new release + * InputCapture: Fix retrieving of cursor position out of QVariantMap + * InputCapture: activation_id needs to be unsigned + * update version for new release + +------------------------------------------------------------------- +Thu Jun 13 10:59:04 UTC 2024 - Fabian Vogt + +- Update to 6.1.0: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.1.0 +- Changes since 6.0.90: + * update version for new release + * Fix remote desktop restoring (kde#480235) + * Fixed wrong input passed to y1 + * update version for new release + * Initialize input capture state properly + * Make the file chooser dialog consistent with plasma-integration + * Send error replys not the original messages + * Fix screencast window restoration check (kde#485697) + +------------------------------------------------------------------- +Sat May 25 11:20:22 UTC 2024 - Fabian Vogt + +- Update to 6.0.90: + * New feature release + * For more details see https://kde.org/announcements/plasma/6/6.0.90 +- Too many changes to list here + +------------------------------------------------------------------- +Wed May 22 07:43:24 UTC 2024 - Fabian Vogt + +- Update to 6.0.5: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.0.5 +- Changes since 6.0.4: + * update version for new release + +------------------------------------------------------------------- +Wed Apr 17 08:14:03 UTC 2024 - Fabian Vogt + +- Update to 6.0.4: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.0.4 +- Changes since 6.0.3: + * update version for new release + +------------------------------------------------------------------- +Tue Mar 26 18:07:04 UTC 2024 - Fabian Vogt + +- Update to 6.0.3: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.0.3 +- Changes since 6.0.2: + * update version for new release + * AppChooserDialog: Reload model when Sycoca database changes + +------------------------------------------------------------------- +Wed Mar 13 09:10:44 UTC 2024 - Fabian Vogt + +- Update to 6.0.2: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.0.2 +- Changes since 6.0.1: + * update version for new release + * GlobalShortcuts: Fix shortcut register on session load + * GlobalShortcuts: Load existing shortcuts at session creation + * GlobalShortcuts: Set shortcuts in BindShortcuts (kde#474741) + * update version for new release + +------------------------------------------------------------------- +Wed Mar 6 08:40:35 UTC 2024 - Fabian Vogt + +- Update to 6.0.1: + * New bugfix release + * For more details see https://kde.org/announcements/plasma/6/6.0.1 +- Changes since 6.0.0: + * update version for new release + +------------------------------------------------------------------- +Mon Mar 4 18:52:34 UTC 2024 - Christophe Marin + +- Add Provides/Obsoletes to replace Plasma 5 + +------------------------------------------------------------------- +Wed Feb 21 18:36:42 UTC 2024 - Fabian Vogt + +- Update to 6.0.0: + * New bugfix release + * Release announcement not available yet +- Changes since 5.93.0: + * update version for new release + * RegionSelectOverlay: Adapt to FloatingTextBox property change + * Format better human readable output descriptions (kde#473338) + * Fix connector type detection + * Create fake input device on demand + * update version for new release + +------------------------------------------------------------------- +Wed Jan 31 17:38:34 UTC 2024 - Fabian Vogt + +- Update to 5.93.0 (6.0 RC 2): + * New bugfix release + * See https://kde.org/announcements/megarelease/6/rc2/ for details +- Changes since 5.92.0: + * RC 1 version dep + * add a version for dependencies so it does not break CI https://invent.kde.org/plasma/bluedevil/-/merge_requests/156 + * RemoteDesktop: Include clipboard_enabled and the restore data even when no screens are requested + * ScreenChooserDialog: doubleclick to select&confirm (kde#470211) + * Fix ScreenChooserDialog Layout (kde#479304) + * Don't call toggled twice + * qml cleanup: removed duplicate toggled signal + +------------------------------------------------------------------- +Mon Jan 15 21:09:22 UTC 2024 - Fabian Vogt + +- Update to 5.92.0 (6.0 RC 1) + * For more details please see: + https://kde.org/announcements/megarelease/6/rc1/ + +------------------------------------------------------------------- +Sat Jul 15 10:39:02 UTC 2023 - Christophe Marin + +- Init xdg-desktop-portal-kde6 diff --git a/xdg-desktop-portal-kde6.spec b/xdg-desktop-portal-kde6.spec new file mode 100644 index 0000000..8e86829 --- /dev/null +++ b/xdg-desktop-portal-kde6.spec @@ -0,0 +1,127 @@ +# +# spec file for package xdg-desktop-portal-kde6 +# +# Copyright (c) 2024 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# Internal QML import +%global __requires_exclude qt6qmlimport\\(org\\.kde\\.xdgdesktopportal.* + +%define kf6_version 6.5.0 +%define qt6_version 6.7.0 + +%define rname xdg-desktop-portal-kde + +# Full Plasma 6 version (e.g. 6.0.0) +%{!?_plasma6_bugfix: %global _plasma6_bugfix %{version}} +# Latest ABI-stable Plasma (e.g. 6.0 in KF6, but 6.0.80 in KUF) +%{!?_plasma6_version: %define _plasma6_version %(echo %{_plasma6_bugfix} | awk -F. '{print $1"."$2}')} +%bcond_without released +Name: xdg-desktop-portal-kde6 +Version: 6.1.90 +Release: 0 +Summary: QT/KF6 backend for xdg-desktop-portal +License: LGPL-2.1-or-later +URL: https://www.kde.org +Source: https://download.kde.org/unstable/plasma/%{version}/%{rname}-%{version}.tar.xz +%if %{with released} +Source1: https://download.kde.org/unstable/plasma/%{version}/%{rname}-%{version}.tar.xz.sig +Source2: plasma.keyring +%endif +BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} +BuildRequires: pkgconfig +BuildRequires: qt6-gui-private-devel >= %{qt6_version} +BuildRequires: qt6-printsupport-private-devel >= %{qt6_version} +BuildRequires: cmake(KF6Config) >= %{kf6_version} +BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version} +BuildRequires: cmake(KF6Crash) >= %{kf6_version} +BuildRequires: cmake(KF6GlobalAccel) >= %{kf6_version} +BuildRequires: cmake(KF6GuiAddons) >= %{kf6_version} +BuildRequires: cmake(KF6I18n) >= %{kf6_version} +BuildRequires: cmake(KF6IconThemes) >= %{kf6_version} +BuildRequires: cmake(KF6KIO) >= %{kf6_version} +BuildRequires: cmake(KF6KirigamiPlatform) >= %{kf6_version} +BuildRequires: cmake(KF6Notifications) >= %{kf6_version} +BuildRequires: cmake(KF6StatusNotifierItem) >= %{kf6_version} +BuildRequires: cmake(KF6WidgetsAddons) >= %{kf6_version} +BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version} +BuildRequires: cmake(KWayland) >= %{_plasma6_bugfix} +BuildRequires: cmake(PlasmaWaylandProtocols) >= 1.7.0 +BuildRequires: cmake(Qt6Concurrent) >= %{qt6_version} +BuildRequires: cmake(Qt6Core) >= %{qt6_version} +BuildRequires: cmake(Qt6DBus) >= %{qt6_version} +BuildRequires: cmake(Qt6PrintSupport) >= %{qt6_version} +BuildRequires: cmake(Qt6Qml) >= %{qt6_version} +BuildRequires: cmake(Qt6Quick) >= %{qt6_version} +BuildRequires: cmake(Qt6QuickControls2) >= %{qt6_version} +BuildRequires: cmake(Qt6QuickWidgets) >= %{qt6_version} +BuildRequires: cmake(Qt6Test) >= %{qt6_version} +BuildRequires: cmake(Qt6WaylandClient) >= %{qt6_version} +BuildRequires: cmake(Qt6Widgets) >= %{qt6_version} +BuildRequires: pkgconfig(wayland-client) >= 1.15 +BuildRequires: pkgconfig(wayland-protocols) >= 1.25 +BuildRequires: pkgconfig(xkbcommon) +Requires: kf6-kiconthemes-imports >= %{kf6_version} +Requires: kpipewire6-imports >= %{_plasma6_bugfix} +# For org.kde.plasma.workspace.dialogs.1 import +Requires: plasma6-workspace >= %{_plasma6_bugfix} +Requires: xdg-desktop-portal +Supplements: (xdg-desktop-portal and plasma6-desktop) +Provides: xdg-desktop-portal-kde = %{version} +Obsoletes: xdg-desktop-portal-kde < %{version} +Obsoletes: xdg-desktop-portal-kde-lang < %{version} + +%description +A Qt/KF backend implementation for xdg-desktop-portal + +%lang_package + +%prep +%autosetup -p1 -n %{rname}-%{version} + +%build +%cmake_kf6 + +%kf6_build + +%install +%kf6_install + +%find_lang xdg-desktop-portal-kde --with-man --all-name + +%post +%{systemd_user_post plasma-xdg-desktop-portal-kde.service} + +%preun +%{systemd_user_preun plasma-xdg-desktop-portal-kde.service} + +%postun +%{systemd_user_postun plasma-xdg-desktop-portal-kde.service} + +%files +%license LICENSES/* +%{_kf6_applicationsdir}/org.freedesktop.impl.portal.desktop.kde.desktop +%{_kf6_debugdir}/xdp-kde.categories +%{_kf6_notificationsdir}/xdg-desktop-portal-kde.notifyrc +%{_kf6_sharedir}/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service +%dir %{_kf6_sharedir}/xdg-desktop-portal/ +%dir %{_kf6_sharedir}/xdg-desktop-portal/portals +%{_kf6_sharedir}/xdg-desktop-portal/portals/kde.portal +%{_libexecdir}/xdg-desktop-portal-kde +%{_userunitdir}/plasma-xdg-desktop-portal-kde.service + +%files lang -f xdg-desktop-portal-kde.lang + +%changelog