From 77af808cd8d9b5050305c4810ebb2c256967b5e11dcbf9813aea40eecffdfbf2 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 6 Apr 2014 21:29:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kdesu?expand=0&rev=16 --- kdesu.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kdesu.spec b/kdesu.spec index f870f95..80cf904 100644 --- a/kdesu.spec +++ b/kdesu.spec @@ -29,6 +29,7 @@ BuildRequires: kpty-devel >= %{_kf5_version} BuildRequires: kservice-devel >= %{_kf5_version} BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 BuildRequires: pkgconfig(x11) +PreReq: permissions Summary: User interface for running shell commands with root privileges License: LGPL-2.1+ Group: System/GUI/KDE @@ -76,16 +77,21 @@ Development files. %kf5_makeinstall -C build %fdupes -s %{buildroot} -%post -n %lname -p /sbin/ldconfig +%post -n %lname +/sbin/ldconfig +%set_permissions %{_kf5_libexecdir}/kdesud %postun -n %lname -p /sbin/ldconfig +%verifyscript +%verify_permissions -e %{_kf5_libexecdir}/kdesud + %files -n %lname %defattr(-,root,root) %doc COPYING* README* %{_kf5_libdir}/libKF5Su.so.* %{_kf5_libexecdir}/kdesu_stub -%{_kf5_libexecdir}/kdesud +%verify(not mode) %attr(2755,root,nogroup) %{_kf5_libexecdir}/kdesud %files devel %defattr(-,root,root)