From c123f7b918764c5cb50491ae5c4522c2e6610a0cadd4f148fd4eb61fc49e04d6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 28 Jan 2022 11:10:15 +0000 Subject: [PATCH] Accepting request 949512 from home:dirkmueller:branches:shells - add dash-sh subpackage to be able to switch away from bash OBS-URL: https://build.opensuse.org/request/show/949512 OBS-URL: https://build.opensuse.org/package/show/shells/dash?expand=0&rev=41 --- dash.changes | 5 +++++ dash.spec | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) 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