From cefaa5f2006b3635b53735f2c20e6dbb8b3f4c2173dc2a2c131d1fbc9074bc82 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Tue, 6 Oct 2015 17:04:51 +0000 Subject: [PATCH] Accepting request 336811 from home:wolfi323:test Raise priority for update-alternatives on Tumbleweed and Leap, to make the KF5 version of kdesu the default one OBS-URL: https://build.opensuse.org/request/show/336811 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kde-cli-tools5?expand=0&rev=71 --- kde-cli-tools5.changes | 6 ++++++ kde-cli-tools5.spec | 6 ++++++ 2 files changed, 12 insertions(+) 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