Change-Id: Iad3d5aab10aa229cd45f9798e4a4e69593864663
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
%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} .
%post
chmod 0440 %{_sysconfdir}/sudoers
+%post rpm
+echo 'ALL ALL = (root) NOPASSWD: /usr/bin/rpm' >> %{_sysconfdir}/sudoers
%lang_package
%manifest %{name}.manifest
%defattr(-,root,root)
%{_includedir}/sudo_plugin.h
+
+%files rpm