Updated spec to enable co-installation with KF6

epel9
Steve Cossette 1 year ago
parent 0747a03e7d
commit 93fe0aeffa

@ -2,7 +2,7 @@
Name: kf5-%{framework} Name: kf5-%{framework}
Version: 5.110.0 Version: 5.110.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 3 integration module for global shortcuts Summary: KDE Frameworks 5 Tier 3 integration module for global shortcuts
License: LGPLv2+ License: LGPLv2+
@ -58,8 +58,12 @@ developing applications that use %{name}.
%build %build
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
# Added flag is for co-instability with KF6
%cmake_kf5 -DBUILD_RUNTIME=OFF
%else
%cmake_kf5 %cmake_kf5
%endif
%cmake_build %cmake_build
@ -79,19 +83,25 @@ rm -fv %{buildroot}%{_prefix}/lib/systemd/user/plasma-kglobalaccel.service
%doc README.md %doc README.md
%license LICENSES/*.txt %license LICENSES/*.txt
%{_kf5_datadir}/qlogging-categories5/%{framework}* %{_kf5_datadir}/qlogging-categories5/%{framework}*
%if ! 0%{?fedora} >= 40 || !0%{?rhel} > 10
%{_kf5_bindir}/kglobalaccel5 %{_kf5_bindir}/kglobalaccel5
%{_kf5_datadir}/kservices5/kglobalaccel5.desktop %{_kf5_datadir}/kservices5/kglobalaccel5.desktop
%{_datadir}/dbus-1/services/org.kde.kglobalaccel.service %{_datadir}/dbus-1/services/org.kde.kglobalaccel.service
%endif
%if ! 0%{?flatpak:1} %if ! 0%{?flatpak:1}
%if ! 0%{?fedora} >= 40 || !0%{?rhel} > 10
%{_userunitdir}/plasma-kglobalaccel.service %{_userunitdir}/plasma-kglobalaccel.service
%endif %endif
%endif
%ldconfig_scriptlets libs %ldconfig_scriptlets libs
%files libs %files libs
%{_kf5_libdir}/libKF5GlobalAccel.so.* %{_kf5_libdir}/libKF5GlobalAccel.so.*
%if ! 0%{?fedora} >= 40 || !0%{?rhel} > 10
%{_kf5_libdir}/libKF5GlobalAccelPrivate.so.* %{_kf5_libdir}/libKF5GlobalAccelPrivate.so.*
%{_kf5_qtplugindir}/org.kde.kglobalaccel5.platforms/ %{_kf5_qtplugindir}/org.kde.kglobalaccel5.platforms/
%endif
%files devel %files devel

Loading…
Cancel
Save