79 lines
2.0 KiB
RPMSpec
79 lines
2.0 KiB
RPMSpec
|
#
|
||
|
# spec file for package dash
|
||
|
#
|
||
|
# Copyright (c) 2023 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%{?suse_version} < 1550
|
||
|
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%{?suse_version} < 1550
|
||
|
/bin/dash
|
||
|
%endif
|
||
|
%{_mandir}/man1/dash.1%{?ext_man}
|
||
|
|
||
|
%files sh
|
||
|
%{_bindir}/sh
|
||
|
|
||
|
%changelog
|