diff --git a/dash-0.5.11.4.tar.gz b/dash-0.5.11.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fceb9a0e4ac08233eb2f3fec170ff73dd49a2b59 Binary files /dev/null and b/dash-0.5.11.4.tar.gz differ diff --git a/dash.spec b/dash.spec new file mode 100644 index 0000000000000000000000000000000000000000..55b53d06b84f18caa6b4da33bfb35360b1819da0 --- /dev/null +++ b/dash.spec @@ -0,0 +1,44 @@ +Name: dash +Version: 0.5.11.4 +Release: 1 +Summary: Small and fast POSIX-compliant shell +License: BSD and GPLv2+ +URL: http://gondor.apana.org.au/~herbert/dash/ +Source0: http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.11.4.tar.gz + +Provides: /bin/dash +BuildRequires: gcc +BuildRequires: make + +%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 +%autosetup + +%build +%configure --bindir=%{_bindir} +%make_build + +%install +%make_install + +%post +grep -q '^/bin/dash$' %{_sysconfdir}/shells || \ + echo '/bin/dash' >> %{_sysconfdir}/shells + +%postun +if [ $1 -eq 0 ]; then + sed -i '/^\/bin\/dash$/d' %{_sysconfdir}/shells +fi + +%files +%doc COPYING ChangeLog +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* + +%changelog +* Fri Jul 16 2021 guoshengsheng - 0.5.11.4-1 +- initial package