1 Summary: POSIX-compliant implementation of /bin/sh
6 Group: Applications/Shells
7 Source0: http://gondor.apana.org.au/~herbert/dash/files/%{name}-%{version}.tar.gz
8 # Source0-md5: 1a3cd6669459be4344ec55ec9d4914f8
9 URL: http://gondor.apana.org.au/~herbert/dash/
11 Requires(preun): sed >= 4.0
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _shell %{_bindir}/%{name}
18 DASH is a POSIX-compliant implementation of /bin/sh that aims to be as
19 small as possible. It does this without sacrificing speed where
20 possible. In fact, it is significantly faster than bash (the GNU
21 Bourne-Again SHell) for most tasks.
23 DASH is a direct descendant of the NetBSD version of ash (the Almquist
34 rm -rf $RPM_BUILD_ROOT
37 DESTDIR=$RPM_BUILD_ROOT
40 rm -rf $RPM_BUILD_ROOT
43 if [ ! -f /etc/shells ]; then
45 echo '%{_shell}' > /etc/shells
47 grep -q '^%{_shell}$' /etc/shells || echo '%{_shell}' >> /etc/shells
51 if [ "$1" = "0" ]; then
52 %{__sed} -i -e '/^%(echo %{_shell} | sed -e 's,/,\\/,g')$/d' /etc/shells
56 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_bindir}/dash
58 %{_mandir}/man1/dash.1*