Rebase for dash 0.5.9.1 67/151167/1
authorAnas Nashif <anas.nashif@intel.com>
Tue, 30 Oct 2012 22:55:47 +0000 (15:55 -0700)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 20 Sep 2017 05:33:40 +0000 (14:33 +0900)
Change-Id: I908cf68b94a168d39f2b58861d7a360a42b8b31b
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/dash.changes [new file with mode: 0644]
packaging/dash.manifest [new file with mode: 0644]
packaging/dash.spec [new file with mode: 0644]

diff --git a/packaging/dash.changes b/packaging/dash.changes
new file mode 100644 (file)
index 0000000..8f1de8a
--- /dev/null
@@ -0,0 +1,6 @@
+* Thu Sep 05 2013 Maciej Wereski <m.wereski@partner.samsung.com> accepted/tizen/20130710.220938@1e64104
+- RMPLINT fixes and docs package
+- resetting manifest requested domain to floor
+- add packaging
+- Imported Upstream version 0.5.7
+
diff --git a/packaging/dash.manifest b/packaging/dash.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/dash.spec b/packaging/dash.spec
new file mode 100644 (file)
index 0000000..41eae19
--- /dev/null
@@ -0,0 +1,44 @@
+Name:           dash
+Version:        0.5.7
+Release:        4
+Summary:        Small and fast POSIX-compliant shell
+Group:          Base/Utilities
+License:        BSD-3-Clause and GPL-2.0+
+URL:            http://gondor.apana.org.au/~herbert/dash/
+Source0:        http://gondor.apana.org.au/~herbert/dash/files/dash-%{version}.tar.gz
+Source1001:    dash.manifest
+
+%description
+DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as
+possible. It does this without sacrificing speed where possible. In fact, it is
+significantly faster than bash (the GNU Bourne-Again SHell) for most tasks.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+mkdir -p %{buildroot}/bin
+mv %{buildroot}%{_bindir}/dash %{buildroot}/bin/
+rm -rf %{buildroot}%{_bindir}/
+
+%post
+grep -q '^/bin/dash$' /etc/shells || echo '/bin/dash' >> /etc/shells
+
+%postun
+if [ $1 -eq 0 ]; then
+    sed -i '/^\/bin\/dash$/d' /etc/shells
+fi
+
+%docs_package
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+/bin/dash
+