From: Vyacheslav Barinov Date: Thu, 14 Jan 2016 11:08:55 +0000 (+0300) Subject: sudo-rpm package added X-Git-Tag: accepted/tizen/3.0.m2/base/20170104.082011^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0.m2_base;p=platform%2Fupstream%2Fsudo.git sudo-rpm package added Change-Id: Iad3d5aab10aa229cd45f9798e4a4e69593864663 Signed-off-by: Vyacheslav Barinov --- diff --git a/packaging/sudo.spec b/packaging/sudo.spec index d1c717d..640c22e 100644 --- a/packaging/sudo.spec +++ b/packaging/sudo.spec @@ -28,6 +28,15 @@ Group: System/Utilities %description devel These header files are needed for building of sudo plugins. +%package rpm +Summary: Script making possible to run RPM as root from inside build +Group: System/Utilities +Requires: sudo + +%description rpm +The package will add ALL ALL = (root) NOPASSWD: /usr/bin/rpm to sudoers and +makes possible to install packages from inside build. + %prep %setup -q cp %{SOURCE1001} . @@ -71,6 +80,8 @@ cat sudoers.lang >> %{name}.lang %post chmod 0440 %{_sysconfdir}/sudoers +%post rpm +echo 'ALL ALL = (root) NOPASSWD: /usr/bin/rpm' >> %{_sysconfdir}/sudoers %lang_package @@ -94,3 +105,5 @@ chmod 0440 %{_sysconfdir}/sudoers %manifest %{name}.manifest %defattr(-,root,root) %{_includedir}/sudo_plugin.h + +%files rpm