Dirk Mueller
8836de8792
* eval: Test evalskip before flipping status for NNOT * parser: Add VSBIT to ensure subtype is never zero * eval: Check eflag after redirection error * eval: Always set exitstatus in evaltree * expand: Add ifsfree to expand to fix a logic error that causes a buffer over-read * expand: Always quote caret when using fnmatch * parser: Fix VSLENGTH parsing with trailing garbage * shell: Fail if building --with-libedit and can't find libedit * jobs: Only block in waitcmd on first run * redir: Retry open64 on EINTR * eval: Prevent recursive PS4 expansion * jobs: Fix waitcmd busy loop - drop check-nflag-in-evaltree.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/shells/dash?expand=0&rev=44
79 lines
2.0 KiB
RPMSpec
79 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package dash
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
# Copyright (c) 2013 Guido Berhoerster.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: dash
|
|
Version: 0.5.12
|
|
Release: 0
|
|
Summary: POSIX-compliant Implementation of /bin/sh
|
|
License: BSD-3-Clause
|
|
Group: System/Shells
|
|
URL: http://gondor.apana.org.au/~herbert/dash/
|
|
Source0: http://gondor.apana.org.au/~herbert/dash/files/%{name}-%{version}.tar.gz
|
|
BuildRequires: libedit-devel
|
|
|
|
%description
|
|
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)
|
|
BuildArch: noarch
|
|
|
|
%description sh
|
|
Use dash as /bin/sh implementation.
|
|
|
|
%prep
|
|
%setup -q
|
|
%autopatch -p1
|
|
|
|
%build
|
|
%global optflags %{optflags} -fcommon
|
|
%configure \
|
|
--enable-fnmatch \
|
|
--enable-glob \
|
|
--with-libedit
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
# compatibility symlink to /bin
|
|
%if !0%{?usrmerged}
|
|
mkdir -p %{buildroot}/bin
|
|
ln -s %{_bindir}/dash %{buildroot}/bin/dash
|
|
%endif
|
|
ln -sf %{_bindir}/dash %{buildroot}%{_bindir}/sh
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc ChangeLog
|
|
%{_bindir}/dash
|
|
%if !0%{?usrmerged}
|
|
/bin/dash
|
|
%endif
|
|
%{_mandir}/man1/dash.1%{?ext_man}
|
|
|
|
%files sh
|
|
%{_bindir}/sh
|
|
|
|
%changelog
|