From: DongHun Kwak Date: Mon, 29 Aug 2016 07:14:10 +0000 (+0900) Subject: Create su package X-Git-Tag: submit/tizen_base/20160831.005729^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=050920de65707bd0d915f3440e8b2959e7870aa8;p=product%2Fupstream%2Fcoreutils.git Create su package [Model] ALL [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] create new su package [Cause & Measure] create new su package [Checking Method] N/A [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: I295e363baf66ed55a67929f97abd481c6d4a42f4 Signed-off-by: DongHun Kwak --- diff --git a/packaging/coreutils.spec b/packaging/coreutils.spec index b4f786a..3c0272e 100644 --- a/packaging/coreutils.spec +++ b/packaging/coreutils.spec @@ -40,13 +40,20 @@ Provides: /bin/rm Provides: /bin/sort Provides: /bin/touch - %description These are the GNU core utilities. This package is the combination of the old GNU fileutils, sh-utils, and textutils packages. +%package -n coreutils-su +Summary: su - run a command with substitute user and group ID +Group: System Environment/Base +Requires: %{name} + +%description -n coreutils-su +su - run a command with substitute user and group ID + %prep -%setup -q -b 1 -n coreutils-%{version} +%setup -q -b 1 -n %{name}-%{version} %build cp %{SOURCE1001} . @@ -106,6 +113,9 @@ find %{buildroot}%{_datadir}/locale -type l | \ ln "$(dirname "$link")/$target" "$link" done) +# su +install -m 4755 src/su $RPM_BUILD_ROOT/usr/bin + %clean rm -rf $RPM_BUILD_ROOT @@ -208,3 +218,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/who %{_bindir}/whoami %{_bindir}/yes + +%files -n coreutils-su +%manifest %{name}.manifest +%defattr(-,root,root) +%attr(4755,root,root) /usr/bin/su +