diff --git a/dash.changes b/dash.changes index 67e7cd5..b66176b 100644 --- a/dash.changes +++ b/dash.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 27 17:38:59 UTC 2022 - Dirk Müller + +- add dash-sh subpackage to be able to switch away from bash + ------------------------------------------------------------------- Mon Dec 20 10:46:44 UTC 2021 - Dirk Müller diff --git a/dash.spec b/dash.spec index 1bc618f..682fe71 100644 --- a/dash.spec +++ b/dash.spec @@ -1,7 +1,7 @@ # # spec file for package dash # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2013 Guido Berhoerster. # # All modifications and additions to the file contributed by third parties @@ -33,6 +33,16 @@ BuildRequires: libedit-devel DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as possible without sacrificing speed where possible. +%package sh +Summary: Handle behaviour of /bin/sh +Group: System/Shells +Requires: dash = %{version} +Conflicts: alternative(sh) +Provides: alternative(sh) + +%description sh +Use dash as /bin/sh implementation. + %prep %setup -q %autopatch -p1 @@ -52,6 +62,7 @@ possible without sacrificing speed where possible. mkdir -p %{buildroot}/bin ln -s %{_bindir}/dash %{buildroot}/bin/dash %endif +ln -sf %{_bindir}/dash %{buildroot}%{_bindir}/sh %files %license COPYING @@ -62,4 +73,7 @@ ln -s %{_bindir}/dash %{buildroot}/bin/dash %endif %{_mandir}/man1/dash.1%{?ext_man} +%files sh +%{_bindir}/sh + %changelog