sudo-rpm package added 47/57247/1 accepted/tizen_3.0.m2_base accepted/tizen_3.0_base sandbox/dongkyun.s/tizen_base tizen_3.0.m2_base tizen_3.0_base accepted/tizen/3.0.m2/base/20170104.082011 accepted/tizen/3.0/base/20161028.103422 accepted/tizen/base/20160119.051948 submit/tizen_3.0.m2_base/20170104.073748 submit/tizen_3.0_base/20161028.062326 submit/tizen_base/20160118.103457 tizen_4.0.m1_release
authorVyacheslav Barinov <v.barinov@samsung.com>
Thu, 14 Jan 2016 11:08:55 +0000 (14:08 +0300)
committerVyacheslav Barinov <v.barinov@samsung.com>
Mon, 18 Jan 2016 10:28:22 +0000 (13:28 +0300)
Change-Id: Iad3d5aab10aa229cd45f9798e4a4e69593864663
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
packaging/sudo.spec

index d1c717d..640c22e 100644 (file)
@@ -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