diff --git a/kde-cli-tools5.changes b/kde-cli-tools5.changes index d0cf68b..548e14b 100644 --- a/kde-cli-tools5.changes +++ b/kde-cli-tools5.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 6 16:47:44 UTC 2015 - wbauer@tmo.at + +- Raise priority for update-alternatives on Tumbleweed and Leap, to + make the KF5 version of kdesu the default one + ------------------------------------------------------------------- Sun Oct 4 10:43:13 UTC 2015 - hrvoje.senjan@gmail.com diff --git a/kde-cli-tools5.spec b/kde-cli-tools5.spec index b4caa2b..d1ffd6b 100644 --- a/kde-cli-tools5.spec +++ b/kde-cli-tools5.spec @@ -78,9 +78,15 @@ Additional CLI tools for KDE applications and workspaces. %post /sbin/ldconfig +%if 0%{?suse_version} > 1320 || 0%{?is_opensuse} +%{_sbindir}/update-alternatives \ + --install %{_kf5_bindir}/kdesu kdesu %{_kf5_libexecdir}/kdesu 25 \ + --slave %{_kf5_mandir}/man1/kdesu.1.gz kdesu.1%{?ext_man} %{_kf5_mandir}/man1/kdesu-5.1%{?ext_man} +%else %{_sbindir}/update-alternatives \ --install %{_kf5_bindir}/kdesu kdesu %{_kf5_libexecdir}/kdesu 15 \ --slave %{_kf5_mandir}/man1/kdesu.1.gz kdesu.1%{?ext_man} %{_kf5_mandir}/man1/kdesu-5.1%{?ext_man} +%endif %postun /sbin/ldconfig