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