2010-02-18 13:38:26 +00:00
|
|
|
#
|
2011-10-07 08:29:27 +00:00
|
|
|
# spec file for package dash
|
2010-02-18 13:38:26 +00:00
|
|
|
#
|
2023-01-04 10:57:45 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2013-09-27 11:38:16 +00:00
|
|
|
# Copyright (c) 2013 Guido Berhoerster.
|
2010-02-18 13:38:26 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-25 14:13:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-02-18 13:38:26 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dash
|
2022-12-23 06:55:43 +00:00
|
|
|
Version: 0.5.12
|
2015-04-09 09:33:38 +00:00
|
|
|
Release: 0
|
2010-02-18 13:38:26 +00:00
|
|
|
Summary: POSIX-compliant Implementation of /bin/sh
|
2011-12-06 17:05:13 +00:00
|
|
|
License: BSD-3-Clause
|
2010-02-18 13:38:26 +00:00
|
|
|
Group: System/Shells
|
2020-04-09 12:42:18 +00:00
|
|
|
URL: http://gondor.apana.org.au/~herbert/dash/
|
2022-10-24 11:39:31 +00:00
|
|
|
Source0: http://gondor.apana.org.au/~herbert/dash/files/%{name}-%{version}.tar.gz
|
2013-09-27 11:38:16 +00:00
|
|
|
BuildRequires: libedit-devel
|
2010-02-18 13:38:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as
|
|
|
|
possible without sacrificing speed where possible.
|
|
|
|
|
2022-01-28 11:10:15 +00:00
|
|
|
%package sh
|
|
|
|
Summary: Handle behaviour of /bin/sh
|
|
|
|
Group: System/Shells
|
|
|
|
Requires: dash = %{version}
|
|
|
|
Conflicts: alternative(sh)
|
|
|
|
Provides: alternative(sh)
|
2022-10-24 11:39:31 +00:00
|
|
|
BuildArch: noarch
|
2022-01-28 11:10:15 +00:00
|
|
|
|
|
|
|
%description sh
|
|
|
|
Use dash as /bin/sh implementation.
|
|
|
|
|
2010-02-18 13:38:26 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2020-11-19 23:16:20 +00:00
|
|
|
%autopatch -p1
|
2010-02-18 13:38:26 +00:00
|
|
|
|
|
|
|
%build
|
2020-04-09 12:42:18 +00:00
|
|
|
%global optflags %{optflags} -fcommon
|
2015-04-09 09:33:38 +00:00
|
|
|
%configure \
|
|
|
|
--enable-fnmatch \
|
|
|
|
--enable-glob \
|
|
|
|
--with-libedit
|
2020-04-09 12:42:18 +00:00
|
|
|
%make_build
|
2010-02-18 13:38:26 +00:00
|
|
|
|
|
|
|
%install
|
2010-02-25 13:48:30 +00:00
|
|
|
%make_install
|
2013-09-27 11:38:16 +00:00
|
|
|
# compatibility symlink to /bin
|
2023-01-04 10:57:45 +00:00
|
|
|
%if 0%{?suse_version} < 1550
|
2013-09-27 11:38:16 +00:00
|
|
|
mkdir -p %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/dash %{buildroot}/bin/dash
|
2020-12-02 23:32:42 +00:00
|
|
|
%endif
|
2022-01-28 11:10:15 +00:00
|
|
|
ln -sf %{_bindir}/dash %{buildroot}%{_bindir}/sh
|
2010-02-18 13:38:26 +00:00
|
|
|
|
|
|
|
%files
|
2020-11-19 23:16:20 +00:00
|
|
|
%license COPYING
|
2010-02-18 13:38:26 +00:00
|
|
|
%doc ChangeLog
|
2013-09-27 11:38:16 +00:00
|
|
|
%{_bindir}/dash
|
2023-01-04 10:57:45 +00:00
|
|
|
%if 0%{?suse_version} < 1550
|
2010-02-18 13:38:26 +00:00
|
|
|
/bin/dash
|
2020-12-02 23:32:42 +00:00
|
|
|
%endif
|
2020-10-03 17:55:38 +00:00
|
|
|
%{_mandir}/man1/dash.1%{?ext_man}
|
2010-02-18 13:38:26 +00:00
|
|
|
|
2022-01-28 11:10:15 +00:00
|
|
|
%files sh
|
|
|
|
%{_bindir}/sh
|
|
|
|
|
2010-02-18 13:38:26 +00:00
|
|
|
%changelog
|