Create su package 08/85808/2 submit/tizen_base/20160831.005729
authorDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 29 Aug 2016 07:14:10 +0000 (16:14 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 30 Aug 2016 07:45:13 +0000 (16:45 +0900)
[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 <dh0128.kwak@samsung.com>
packaging/coreutils.spec

index b4f786af3f6dc47439175a251b9aaa6de28a058d..3c0272ef7b57f1347f666a0566e261bfd68ea19e 100644 (file)
@@ -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
+