summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 15:55:47 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-30 15:55:47 -0700
commit0d5aec19add2ae26a3df78765010744118d8b808 (patch)
tree2c9c56403739c7c9d1ef22cab84083f0158b6fab
parent2e0ff379c79d73c8a07ee2f4ad2359f5a4c97934 (diff)
downloaddash-0d5aec19add2ae26a3df78765010744118d8b808.tar.gz
dash-0d5aec19add2ae26a3df78765010744118d8b808.tar.bz2
dash-0d5aec19add2ae26a3df78765010744118d8b808.zip
-rw-r--r--packaging/dash.spec40
1 files changed, 40 insertions, 0 deletions
diff --git a/packaging/dash.spec b/packaging/dash.spec
new file mode 100644
index 0000000..822548e
--- /dev/null
+++ b/packaging/dash.spec
@@ -0,0 +1,40 @@
+Name: dash
+Version: 0.5.7
+Release: 4
+Summary: Small and fast POSIX-compliant shell
+Group: System/Shells
+License: BSD and GPLv2+
+URL: http://gondor.apana.org.au/~herbert/dash/
+Source0: http://gondor.apana.org.au/~herbert/dash/files/dash-%{version}.tar.gz
+
+%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
+
+%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
+
+%files
+%doc COPYING
+/bin/dash
+%{_datadir}/man/man1/dash.1.gz
+