diff --git a/khotkeys-5.21.90-qdbus-qt5.patch b/khotkeys-5.21.90-qdbus-qt5.patch new file mode 100644 index 0000000..b018f84 --- /dev/null +++ b/khotkeys-5.21.90-qdbus-qt5.patch @@ -0,0 +1,24 @@ +diff -up khotkeys-5.21.90/libkhotkeysprivate/actions/dbus_action.cpp.101 khotkeys-5.21.90/libkhotkeysprivate/actions/dbus_action.cpp +--- khotkeys-5.21.90/libkhotkeysprivate/actions/dbus_action.cpp.101 2021-05-15 08:36:12.713568004 -0500 ++++ khotkeys-5.21.90/libkhotkeysprivate/actions/dbus_action.cpp 2021-05-15 08:37:00.916992469 -0500 +@@ -106,7 +106,7 @@ void DBusAction::execute() + } + qDebug() << "D-Bus call:" << _application << ":" << _object << ":" << _function << ":" << args_list; + KProcess proc; +- proc << "qdbus" << _application << _object << _function << args_list; ++ proc << "qdbus-qt5" << _application << _object << _function << args_list; + proc.startDetached(); + } + +diff -up khotkeys-5.21.90/test/main.cpp.101 khotkeys-5.21.90/test/main.cpp +--- khotkeys-5.21.90/test/main.cpp.101 2021-05-13 08:07:53.000000000 -0500 ++++ khotkeys-5.21.90/test/main.cpp 2021-05-15 08:36:12.714568013 -0500 +@@ -16,7 +16,7 @@ int main(int argc, char **argv) + if (reply.value().contains("khotkeys")) { + qDebug() << "The khotkeys module is already running."; + qDebug() << "To unload it run:"; +- qDebug() << "qdbus org.kde.kded5 /kded org.kde.kded5.unloadModule khotkeys"; ++ qDebug() << "qdbus-qt5 org.kde.kded5 /kded org.kde.kded5.unloadModule khotkeys"; + exit(-1); + } + diff --git a/khotkeys-5.21.90-qdbusviewer-qt5.patch b/khotkeys-5.21.90-qdbusviewer-qt5.patch new file mode 100644 index 0000000..7f267c5 --- /dev/null +++ b/khotkeys-5.21.90-qdbusviewer-qt5.patch @@ -0,0 +1,12 @@ +diff -up khotkeys-5.21.90/kcm_hotkeys/actions/dbus_action_widget.cpp.100 khotkeys-5.21.90/kcm_hotkeys/actions/dbus_action_widget.cpp +--- khotkeys-5.21.90/kcm_hotkeys/actions/dbus_action_widget.cpp.100 2021-05-15 08:34:27.568642146 -0500 ++++ khotkeys-5.21.90/kcm_hotkeys/actions/dbus_action_widget.cpp 2021-05-15 08:35:11.083025319 -0500 +@@ -79,7 +79,7 @@ bool DbusActionWidget::isChanged() const + + void DbusActionWidget::launchDbusBrowser() const + { +- auto *job = new KIO::CommandLauncherJob("qdbusviewer"); ++ auto *job = new KIO::CommandLauncherJob("qdbusviewer-qt5"); + job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, window())); + job->start(); + } diff --git a/khotkeys-5.25.5.tar.xz b/khotkeys-5.25.5.tar.xz new file mode 100644 index 0000000..735cfc2 Binary files /dev/null and b/khotkeys-5.25.5.tar.xz differ diff --git a/khotkeys.spec b/khotkeys.spec new file mode 100644 index 0000000..e19d751 --- /dev/null +++ b/khotkeys.spec @@ -0,0 +1,88 @@ +Name: khotkeys +Version: 5.25.5 +Release: 1 +Summary: Application to configure hotkeys in KDE +License: GPLv2+ +URL: https://invent.kde.org/plasma/%{name} + +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz + +Patch100: khotkeys-5.21.90-qdbusviewer-qt5.patch +Patch101: khotkeys-5.21.90-qdbus-qt5.patch + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-kcmutils-devel +BuildRequires: kf5-kdbusaddons-devel +BuildRequires: kf5-kdelibs4support-devel +BuildRequires: kf5-kdoctools-devel +BuildRequires: kf5-kglobalaccel-devel +BuildRequires: kf5-ki18n-devel +BuildRequires: kf5-kio-devel +BuildRequires: kf5-kxmlgui-devel +BuildRequires: kf5-plasma-devel +BuildRequires: kf5-rpm-macros +BuildRequires: libX11-devel +BuildRequires: libXtst-devel +BuildRequires: plasma-workspace-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtx11extras-devel +Requires: qt5-qttools +Recommends: qt5-qdbusviewer +Conflicts: kde-workspace < 4.11.15-3 +Obsoletes: khotkeys-libs < 5.0.0 + +%description +An advanced editor component which is used in numerous KDE applications +requiring a text editing component. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd +%make_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang khotkeys --with-html + + +%ldconfig_scriptlets + +%files -f khotkeys.lang +%license LICENSES/* +%{_kf5_libdir}/libkhotkeysprivate.so.* +%{_kf5_qtplugindir}/kcm_hotkeys.so +%{_kf5_plugindir}/kded/khotkeys.so +%{_kf5_datadir}/kservices5/khotkeys.desktop +%{_datadir}/khotkeys/ + +%files devel +%{_datadir}/dbus-1/interfaces/org.kde.khotkeys.xml +%{_libdir}/cmake/KHotKeysDBusInterface/ + + +%changelog +* Wed Jul 20 2022 misaka00251 - 5.25.5-1 +- Init package diff --git a/khotkeys.yaml b/khotkeys.yaml new file mode 100644 index 0000000..c1cc149 --- /dev/null +++ b/khotkeys.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/khotkeys +tag_prefix: "^v" +separator: "."