Init package

This commit is contained in:
misaka00251 2022-09-07 21:26:42 +08:00
parent 918eff3d58
commit 1e15d26af1
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26
5 changed files with 128 additions and 0 deletions

View File

@ -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);
}

View File

@ -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();
}

BIN
khotkeys-5.25.5.tar.xz Normal file

Binary file not shown.

88
khotkeys.spec Normal file
View File

@ -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 <misaka00251@misakanet.cn> - 5.25.5-1
- Init package

4
khotkeys.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: KDE/khotkeys
tag_prefix: "^v"
separator: "."