diff --git a/SPECS/breeze/breeze.spec b/SPECS/breeze/breeze.spec index bac854a7aa..3206b93c9e 100644 --- a/SPECS/breeze/breeze.spec +++ b/SPECS/breeze/breeze.spec @@ -19,8 +19,8 @@ Summary: Plasma Desktop artwork, styles and assets License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/breeze -#!RemoteAsset: sha256:09b3f7bd2386c4b91c418462f02b203510f2ae88489398ef05e0b6ddea3aa590 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:33c69d10454e1eb1c5908bb7b50a955eabf3264d836bd82dc02f3ba8d97692b0 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_QT6:BOOL=TRUE diff --git a/SPECS/kactivitymanagerd/kactivitymanagerd.spec b/SPECS/kactivitymanagerd/kactivitymanagerd.spec index cf8638ea90..9925ea6c37 100644 --- a/SPECS/kactivitymanagerd/kactivitymanagerd.spec +++ b/SPECS/kactivitymanagerd/kactivitymanagerd.spec @@ -11,8 +11,8 @@ Summary: KDE Plasma Activities support License: GPL-2.0-or-later URL: https://invent.kde.org/plasma/kactivitymanagerd VCS: git:https://invent.kde.org/plasma/kactivitymanagerd.git -#!RemoteAsset: sha256:87a0f8865f180fc69dcab2fe75d9a840fb39c99393c1d37c11a3d3a30171fbf8 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:ffb83efc69102d6e73ab7a327b6c4df30bad019493b97cdfd38ac55afde7f415 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kde-cli-tools/kde-cli-tools.spec b/SPECS/kde-cli-tools/kde-cli-tools.spec index 4ac403b23a..52d5d0ebfd 100644 --- a/SPECS/kde-cli-tools/kde-cli-tools.spec +++ b/SPECS/kde-cli-tools/kde-cli-tools.spec @@ -14,8 +14,8 @@ Summary: Additional CLI tools for KDE applications License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kde-cli-tools.git -#!RemoteAsset: sha256:083b5d3c8e6315554547e1fc538c7d9f0671e08f7c52f2bc0a5a345027a12279 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:e96d9ba8385a80758bf0e0958257cd11721e90b1cc835ee6edbad87e6a1afca1 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kde-gtk-config/kde-gtk-config.spec b/SPECS/kde-gtk-config/kde-gtk-config.spec index d82d012ad1..59726d360b 100644 --- a/SPECS/kde-gtk-config/kde-gtk-config.spec +++ b/SPECS/kde-gtk-config/kde-gtk-config.spec @@ -19,8 +19,8 @@ Summary: Daemon for GTK2 and GTK3 Applications Appearance Under KDE License: GPL-3.0-or-later AND LGPL-3.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kde-gtk-config.git -#!RemoteAsset: sha256:666b4a5ed1fcb969c98c102b5477c351d073422d4fa80eb84a41b007d9d9885a -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:60807df37815b29587c5c9fd88045f0159c833c39a0884f1ba17f0ed236873ba +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kdecoration/kdecoration.spec b/SPECS/kdecoration/kdecoration.spec index d1a1f9b800..4456bdfbc2 100644 --- a/SPECS/kdecoration/kdecoration.spec +++ b/SPECS/kdecoration/kdecoration.spec @@ -17,8 +17,8 @@ Summary: KDE's window decorations library License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kdecoration.git -#!RemoteAsset: sha256:dc217bc6374f07a427b6d78de677b1878e9af47352c6addeb89426211b53681a -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:2c65b9e030a01a5567dfe79b5f1dc4305ac8ee232abd3347bda213ed2639ca99 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kf6-frameworkintegration/kf6-frameworkintegration.spec b/SPECS/kf6-frameworkintegration/kf6-frameworkintegration.spec index 5e3a2dc8b6..db58078303 100644 --- a/SPECS/kf6-frameworkintegration/kf6-frameworkintegration.spec +++ b/SPECS/kf6-frameworkintegration/kf6-frameworkintegration.spec @@ -52,7 +52,7 @@ Applications do not need to link to this directly. %package plugin Summary: Plugins responsible for better integration of Qt applications in KDE Workspace -Requires: plasma6-integration +Requires: plasma-integration %description plugin Framework Integration is a set of plugins responsible for better diff --git a/SPECS/kf6-kcmutils/kf6-kcmutils.spec b/SPECS/kf6-kcmutils/kf6-kcmutils.spec index 3c0c4235c8..f3fa8a2a19 100644 --- a/SPECS/kf6-kcmutils/kf6-kcmutils.spec +++ b/SPECS/kf6-kcmutils/kf6-kcmutils.spec @@ -20,10 +20,12 @@ Summary: Classes to work with KCModules License: LGPL-2.1-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/frameworks/kcmutils -#!RemoteAsset +#!RemoteAsset: sha256:c6ed2d3be1f0e4efc91abca48afd64ff0c8917fbb6bc3c0b9725c66b3b9e3993 Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF -BuildRequires: fdupes BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version} BuildRequires: cmake(KF6ConfigWidgets) >= %{_kf6_version} BuildRequires: cmake(KF6CoreAddons) >= %{_kf6_version} @@ -49,15 +51,6 @@ BuildRequires: qt6-linguist KCMUtils provides various classes to work with KCModules. KCModules can be created with the KConfigWidgets framework. -%package imports -Summary: QtQuick bindings for classes to work with KCModules -Requires: %{name}%{?_isa} = %{version}-%{release} - -%description imports -KCMUtils provides various classes to work with KCModules. KCModules can be -created with the KConfigWidgets framework. This package provides QtQuick bindings -for the KCMUtils libraries. - %package devel Summary: Build environment for kcmutils, a set of classes to work with KCModules Requires: %{name}%{?_isa} = %{version}-%{release} @@ -69,36 +62,22 @@ Requires: cmake(Qt6Qml) >= %{qt6_version} KCMUtils provides various classes to work with KCModules. KCModules can be created with the KConfigWidgets framework. Development files. -%prep -%autosetup -p1 -n %{rname}-%{version} - -%build -%cmake_kf6 - -%kf6_build - -%install -%kf6_install - -%fdupes %{buildroot} - +%install -a # todo: fix the name error. # Avoid illegal package names rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* # Use langpacks macro to auto-split translations -%find_lang %{name}6 --with-qt --all-name --generate-subpackages +%find_lang %{name} --with-qt --all-name --generate-subpackages -%files -f %{name}6.lang -%license LICENSES/* +%files -f %{name}.lang %doc README.md +%license LICENSES/* %{_kf6_bindir}/kcmshell6 %{_kf6_debugdir}/kcmutils.categories %{_kf6_libexecdir}/kcmdesktopfilegenerator %{_kf6_libdir}/libKF6KCMUtils.so.* %{_kf6_libdir}/libKF6KCMUtilsCore.so.* %{_kf6_libdir}/libKF6KCMUtilsQuick.so.* - -%files imports %{_kf6_qmldir}/org/kde/kcmutils/ %files devel @@ -111,4 +90,4 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* %{_kf6_libdir}/libKF6KCMUtilsQuick.so %changelog -%{?autochangelog} +%autochangelog diff --git a/SPECS/kf6-kcoreaddons/kf6-kcoreaddons.spec b/SPECS/kf6-kcoreaddons/kf6-kcoreaddons.spec index d93ea787e5..618eb22e25 100644 --- a/SPECS/kf6-kcoreaddons/kf6-kcoreaddons.spec +++ b/SPECS/kf6-kcoreaddons/kf6-kcoreaddons.spec @@ -20,8 +20,14 @@ URL: https://www.kde.org VCS: https://invent.kde.org/frameworks/kcoreaddons #!RemoteAsset: sha256:843d27cd76ca890c4f352d6f29d2e2b8747883602b63119106b1eb229b95e649 Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF +BuildOption(conf): -DENABLE_PCH:BOOL=FALSE +BuildOption(conf): -DBUILD_PYTHON_BINDINGS:BOOL=OFF +BuildOption(conf): -DBUILD_QCH:BOOL=OFF +BuildOption(conf): -DKCOREADDONS_BUILD_PYTHON_DOCS:BOOL=OFF -BuildRequires: fdupes BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version} BuildRequires: shared-mime-info BuildRequires: cmake(Qt6Core) >= %{qt6_version} @@ -50,13 +56,6 @@ such as manipulating mime types, autosaving files, creating backup files, generating random sequences, performing text manipulations such as macro replacement, accessing user information and many more. -%package imports -Summary: QML imports for kcoreaddons -Requires: %{name}%{?_isa} = %{version}-%{release} - -%description imports -QML imports for kcoreaddons. - %package devel Summary: Utilities for core application functionality and accessing the OS Requires: %{name}%{?_isa} = %{version}-%{release} @@ -76,24 +75,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python-%{name} The package contains the PySide6 bindings library for %{name}. -%prep -%autosetup -p1 -n %{rname}-%{version} - -%build -# ENABLE_PCH breaks the build locally with 'error: is pie differs in PCH file vs. current file' -%cmake_kf6 \ - -DENABLE_PCH:BOOL=FALSE \ - -DBUILD_PYTHON_BINDINGS:BOOL=OFF \ - -DBUILD_QCH:BOOL=OFF \ - -DKCOREADDONS_BUILD_PYTHON_DOCS:BOOL=OFF - -%kf6_build - -%install -%kf6_install - -%fdupes %{buildroot} - %files %license LICENSES/* %doc README.md @@ -102,8 +83,6 @@ The package contains the PySide6 bindings library for %{name}. %{_kf6_debugdir}/kcoreaddons.renamecategories %{_kf6_libdir}/libKF6CoreAddons.so.* %{_datadir}/locale/*/LC_MESSAGES/kcoreaddons6_qt.qm - -%files imports %{_kf6_qmldir}/org/kde/coreaddons/ %files devel diff --git a/SPECS/kf6-kimageformats/kf6-kimageformats.spec b/SPECS/kf6-kimageformats/kf6-kimageformats.spec new file mode 100644 index 0000000000..365559ceaf --- /dev/null +++ b/SPECS/kf6-kimageformats/kf6-kimageformats.spec @@ -0,0 +1,139 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%define qt6_version 6.8.0 + +%define rname kimageformats + +%bcond avif 0 +%bcond heif 0 +%bcond exr 1 +%bcond jxl 1 +%bcond jp2 1 + +# Full KF6 version (e.g. 6.22.0) +%{!?_kf6_version: %global _kf6_version %{version}} + +Name: kf6-kimageformats +Version: 6.22.0 +Release: %autorelease +Summary: Image format plugins for Qt +License: LGPL-2.1-or-later +URL: https://www.kde.org +VCS: git:https://invent.kde.org/frameworks/kimageformats.git +#!RemoteAsset: sha256:d6eede9a75aa4b33c3e8afdebdcc9664cf423effeabe684b21dc1cc9728a2073 +Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF +%if %{with avif} +BuildOption(conf): -DKIMAGEFORMATS_AVIF:BOOL=TRUE +%else +BuildOption(conf): -DKIMAGEFORMATS_AVIF:BOOL=FALSE +%endif +%if %{with heif} +BuildOption(conf): -DKIMAGEFORMATS_HEIF:BOOL=TRUE +%else +BuildOption(conf): -DKIMAGEFORMATS_HEIF:BOOL=FALSE +%endif + +BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version} +%if %{with exr} +BuildRequires: openexr-devel +%endif +BuildRequires: cmake(KF6Archive) >= %{_kf6_version} +BuildRequires: cmake(Qt6Gui) >= %{qt6_version} +BuildRequires: cmake(Qt6PrintSupport) >= %{qt6_version} +BuildRequires: cmake(Qt6Test) >= %{qt6_version} +%if %{with avif} +BuildRequires: cmake(libavif) >= 0.8.2 +%endif +%if %{with heif} +BuildRequires: cmake(libheif) >= 1.10.0 +%endif +%if %{with jp2} +BuildRequires: cmake(OpenJPEG) +%endif +%if %{with jxl} +BuildRequires: pkgconfig(libjxl) >= 0.9.4 +BuildRequires: pkgconfig(libjxl_cms) >= 0.9.4 +BuildRequires: pkgconfig(libjxl_threads) >= 0.9.4 +%endif +BuildRequires: pkgconfig(libraw) +BuildRequires: pkgconfig(libraw_r) + +Requires: qt6-qtimageformats >= %{qt6_version} + +%description +This framework provides additional image format plugins for QtGui. As +such it is not required for the compilation of any other software, but +may be a runtime requirement for Qt-based software to support certain +image formats. + +%package eps +Summary: EPS image format plugin for Qt +Requires: ghostscript + +%description eps +This plugin provides support for the EPS document format for QtGui. As +it invokes ghostscript for conversion, it should only be used in trusted +environments. + +%package devel +Summary: Development files for kimageformats +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains development files for kimageformats, a framework +to provide additional image format plugins for QtGui. + +%files +%license LICENSES/* +%dir %{_kf6_plugindir}/imageformats +%{_kf6_plugindir}/imageformats/kimg_ani.so +%if %{with avif} +%{_kf6_plugindir}/imageformats/kimg_avif.so +%endif +%{_kf6_plugindir}/imageformats/kimg_dds.so +%if %{with exr} +%{_kf6_plugindir}/imageformats/kimg_exr.so +%endif +%{_kf6_plugindir}/imageformats/kimg_hdr.so +%if %{with heif} +%{_kf6_plugindir}/imageformats/kimg_heif.so +%endif +%if %{with jxl} +%{_kf6_plugindir}/imageformats/kimg_jxl.so +%endif +%if %{with jp2} +%{_kf6_plugindir}/imageformats/kimg_jp2.so +%endif +%{_kf6_plugindir}/imageformats/kimg_kra.so +%{_kf6_plugindir}/imageformats/kimg_iff.so +%{_kf6_plugindir}/imageformats/kimg_ora.so +%{_kf6_plugindir}/imageformats/kimg_pcx.so +%{_kf6_plugindir}/imageformats/kimg_pfm.so +%{_kf6_plugindir}/imageformats/kimg_pic.so +%{_kf6_plugindir}/imageformats/kimg_psd.so +%{_kf6_plugindir}/imageformats/kimg_pxr.so +%{_kf6_plugindir}/imageformats/kimg_qoi.so +%{_kf6_plugindir}/imageformats/kimg_ras.so +%{_kf6_plugindir}/imageformats/kimg_raw.so +%{_kf6_plugindir}/imageformats/kimg_rgb.so +%{_kf6_plugindir}/imageformats/kimg_sct.so +%{_kf6_plugindir}/imageformats/kimg_tga.so +%{_kf6_plugindir}/imageformats/kimg_xcf.so + +%files eps +%license LICENSES/* +%dir %{_kf6_plugindir}/imageformats +%{_kf6_plugindir}/imageformats/kimg_eps.so + +%files devel +%{_kf6_cmakedir}/KF6ImageFormats/ + +%changelog +%autochangelog diff --git a/SPECS/kf6-kwindowsystem/kf6-kwindowsystem.spec b/SPECS/kf6-kwindowsystem/kf6-kwindowsystem.spec index 4705569e60..c3f325b2e7 100644 --- a/SPECS/kf6-kwindowsystem/kf6-kwindowsystem.spec +++ b/SPECS/kf6-kwindowsystem/kf6-kwindowsystem.spec @@ -18,10 +18,11 @@ VCS: git:https://invent.kde.org/frameworks/kwindowsystem Source0: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz BuildSystem: cmake +BuildOption(conf): -DBUILD_TESTING=OFF + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake -BuildRequires: fdupes BuildRequires: xz BuildRequires: doxygen BuildRequires: graphviz @@ -58,12 +59,6 @@ KWindowSystem provides information about the state of the window manager and allows asking the window manager to change the using a more high-level interface than the NETWinInfo/NETRootInfo low-level classes. -%package imports -Summary: QML Bindings for KWindowSystem - -%description imports -QML Bindings for KWindowSystem. - %package devel Summary: KDE Access to window manager: Build Environment Requires: %{name}%{?_isa} = %{version}-%{release} @@ -80,22 +75,6 @@ allows asking the window manager to change the using a more high-level interface than the NETWinInfo/NETRootInfo low-level classes. Development files. -%prep -%autosetup -p1 -n %{rname}-%{version} - -%build -%cmake_kf6 -DBUILD_TESTING=OFF - -%kf6_build - -%install -%kf6_install - -%fdupes %{buildroot} - -%check -# Upstream autotests require a running X server; skip in buildroot - %files %license LICENSES/* %doc README.md @@ -106,8 +85,6 @@ Development files. %{_kf6_plugindir}/kf6/kwindowsystem/KF6WindowSystemX11Plugin.so %{_kf6_libdir}/libKF6WindowSystem.so.* %{_datadir}/locale/*/LC_MESSAGES/kwindowsystem6_qt.qm - -%files imports %{_kf6_qmldir}/org/kde/kwindowsystem/ %files devel diff --git a/SPECS/kglobalacceld/kglobalacceld.spec b/SPECS/kglobalacceld/kglobalacceld.spec index 51f55fdc64..7b475ddcb4 100644 --- a/SPECS/kglobalacceld/kglobalacceld.spec +++ b/SPECS/kglobalacceld/kglobalacceld.spec @@ -19,8 +19,8 @@ Summary: Global keyboard shortcut daemon License: LGPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kglobalacceld.git -#!RemoteAsset: sha256:6a3e52d957ed101e14d99e2d6830f54335017eebfaffddec8d4fcb765ddc0176 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:8127e9171e84437536e3a20ab889d33d72238ba61de9babddc1a59ce8dafe795 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kinfocenter/kinfocenter.spec b/SPECS/kinfocenter/kinfocenter.spec index e1a21a6afc..27d8ea4916 100644 --- a/SPECS/kinfocenter/kinfocenter.spec +++ b/SPECS/kinfocenter/kinfocenter.spec @@ -21,8 +21,8 @@ Summary: Utility that provides information about a computer system License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kinfocenter.git -#!RemoteAsset: sha256:567b8f9f4c806414cf417fd59aceaa37485696bd6b655aea01fffd6e2bd5b81c -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:7978653cbfcc8118cc01aa774c245c9623c8812416f2602ddf37f13410026fd0 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kmenuedit/kmenuedit.spec b/SPECS/kmenuedit/kmenuedit.spec index e8c18ded16..088378a60b 100644 --- a/SPECS/kmenuedit/kmenuedit.spec +++ b/SPECS/kmenuedit/kmenuedit.spec @@ -19,8 +19,8 @@ Summary: Provides the interface and basic tools for the KDE workspace License: GPL-2.0-only URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kmenuedit.git -#!RemoteAsset: sha256:4505d8205e2dc8d009e0bb83080088d499085c1675fbedb553b21bd2fd1f029f -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:21f32f33263d57091f51ff32d9a68ba2728249eee1b42868ac8514f737816ade +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/knighttime/knighttime.spec b/SPECS/knighttime/knighttime.spec index e043190ff0..4e25521f01 100644 --- a/SPECS/knighttime/knighttime.spec +++ b/SPECS/knighttime/knighttime.spec @@ -20,8 +20,8 @@ Summary: Day-night cycle helper library License: LGPL-2.1-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/knighttime.git -#!RemoteAsset: sha256:a12430bb7059f866bb2b2f4351965beb54b54d1502d482ac9f3b43a95fa736a3 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:70f84c9f4b45036e02d35cdff9d0d1f5cfbb5be973d3fe5af423a2dd07571918 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kpipewire/kpipewire.spec b/SPECS/kpipewire/kpipewire.spec index 43999ae6dc..2cf2636a38 100644 --- a/SPECS/kpipewire/kpipewire.spec +++ b/SPECS/kpipewire/kpipewire.spec @@ -21,8 +21,8 @@ Summary: PipeWire integration for KDE Plasma License: LGPL-2.0-only AND LGPL-3.0-only URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kpipewire.git -#!RemoteAsset: sha256:4aacdb440cb09df418228aafce12d2565a894b3a8b98f34f05aa5a6f1ebce354 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:4ed4ad8cbc3524e2ee1eeb23f52b85979434972c3289e79de5407c618b1a3c66 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kscreen/kscreen.spec b/SPECS/kscreen/kscreen.spec index 9e8ec325ad..9f80a2da3c 100644 --- a/SPECS/kscreen/kscreen.spec +++ b/SPECS/kscreen/kscreen.spec @@ -21,8 +21,8 @@ Summary: Screen management software by KDE License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kscreen.git -#!RemoteAsset: sha256:07c9a232825e1627329e77556908dfa8fec19166c3fb0e1e422fc1cd0e83c53f -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:76d68c91c8700d3a7607618944bd08bda861936d6f890004f32c227cf7736995 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kscreenlocker/kscreenlocker.spec b/SPECS/kscreenlocker/kscreenlocker.spec index 604994deb2..b37978b277 100644 --- a/SPECS/kscreenlocker/kscreenlocker.spec +++ b/SPECS/kscreenlocker/kscreenlocker.spec @@ -8,7 +8,6 @@ %define qt6_version 6.9.0 %global _smp_ncpus_max 4 -%{!?_pam_vendordir:%global _pam_vendordir %{_sysconfdir}/pam.d} # Full Plasma 6 version (e.g. 6.0.0) %{!?_plasma6_bugfix: %define _plasma6_bugfix %{version}} @@ -22,8 +21,8 @@ Summary: Library and components for secure lock screen architecture License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kscreenlocker.git -#!RemoteAsset: sha256:150d649e925a2bd3a7e1047b7e2bf5e9541632a31252fd23ae448fb7b413f33e -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:dfb84f4fe0bee107dfbd81be3873ecb7c545b1beeaa68e059caa97ef9845769d +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz Source1: kde Source2: kde-fingerprint Source3: kde-smartcard @@ -83,10 +82,9 @@ Conflicts: kscreenlocker-devel Development files for Library and components for secure lock screen architecture. %install -a -# Ship our own files to not depend on a display manager being installed (boo#1108329) -install -D -m0644 %{SOURCE1} %{buildroot}%{_pam_vendordir}/kde -install -D -m0644 %{SOURCE2} %{buildroot}%{_pam_vendordir}/kde-fingerprint -install -D -m0644 %{SOURCE3} %{buildroot}%{_pam_vendordir}/kde-smartcard +install -D -m0644 %{SOURCE1} %{buildroot}%{_pam_confdir}/kde +install -D -m0644 %{SOURCE2} %{buildroot}%{_pam_confdir}/kde-fingerprint +install -D -m0644 %{SOURCE3} %{buildroot}%{_pam_confdir}/kde-smartcard # todo: fix the name error. # Avoid illegal package names @@ -102,9 +100,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* %{_kf6_plugindir}/plasma/kcms/systemsettings/kcm_screenlocker.so %{_kf6_sharedir}/ksmserver/ %{_libexecdir}/kscreenlocker_greet -%{_pam_vendordir}/kde -%{_pam_vendordir}/kde-fingerprint -%{_pam_vendordir}/kde-smartcard +%{_pam_confdir}/kde +%{_pam_confdir}/kde-fingerprint +%{_pam_confdir}/kde-smartcard %{_kf6_libdir}/libKScreenLocker.so.* %files devel diff --git a/SPECS/ksystemstats/ksystemstats.spec b/SPECS/ksystemstats/ksystemstats.spec index 366e2d8f17..7bd51611b5 100644 --- a/SPECS/ksystemstats/ksystemstats.spec +++ b/SPECS/ksystemstats/ksystemstats.spec @@ -19,8 +19,8 @@ Summary: Plugin based system monitoring daemon License: BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/ksystemstats.git -#!RemoteAsset: sha256:c51097403d084f22fcd8534ce6f439050b58a2ac60953ace2dc7012412adce9d -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:c74e875d2c7a0867cb6002afb79d866c985995c49b5a160881e789dd09a8bcdc +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/kwin/kwin.spec b/SPECS/kwin/kwin.spec index 677ba0d90d..64ad386e6c 100644 --- a/SPECS/kwin/kwin.spec +++ b/SPECS/kwin/kwin.spec @@ -22,8 +22,8 @@ Summary: KDE Window Manager License: GPL-2.0-or-later AND GPL-3.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/kwin.git -#!RemoteAsset: sha256:fbad845044231174ca7aad45572d1713d1b6f65289d94cac24776a103f051e46 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:8c4aab73edd7b289468e52beac34e490bc43187476d8621cdde8701e6c7d5640 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/libkscreen/libkscreen.spec b/SPECS/libkscreen/libkscreen.spec index 4245c7b6fd..e86c615e19 100644 --- a/SPECS/libkscreen/libkscreen.spec +++ b/SPECS/libkscreen/libkscreen.spec @@ -21,8 +21,8 @@ Summary: Plasma screen management library License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/libkscreen.git -#!RemoteAsset: sha256:595bf06cd8b0c906800a34efd7d93e45add99f2f7e9248c0e8203a838ec861f9 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:f90b83e120fabb2881ec7706254fd05a089b167fbf49fe16631aeb34b579c160 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/libplasma/libplasma.spec b/SPECS/libplasma/libplasma.spec index 665481f53a..bb152e84fb 100644 --- a/SPECS/libplasma/libplasma.spec +++ b/SPECS/libplasma/libplasma.spec @@ -19,11 +19,14 @@ Summary: Plasma library and runtime components based upon KF6 and Qt6 License: GPL-2.0-or-later AND LGPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/libplasma -#!RemoteAsset -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:f19128fd9b96edebf44fbf9995bd1afa33ec817dfc6c52edc3b2d3f600b61fee +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF +BuildOption(conf): -DBUILD_QCH:BOOL=TRUE BuildRequires: doxygen -BuildRequires: fdupes BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} BuildRequires: pkgconfig BuildRequires: qt6-qtbase-private-devel >= %{qt6_version} @@ -91,20 +94,12 @@ BuildArch: noarch %description doc Developer Documentation files for %{name} for use with KDevelop or QtCreator. -%prep -%autosetup -p1 -n %{name}-%{version} - -%build -%cmake_kf6 -DBUILD_QCH:BOOL=TRUE - -%kf6_build - -%install -%kf6_install - -%fdupes %{buildroot} - -%find_lang %{name} --all-name --with-man +%install -a +# todo: fix the name error. +# Avoid illegal package names +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* +# Use langpacks macro to auto-split translations +%find_lang %{name} --with-qt --all-name --generate-subpackages %files -f %{name}.lang %license LICENSES/*.txt @@ -134,4 +129,4 @@ Developer Documentation files for %{name} for use with KDevelop or QtCreator. %{_kf6_qchdir}/*.tags %changelog -%{?autochangelog} +%autochangelog diff --git a/SPECS/milou/milou.spec b/SPECS/milou/milou.spec index 0780f401af..bbd64b0789 100644 --- a/SPECS/milou/milou.spec +++ b/SPECS/milou/milou.spec @@ -19,8 +19,8 @@ Summary: Dedicated search application built on top of Baloo License: GPL-2.0-or-later AND LGPL-2.1-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/milou.git -#!RemoteAsset: sha256:e81d099a02d9fb4800d997338fc8428d88c8b21070e24a8d36dc1d0a123d89dd -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:15bbb74ec3f7a64e02c1e881ee25025c0b738fbfc387e225c8064e94faecf6ae +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/openruyi-desktop-setup-kde/openruyi-desktop-setup-kde.spec b/SPECS/openruyi-desktop-setup-kde/openruyi-desktop-setup-kde.spec new file mode 100644 index 0000000000..a1427864fb --- /dev/null +++ b/SPECS/openruyi-desktop-setup-kde/openruyi-desktop-setup-kde.spec @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +Name: openruyi-desktop-setup-kde +Version: 202603 +Release: %autorelease +Summary: openRuyi default wallpaper override for KDE Plasma +License: MIT +BuildArch: noarch +URL: https://openruyi.cn/ +VCS: git:https://github.com/openRuyi-Project/openruyi-desktop-wallpapers +#!RemoteAsset: sha256:5a75e3f67a731b3c559ea7e86b6f0f3f1e93df4734b3f91b6eef4aad9862e5d2 +Source0: https://github.com/openRuyi-Project/openruyi-desktop-wallpapers/archive/refs/tags/%{version}.zip + +BuildRequires: unzip +BuildRequires: kf6-extra-cmake-modules + +Requires: plasma-workspace +Requires: plasma-desktop + +%description +Set openRuyi wallpaper as the KDE Plasma default by overriding the +upstream default image in the Next wallpaper package path. + +%prep +%autosetup -n openruyi-desktop-wallpapers-%{version} + +%install +install -d %{buildroot}%{_datadir}/openruyi-desktop-setup-kde +install -d %{buildroot}%{_kf6_sharedir}/wallpapers + +install -m 0644 %{version}/openruyi.png \ + %{buildroot}%{_datadir}/openruyi-desktop-setup-kde/openruyi.png + +install -m 0644 %{version}/* \ + %{buildroot}%{_kf6_sharedir}/wallpapers/ + +%posttrans +install -d %{_datadir}/wallpapers/Next/contents/images +install -m 0644 %{_datadir}/openruyi-desktop-setup-kde/openruyi.png %{_datadir}/wallpapers/Next/contents/images/4096x2160.png +install -m 0644 %{_datadir}/openruyi-desktop-setup-kde/openruyi.png %{_datadir}/wallpapers/Next/contents/images/5120x2880.png + +%files +%{_datadir}/openruyi-desktop-setup-kde/openruyi.png +%{_kf6_sharedir}/wallpapers/ + +%changelog +%autochangelog diff --git a/SPECS/plasma-activities-stats/plasma-activities-stats.spec b/SPECS/plasma-activities-stats/plasma-activities-stats.spec index c1502d50fa..1f73a1ca80 100644 --- a/SPECS/plasma-activities-stats/plasma-activities-stats.spec +++ b/SPECS/plasma-activities-stats/plasma-activities-stats.spec @@ -18,8 +18,8 @@ Summary: KDE Plasma Activities support License: LGPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/plasma-activities-stats -#!RemoteAsset: sha256:7f281b6840d33f934a4252fd74846913321214472fe431e5432b891f8d212a10 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:47a33b06c3c794ca48ae016ae932cf22cfa23956e7960dbf25b8a03dea22606c +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/plasma-activities/plasma-activities.spec b/SPECS/plasma-activities/plasma-activities.spec index 1d1752a5b8..cf2c691639 100644 --- a/SPECS/plasma-activities/plasma-activities.spec +++ b/SPECS/plasma-activities/plasma-activities.spec @@ -15,8 +15,8 @@ Summary: Plasma Activities support License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/plasma-activities -#!RemoteAsset: sha256:4fe5980ebcc7470216d8ce937003c0f93b9416b0b615a3f8a0488cd26ee5a511 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:9c8a6580f0b459f74de74a03898ea22988cae120f03a9d380e3bb584fdb12a90 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/plasma-desktop/plasma-desktop.spec b/SPECS/plasma-desktop/plasma-desktop.spec index 989db6d553..c47a67b96d 100644 --- a/SPECS/plasma-desktop/plasma-desktop.spec +++ b/SPECS/plasma-desktop/plasma-desktop.spec @@ -25,8 +25,8 @@ Summary: The KDE Plasma Workspace Components License: GPL-2.0-only URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/plasma-desktop.git -#!RemoteAsset: sha256:2367f12531575b2e445cd2b0fa0b756f151f10eaa27358b0966735ff400146c7 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:db3fc69388f752aa18d62f449880d7f75a2f65fab5d4bffec3d8a896459d3a4d +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake Patch0: 0001-Apply-branding-to-default-favorites.patch diff --git a/SPECS/plasma-integration/plasma-integration.spec b/SPECS/plasma-integration/plasma-integration.spec new file mode 100644 index 0000000000..ea09e10325 --- /dev/null +++ b/SPECS/plasma-integration/plasma-integration.spec @@ -0,0 +1,84 @@ +# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%define kf6_version 6.18.0 +%define qt6_version 6.9.0 + +# Full Plasma 6 version (e.g. 6.0.0) +%{!?_plasma6_bugfix: %define _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}')} + +Name: plasma-integration +Version: 6.5.5 +Release: %autorelease +Summary: Plugins responsible for better integration of Qt applications in KDE Workspace +License: GPL-2.0-or-later +URL: https://www.kde.org +VCS: git:https://invent.kde.org/plasma/plasma-integration.git +#!RemoteAsset: sha256:8fe9eefe9ca8c1957c4bf8a2a3986b56ea2f15d6c5b49b190cb8bde385ed3256 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF +BuildOption(conf): -DBUILD_QT6:BOOL=TRUE +BuildOption(conf): -DBUILD_QT5:BOOL=FALSE + +BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} +BuildRequires: pkgconfig +BuildRequires: qt6-qtbase-private-devel >= %{qt6_version} +BuildRequires: cmake(Breeze) >= %{_plasma6_bugfix} +BuildRequires: cmake(KF6ColorScheme) >= %{kf6_version} +BuildRequires: cmake(KF6Config) >= %{kf6_version} +BuildRequires: cmake(KF6ConfigWidgets) >= %{kf6_version} +BuildRequires: cmake(KF6GuiAddons) >= %{kf6_version} +BuildRequires: cmake(KF6I18n) >= %{kf6_version} +BuildRequires: cmake(KF6IconThemes) >= %{kf6_version} +BuildRequires: cmake(KF6KIO) >= %{kf6_version} +BuildRequires: cmake(KF6Notifications) >= %{kf6_version} +BuildRequires: cmake(KF6StatusNotifierItem) >= %{kf6_version} +BuildRequires: cmake(KF6WidgetsAddons) >= %{kf6_version} +BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version} +BuildRequires: cmake(KF6XmlGui) >= %{kf6_version} +BuildRequires: cmake(KWayland) >= %{_plasma6_bugfix} +BuildRequires: cmake(PlasmaWaylandProtocols) +BuildRequires: cmake(Qt6DBus) >= %{qt6_version} +BuildRequires: cmake(Qt6QuickControls2) >= %{qt6_version} +BuildRequires: cmake(Qt6WaylandClient) >= %{qt6_version} +BuildRequires: cmake(Qt6Widgets) >= %{qt6_version} +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xcb) +BuildRequires: pkgconfig(xcursor) + +Requires: fonts-noto-sans-cjk +Requires: xdg-desktop-portal-kde +#Requires: hack-fonts +Requires: qqc2-breeze-style +Requires: qt6-qtbase-private-devel >= %{qt6_version} + +Provides: plasma-integration-plugin = %{version}-%{release} + +%description +Plasma Integration is a set of plugins responsible for better integration of Qt +applications when running on a KDE Plasma workspace. + +Applications do not need to link to this directly. + +%install -a +# todo: fix the name error. +# Avoid illegal package names +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* +# Use langpacks macro to auto-split translations +%find_lang %{name} --with-qt --all-name --generate-subpackages + +%files -f %{name}.lang +%license LICENSES/* +%dir %{_kf6_plugindir}/platformthemes +%{_kf6_plugindir}/platformthemes/KDEPlasmaPlatformTheme6.so + +%changelog +%autochangelog diff --git a/SPECS/plasma-nm/plasma-nm.spec b/SPECS/plasma-nm/plasma-nm.spec index d078b9249c..6d25e7351b 100644 --- a/SPECS/plasma-nm/plasma-nm.spec +++ b/SPECS/plasma-nm/plasma-nm.spec @@ -21,8 +21,8 @@ Summary: Plasma applet written in QML for managing network connections License: (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only) URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/plasma-nm.git -#!RemoteAsset: sha256:fb096f1bc85f5eb1ee8ae80df044479860987c8bcecd4ab7120fed253698c2a0 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:de4e18c227b6481c6d968cce2737ef3c7dc3b6a4ab7cca905e8077c9401abcef +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/plasma-systemmonitor/plasma-systemmonitor.spec b/SPECS/plasma-systemmonitor/plasma-systemmonitor.spec index 1209ce096b..e03683df3a 100644 --- a/SPECS/plasma-systemmonitor/plasma-systemmonitor.spec +++ b/SPECS/plasma-systemmonitor/plasma-systemmonitor.spec @@ -19,8 +19,8 @@ Summary: An application for monitoring system resources License: GPL-3.0-only URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/plasma-systemmonitor.git -#!RemoteAsset: sha256:8be93fa95d510f2b53ac8a86f7e66aa10e5480af3632e419689bdb5ad33ef1fe -Source0: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:311bc4434b57869da0ae4f737697d73327172729da8eb4d9947f5aa9400c0f39 +Source0: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/plasma-workspace/plasma-workspace.spec b/SPECS/plasma-workspace/plasma-workspace.spec index 3a03974755..8863283aea 100644 --- a/SPECS/plasma-workspace/plasma-workspace.spec +++ b/SPECS/plasma-workspace/plasma-workspace.spec @@ -26,8 +26,8 @@ Summary: The KDE Plasma Workspace Components License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/plasma-workspace.git -#!RemoteAsset: sha256:29b0763bbbdd9e27416dce1fd939242d2588feef36c4cbae941c31964d531fd4 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:102ef093fb21e73b4a3f11edcc6934c5f1763366a31e5c049afb719840a4323f +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz Source1: sddm.conf Source2: waitforkded.conf BuildSystem: cmake diff --git a/SPECS/plasma5support/plasma5support.spec b/SPECS/plasma5support/plasma5support.spec index 359de79dd9..585f1be962 100644 --- a/SPECS/plasma5support/plasma5support.spec +++ b/SPECS/plasma5support/plasma5support.spec @@ -20,8 +20,8 @@ Summary: KF6 Porting aid License: LGPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/plasma5support -#!RemoteAsset: sha256:1a2f3e7ebb85e2a1c54c3aa32b712e8f285289758ba2c8236ec0dc66dd8c5cfd -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:20f28a6e10b9909cc6e4c28eaa0c3ccbaf5e2ab92733f62c12bebabce3032606 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/polkit-kde-agent-1/polkit-kde-agent-1.spec b/SPECS/polkit-kde-agent-1/polkit-kde-agent-1.spec new file mode 100644 index 0000000000..04f539b081 --- /dev/null +++ b/SPECS/polkit-kde-agent-1/polkit-kde-agent-1.spec @@ -0,0 +1,68 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%define kf6_version 6.18.0 +%define qt6_version 6.9.0 + +Name: polkit-kde-agent-1 +Version: 6.5.5 +Release: %autorelease +Summary: PolicyKit authentication agent for Plasma +License: GPL-2.0-only AND LGPL-2.1-or-later +URL: https://www.kde.org/ +VCS: git:https://invent.kde.org/plasma/polkit-kde-agent-1.git +#!RemoteAsset: sha256:bd6f23462478e11808591eff698b8c026779379ffcc7fc68f3769d060d16ca4a +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF + +BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} +BuildRequires: systemd-rpm-macros +BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version} +BuildRequires: cmake(KF6Crash) >= %{kf6_version} +BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version} +BuildRequires: cmake(KF6I18n) >= %{kf6_version} +BuildRequires: cmake(KF6IconThemes) >= %{kf6_version} +BuildRequires: cmake(KF6Notifications) >= %{kf6_version} +BuildRequires: cmake(KF6WidgetsAddons) >= %{kf6_version} +BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version} +BuildRequires: cmake(PolkitQt6-1) >= 0.103.0 +BuildRequires: cmake(Qt6Core) >= %{qt6_version} +BuildRequires: cmake(Qt6DBus) >= %{qt6_version} +BuildRequires: cmake(Qt6Qml) >= %{qt6_version} +BuildRequires: cmake(Qt6Quick) >= %{qt6_version} +BuildRequires: cmake(Qt6Widgets) >= %{qt6_version} + +%description +Provides Policy Kit Authentication Agent that nicely fits Plasma. + +%install -a +# todo: fix the name error. +# Avoid illegal package names +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* +# Use langpacks macro to auto-split translations +%find_lang %{name} --with-qt --all-name --generate-subpackages + +%post +%systemd_user_post plasma-polkit-agent.service + +%preun +%systemd_user_preun plasma-polkit-agent.service + +%postun +%systemd_user_postun plasma-polkit-agent.service + +%files -f %{name}.lang +%license LICENSES/* +%{_kf6_applicationsdir}/org.kde.polkit-kde-authentication-agent-1.desktop +%{_kf6_configdir}/autostart/polkit-kde-authentication-agent-1.desktop +%{_kf6_notificationsdir}/polkit-kde-authentication-agent-1.notifyrc +%{_libexecdir}/polkit-kde-authentication-agent-1 +%{_userunitdir}/plasma-polkit-agent.service + +%changelog +%autochangelog diff --git a/SPECS/powerdevil/powerdevil.spec b/SPECS/powerdevil/powerdevil.spec new file mode 100644 index 0000000000..8f815bc783 --- /dev/null +++ b/SPECS/powerdevil/powerdevil.spec @@ -0,0 +1,148 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%define kf6_version 6.18.0 +%define qt6_version 6.9.0 + +# Full Plasma 6 version (e.g. 6.0.0) +%{!?_plasma6_bugfix: %define _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}')} + +Name: powerdevil +Version: 6.5.5 +Release: %autorelease +Summary: KDE Power Management module +License: GPL-2.0-or-later +URL: https://www.kde.org +VCS: git:https://invent.kde.org/plasma/powerdevil.git +#!RemoteAsset: sha256:fa5d19ebf8be6ec205a3f5c164b0d3142327ec48042d62f58dbdcbcf274d3778 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF + +BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} +BuildRequires: libcap-progs +BuildRequires: pkgconfig +BuildRequires: docbook-xsl +BuildRequires: docbook-dtds +BuildRequires: qt6-qtbase-private-devel >= %{qt6_version} +BuildRequires: qt6-qtwayland-devel >= %{qt6_version} +BuildRequires: systemd-rpm-macros +BuildRequires: cmake(KF6Auth) >= %{kf6_version} +BuildRequires: cmake(KF6Config) >= %{kf6_version} +BuildRequires: cmake(KF6Crash) >= %{kf6_version} +BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version} +BuildRequires: cmake(KF6DocTools) >= %{kf6_version} +BuildRequires: cmake(KF6GlobalAccel) >= %{kf6_version} +BuildRequires: cmake(KF6I18n) >= %{kf6_version} +BuildRequires: cmake(KF6IdleTime) >= %{kf6_version} +BuildRequires: cmake(KF6KCMUtils) >= %{kf6_version} +BuildRequires: cmake(KF6KIO) >= %{kf6_version} +BuildRequires: cmake(KF6KirigamiPlatform) >= %{kf6_version} +BuildRequires: cmake(KF6Notifications) >= %{kf6_version} +BuildRequires: cmake(KF6NotifyConfig) >= %{kf6_version} +BuildRequires: cmake(KF6Runner) >= %{_plasma6_bugfix} +BuildRequires: cmake(KF6Screen) >= %{_plasma6_bugfix} +BuildRequires: cmake(KF6Solid) >= %{kf6_version} +BuildRequires: cmake(KF6XmlGui) >= %{kf6_version} +BuildRequires: cmake(LibKWorkspace) >= %{_plasma6_bugfix} +BuildRequires: cmake(PlasmaActivities) >= %{_plasma6_bugfix} +BuildRequires: cmake(PlasmaWaylandProtocols) +BuildRequires: cmake(QCoro6) +BuildRequires: cmake(Qt6DBus) >= %{qt6_version} +BuildRequires: cmake(Qt6WaylandClient) >= %{qt6_version} +BuildRequires: cmake(Qt6Widgets) >= %{qt6_version} +BuildRequires: pkgconfig(ddcutil) +BuildRequires: pkgconfig(libcap) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-protocols) +BuildRequires: pkgconfig(xcb) +BuildRequires: pkgconfig(xcb-dpms) +BuildRequires: pkgconfig(xcb-randr) + +Requires: kf6-kidletime-plugins +Requires: kf6-knotifications-imports +%requires_ge plasma-workspace-libs + +Recommends: upower + +%description +KDE Power Management module. Provides kded daemon, DBus helper and KCM for +configuring Power settings. + +%install -a +# todo: fix the name error. +# Avoid illegal package names +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* +rm -rf $RPM_BUILD_ROOT%{_mandir}/*@* +rm -rf $RPM_BUILD_ROOT%{_kf6_htmldir}/*@* +# Use langpacks macro to auto-split translations +%find_lang %{name} --with-qt --all-name --with-html --generate-subpackages + +%post +%systemd_user_post plasma-powerdevil.service + +%preun +%systemd_user_preun plasma-powerdevil.service + +%postun +%systemd_user_postun plasma-powerdevil.service + +%files -f %{name}.lang +%license COPYING* +%{_kf6_applicationsdir}/kcm_mobile_power.desktop +%{_kf6_applicationsdir}/kcm_powerdevilprofilesconfig.desktop +%{_kf6_configdir}/autostart/powerdevil.desktop +%{_kf6_dbuspolicydir}/org.kde.powerdevil.backlighthelper.conf +%{_kf6_dbuspolicydir}/org.kde.powerdevil.chargethresholdhelper.conf +%{_kf6_dbuspolicydir}/org.kde.powerdevil.discretegpuhelper.conf +%{_kf6_dbuspolicydir}/org.kde.powerdevil.wakeupsourcehelper.conf +%{_kf6_debugdir}/batterymonitor.categories +%{_kf6_debugdir}/powerdevil.categories +%{_kf6_debugdir}/brightness.categories +%{_kf6_libdir}/libpowerdevilcore.so +%{_kf6_libdir}/libpowerdevilcore.so.* +%{_kf6_libexecdir}/kauth/backlighthelper +%{_kf6_libexecdir}/kauth/chargethresholdhelper +%{_kf6_libexecdir}/kauth/discretegpuhelper +%{_kf6_libexecdir}/kauth/wakeupsourcehelper +%{_kf6_notificationsdir}/powerdevil.notifyrc +%dir %{_kf6_plugindir}/kf6/krunner +%{_kf6_plugindir}/kf6/krunner/krunner_powerdevil.so +%{_kf6_plugindir}/plasma/applets/org.kde.plasma.battery.so +%{_kf6_plugindir}/plasma/applets/org.kde.plasma.brightness.so +%{_kf6_plugindir}/plasma/kcms/systemsettings/kcm_mobile_power.so +%{_kf6_plugindir}/plasma/kcms/systemsettings/kcm_powerdevilprofilesconfig.so +%dir %{_kf6_plugindir}/powerdevil/ +%dir %{_kf6_plugindir}/powerdevil/action +%{_kf6_plugindir}/powerdevil/action/powerdevil_brightnesscontrolaction.so +%{_kf6_plugindir}/powerdevil/action/powerdevil_dimdisplayaction.so +%{_kf6_plugindir}/powerdevil/action/powerdevil_dpmsaction.so +%{_kf6_plugindir}/powerdevil/action/powerdevil_handlebuttoneventsaction.so +%{_kf6_plugindir}/powerdevil/action/powerdevil_keyboardbrightnesscontrolaction.so +%{_kf6_plugindir}/powerdevil/action/powerdevil_powerprofileaction.so +%{_kf6_plugindir}/powerdevil/action/powerdevil_runscriptaction.so +%{_kf6_plugindir}/powerdevil/action/powerdevil_screenbrightnesscontrolaction.so +%{_kf6_plugindir}/powerdevil/action/powerdevil_suspendsessionaction.so +%dir %{_kf6_qmldir}/org/kde/plasma/private/ +%{_kf6_qmldir}/org/kde/plasma/private/batterymonitor/ +%{_kf6_qmldir}/org/kde/plasma/private/brightnesscontrolplugin/ +%{_kf6_sharedir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service +%{_kf6_sharedir}/dbus-1/system-services/org.kde.powerdevil.chargethresholdhelper.service +%{_kf6_sharedir}/dbus-1/system-services/org.kde.powerdevil.discretegpuhelper.service +%{_kf6_sharedir}/dbus-1/system-services/org.kde.powerdevil.wakeupsourcehelper.service +%{_kf6_sharedir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy +%{_kf6_sharedir}/polkit-1/actions/org.kde.powerdevil.chargethresholdhelper.policy +%{_kf6_sharedir}/polkit-1/actions/org.kde.powerdevil.discretegpuhelper.policy +%{_kf6_sharedir}/polkit-1/actions/org.kde.powerdevil.wakeupsourcehelper.policy +%{_libexecdir}/org_kde_powerdevil +%{_userunitdir}/plasma-powerdevil.service + +%changelog +%autochangelog diff --git a/SPECS/qqc2-breeze-style/qqc2-breeze-style.spec b/SPECS/qqc2-breeze-style/qqc2-breeze-style.spec new file mode 100644 index 0000000000..ed380d8a45 --- /dev/null +++ b/SPECS/qqc2-breeze-style/qqc2-breeze-style.spec @@ -0,0 +1,68 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%define kf6_version 6.18.0 +%define qt6_version 6.9.0 + +Name: qqc2-breeze-style +Version: 6.5.5 +Release: %autorelease +Summary: Breeze Style for Qt Quick +License: LGPL-2.1-or-later +URL: https://www.kde.org +VCS: git:https://invent.kde.org/plasma/qqc2-breeze-style.git +#!RemoteAsset: sha256:7971af2289da682c16e810266b3f640a1203bbc1b0c7360404fb230e7b308396 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF + +BuildRequires: kf6-extra-cmake-modules +BuildRequires: pkgconfig +BuildRequires: cmake(KF6ColorScheme) >= %{kf6_version} +BuildRequires: cmake(KF6Config) >= %{kf6_version} +BuildRequires: cmake(KF6GuiAddons) >= %{kf6_version} +BuildRequires: cmake(KF6IconThemes) >= %{kf6_version} +BuildRequires: cmake(KF6KirigamiPlatform) >= %{kf6_version} +BuildRequires: cmake(KF6QuickCharts) >= %{kf6_version} +BuildRequires: cmake(Qt6Core) >= %{qt6_version} +BuildRequires: cmake(Qt6DBus) >= %{qt6_version} +BuildRequires: cmake(Qt6Gui) >= %{qt6_version} +BuildRequires: cmake(Qt6Qml) >= %{qt6_version} +BuildRequires: cmake(Qt6Quick) >= %{qt6_version} +BuildRequires: cmake(Qt6QuickControls2) >= %{qt6_version} +BuildRequires: cmake(Qt6QuickTemplates2) >= %{qt6_version} +BuildRequires: pkgconfig(x11) + +Requires: kf6-kirigami >= %{kf6_version} +Requires: qt6-qtdeclarative >= %{qt6_version} + +%description +A Qt Quick Controls 2 style engine that uses the desktop style to draw controls +with QStyle. + +%package devel +Summary: Development Files for the Breeze Qt Quick Controls 2 Style +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: kf6-extra-cmake-modules >= %{kf6_version} + +%description devel +This file contains cmake files to be used by projects that depend on +qqc2-breeze-style. +Usually not needed as it is only a runtime dependency. + +%files +%license LICENSES/* +%dir %{_kf6_plugindir}/kf6/kirigami/ +%dir %{_kf6_plugindir}/kf6/kirigami/platform +%{_kf6_qmldir}/org/kde/breeze/ +%{_kf6_plugindir}/kf6/kirigami/platform/org.kde.breeze.so + +%files devel +%{_kf6_cmakedir}/QQC2BreezeStyle/ + +%changelog +%autochangelog diff --git a/SPECS/sddm-kcm/sddm-kcm.spec b/SPECS/sddm-kcm/sddm-kcm.spec new file mode 100644 index 0000000000..b593d55291 --- /dev/null +++ b/SPECS/sddm-kcm/sddm-kcm.spec @@ -0,0 +1,63 @@ +# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%define kf6_version 6.18.0 +%define qt6_version 6.9.0 + +Name: sddm-kcm +Version: 6.5.5 +Release: %autorelease +Summary: A sddm control module for KDE +License: GPL-2.0-only +URL: https://www.kde.org +VCS: git:https://invent.kde.org/plasma/sddm-kcm.git +#!RemoteAsset: sha256:4026abbbba4ebaa654bca2a52dbc5f07519f69684e5c94f7d91644888f307570 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF + +BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} +BuildRequires: pkgconfig +BuildRequires: cmake(KF6Archive) >= %{kf6_version} +BuildRequires: cmake(KF6Auth) >= %{kf6_version} +BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version} +BuildRequires: cmake(KF6I18n) >= %{kf6_version} +BuildRequires: cmake(KF6KCMUtils) >= %{kf6_version} +BuildRequires: cmake(KF6KIO) >= %{kf6_version} +BuildRequires: cmake(KF6NewStuff) >= %{kf6_version} +BuildRequires: cmake(Qt6Core) >= %{qt6_version} +BuildRequires: cmake(Qt6Gui) >= %{qt6_version} +BuildRequires: cmake(Qt6Quick) >= %{qt6_version} +BuildRequires: cmake(Qt6QuickWidgets) >= %{qt6_version} +BuildRequires: cmake(Qt6Widgets) >= %{qt6_version} + +Supplements: (sddm and plasma-workspace) + +%description +SDDM control module for Plasma. It provides a graphical frontend for the SDDM. + +%install -a +# todo: fix the name error. +# Avoid illegal package names +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* +# Use langpacks macro to auto-split translations +%find_lang %{name} --with-qt --all-name --generate-subpackages + +%files -f %{name}.lang +%doc README.md +%license LICENSES/* +%{_kf6_bindir}/sddmthemeinstaller +%{_kf6_applicationsdir}/kcm_sddm.desktop +%{_kf6_dbuspolicydir}/org.kde.kcontrol.kcmsddm.conf +%{_kf6_knsrcfilesdir}/sddmtheme.knsrc +%{_kf6_plugindir}/plasma/kcms/systemsettings/kcm_sddm.so +%{_kf6_sharedir}/dbus-1/system-services/org.kde.kcontrol.kcmsddm.service +%{_kf6_sharedir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy +%{_kf6_libexecdir}/kauth/kcmsddm_authhelper + +%changelog +%autochangelog diff --git a/SPECS/systemsettings/systemsettings.spec b/SPECS/systemsettings/systemsettings.spec index e3b5e1e1ac..9503f63d44 100644 --- a/SPECS/systemsettings/systemsettings.spec +++ b/SPECS/systemsettings/systemsettings.spec @@ -21,8 +21,8 @@ Summary: KDE's control center License: GPL-2.0-or-later URL: https://www.kde.org VCS: git:https://invent.kde.org/plasma/systemsettings.git -#!RemoteAsset: sha256:8677fe07e66bad787e7ef43e935296c201973a4ec9505ba00d6f3afe4b1cc2c6 -Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz +#!RemoteAsset: sha256:687e4fde851f769c04f8366d94a0fc3176364551e1f2dc4e9e4471698da2e430 +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildSystem: cmake BuildOption(conf): -DBUILD_TESTING=OFF diff --git a/SPECS/xdg-desktop-portal-kde/xdg-desktop-portal-kde.spec b/SPECS/xdg-desktop-portal-kde/xdg-desktop-portal-kde.spec new file mode 100644 index 0000000000..c52a08d2e3 --- /dev/null +++ b/SPECS/xdg-desktop-portal-kde/xdg-desktop-portal-kde.spec @@ -0,0 +1,103 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +# Internal QML import +%global __requires_exclude qt6qmlimport\\(org\\.kde\\.xdgdesktopportal.* + +%define kf6_version 6.18.0 +%define qt6_version 6.9.0 + +# 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}')} + +Name: xdg-desktop-portal-kde +Version: 6.5.5 +Release: %autorelease +Summary: QT/KF6 backend for xdg-desktop-portal +License: LGPL-2.1-or-later +URL: https://www.kde.org +VCS: git:https://invent.kde.org/plasma/xdg-desktop-portal-kde.git +#!RemoteAsset: sha256:d2798d6946a46ba75f16bfaa82b97a1c4e62254d527b0aa90119182b9d69c02a +Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz +BuildSystem: cmake + +BuildOption(conf): -DBUILD_TESTING=OFF + +BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} +BuildRequires: pkgconfig +BuildRequires: qt6-qtbase-private-devel >= %{qt6_version} +BuildRequires: qt6-qtbase-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 >= %{kf6_version} +Requires: kpipewire >= %{_plasma6_bugfix} +Requires: plasma-workspace >= %{_plasma6_bugfix} +Requires: xdg-desktop-portal + +%description +A Qt/KF backend implementation for xdg-desktop-portal + +%install -a +# todo: fix the name error. +# Avoid illegal package names +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* +rm -rf $RPM_BUILD_ROOT%{_mandir}/*@* +# Use langpacks macro to auto-split translations +%find_lang %{name} --with-qt --with-man --all-name --generate-subpackages + +%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 -f %{name}.lang +%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 + +%changelog +%autochangelog