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)