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
This commit is contained in:
Dirk Mueller 2022-01-28 11:10:15 +00:00 committed by Git OBS Bridge
parent f5aa4c1c78
commit c123f7b918
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 27 17:38:59 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add dash-sh subpackage to be able to switch away from bash
-------------------------------------------------------------------
Mon Dec 20 10:46:44 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -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