Create kglobalacceld6.spec
This commit is contained in:
105
kglobalacceld6/kglobalacceld6.spec
Normal file
105
kglobalacceld6/kglobalacceld6.spec
Normal file
@@ -0,0 +1,105 @@
|
||||
|
||||
%define kf6_version 6.18.0
|
||||
%define qt6_version 6.9.0
|
||||
|
||||
%define rname kglobalacceld
|
||||
|
||||
# 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: kglobalacceld6
|
||||
Version: 6.5.5
|
||||
Release: 0
|
||||
Summary: Global keyboard shortcut daemon
|
||||
License: LGPL-2.0-or-later
|
||||
URL: https://www.kde.org
|
||||
Source: https://download.kde.org/unstable/plasma/%{version}/%{rname}-%{version}.tar.xz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: qt6-gui-private-devel >= %{qt6_version}
|
||||
BuildRequires: cmake(KF6Config) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6Crash) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6GlobalAccel) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6JobWidgets) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6Service) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version}
|
||||
BuildRequires: cmake(Qt6DBus) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6Gui) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(xcb)
|
||||
BuildRequires: pkgconfig(xcb-keysyms)
|
||||
BuildRequires: pkgconfig(xcb-record)
|
||||
BuildRequires: pkgconfig(xcb-xkb)
|
||||
Provides: kglobalaccel5 = %{version}
|
||||
Obsoletes: kglobalaccel5 < %{version}
|
||||
|
||||
%description
|
||||
Daemon providing Global Keyboard Shortcut (Accelerator) functionality.
|
||||
|
||||
%package -n libKGlobalAccelD6-0
|
||||
Summary: KGlobalAccelD library
|
||||
Recommends: kglobalacceld6
|
||||
|
||||
%description -n libKGlobalAccelD6-0
|
||||
KGlobalAcceld is a daemon providing Global Keyboard Shortcut (Accelerator)
|
||||
functionality.
|
||||
This package provides the kglobalacceld library.
|
||||
|
||||
%package devel
|
||||
Summary: Global keyboard shortcut daemon: Build Environment
|
||||
Requires: libKGlobalAccelD6-0 >= %{_plasma6_bugfix}
|
||||
Requires: cmake(Qt6DBus) >= %{qt6_version}
|
||||
Requires: cmake(Qt6Widgets) >= %{qt6_version}
|
||||
|
||||
%description devel
|
||||
Daemon providing Global Keyboard Shortcut (Accelerator) functionality.
|
||||
Development files.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{rname}-%{version}
|
||||
|
||||
%build
|
||||
%cmake_kf6
|
||||
|
||||
%kf6_build
|
||||
|
||||
%install
|
||||
%kf6_install
|
||||
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%post
|
||||
%{systemd_user_post plasma-kglobalaccel.service}
|
||||
|
||||
%preun
|
||||
%{systemd_user_preun plasma-kglobalaccel.service}
|
||||
|
||||
%postun
|
||||
# TODO? Drop? systemd_user_postun is a stub in TW
|
||||
%{systemd_user_postun plasma-kglobalaccel.service}
|
||||
|
||||
%ldconfig_scriptlets -n libKGlobalAccelD6-0
|
||||
|
||||
%files
|
||||
%{_kf6_configdir}/autostart/kglobalacceld.desktop
|
||||
%{_kf6_debugdir}/kglobalacceld.categories
|
||||
%dir %{_kf6_plugindir}/org.kde.kglobalacceld.platforms
|
||||
%{_kf6_plugindir}/org.kde.kglobalacceld.platforms/KGlobalAccelDXcb.so
|
||||
%{_libexecdir}/kglobalacceld
|
||||
%{_userunitdir}/plasma-kglobalaccel.service
|
||||
|
||||
%files -n libKGlobalAccelD6-0
|
||||
%license LICENSES/*
|
||||
%{_kf6_libdir}/libKGlobalAccelD.so.*
|
||||
|
||||
%files devel
|
||||
%{_kf6_cmakedir}/KGlobalAccelD/
|
||||
%{_includedir}/KGlobalAccelD/
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user