diff --git a/0001-fix-build-error-of-5.27.6.patch b/0001-fix-build-error-of-5.27.6.patch deleted file mode 100644 index 9726a6c..0000000 --- a/0001-fix-build-error-of-5.27.6.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 313e1a6cff0c2e4950457b1672e135b4ac7467b3 Mon Sep 17 00:00:00 2001 -From: peijiankang -Date: Wed, 16 Aug 2023 16:47:08 +0800 -Subject: [PATCH] fix build error of 5.27.6 - ---- - src/config.cpp | 11 +++++++++++ - src/config.h | 1 + - src/output.h | 1 + - 3 files changed, 13 insertions(+) - -diff --git a/src/config.cpp b/src/config.cpp -index 6e6c9f1..f116f61 100644 ---- a/src/config.cpp -+++ b/src/config.cpp -@@ -43,6 +43,17 @@ public: - return iter == outputs.constEnd() ? KScreen::OutputPtr() : iter.value(); - } - -+ void onPrimaryOutputChanged() -+ { -+ const KScreen::OutputPtr output(qobject_cast(sender()), [](void *) {}); -+ Q_ASSERT(output); -+ if (output->isPrimary()) { -+ q->setPrimaryOutput(output); -+ } else { -+ q->setPrimaryOutput(findPrimaryOutput()); -+ } -+ } -+ - // output priorities may be inconsistent after this call - OutputList::Iterator removeOutput(OutputList::Iterator iter) - { -diff --git a/src/config.h b/src/config.h -index 396b6cc..9346153 100644 ---- a/src/config.h -+++ b/src/config.h -@@ -264,6 +264,7 @@ public: - Q_SIGNALS: - void outputAdded(const KScreen::OutputPtr &output); - void outputRemoved(int outputId); -+ void primaryOutputChanged(const KScreen::OutputPtr &output); - void prioritiesChanged(); - - private: -diff --git a/src/output.h b/src/output.h -index 72b14ee..29b3138 100755 ---- a/src/output.h -+++ b/src/output.h -@@ -10,6 +10,7 @@ - - #include "kscreen_export.h" - #include "types.h" -+#include "mode.h" - - #include - #include --- -2.33.0 - diff --git a/libkscreen-5.27.10.tar.xz b/libkscreen-5.27.10.tar.xz new file mode 100644 index 0000000..2a73964 Binary files /dev/null and b/libkscreen-5.27.10.tar.xz differ diff --git a/libkscreen-5.27.6.tar.xz b/libkscreen-5.27.6.tar.xz deleted file mode 100644 index b146073..0000000 Binary files a/libkscreen-5.27.6.tar.xz and /dev/null differ diff --git a/libkscreen-qt5.spec b/libkscreen-qt5.spec index 745b986..cd6a32b 100644 --- a/libkscreen-qt5.spec +++ b/libkscreen-qt5.spec @@ -2,8 +2,8 @@ Name: libkscreen-qt5 Summary: KDE display configuration library -Version: 5.27.6 -Release: 2 +Version: 5.27.10 +Release: 1 License: GPLv2+ URL: https://invent.kde.org/plasma/%{base_name} @@ -11,7 +11,6 @@ URL: https://invent.kde.org/plasma/%{base_name} %global majmin %majmin_ver_kf5 %global stable %stable_kf5 Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{base_name}-%{version}.tar.xz -Patch01: 0001-fix-build-error-of-5.27.6.patch # filter plugin provides %global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$ @@ -95,6 +94,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %{_kf5_archdatadir}/mkspecs/modules/qt_KScreen.pri %changelog +* Mon Jan 08 2024 zhangxianting - 5.27.10-1 +- update to upstream version 5.27.10 + * Tue Aug 15 2023 peijiankang - 5.27.6-2 - add 0001-fix-build-error-of-5.27.6.patch