File ash.spec of Package ash

# spec file for package ash (Version 1.6.1)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

# norootforbuild

Name:           ash
License:        BSD3c(or similar)
Group:          System/Shells
Provides:       ash-linux
BuildRequires:  bison flex
AutoReqProv:    on
Version:        1.6.1
Release:        139
Summary:        The Ash Shell
Source:         ash-%{version}.tar.gz
Patch1:         ash-%{version}-linux.patch
Patch2:         ash-%{version}
Patch3:         ash-%{version}-suse.initrd.diff
Patch4:         ash-%{version}-suse.warnings.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

NetBSD's ash (Almquist sh) for Linux is a small (62K--no job control)
Bourne-compatible shell. It is great for machines with low memory, but
does not provide all the extras of shells like bash, tcsh, and zsh.
Most shell scripts are compatible with bash. Note that most scripts
written for Linux use some bash-specific syntax. The Slackware setup
scripts are a notable exception, because ash is the shell used during

%setup -q -n sh-%{version}
%patch1 -p1

make -f Makefile.linux OPTFLAGS="$RPM_OPT_FLAGS"

make -f Makefile.linux DESTDIR=$RPM_BUILD_ROOT install
%if 0
make -f Makefile.linux clean
#rm -f config.cache
patch -p0 < $RPM_SOURCE_DIR/ash-dietlibc.diff
make CC="diet gcc" LD="diet gcc"
install -o root -g root -m 0755 -s sh.static $RPM_BUILD_ROOT/bin/ash.static

%doc TOUR
%doc %{_mandir}/man1/ash.1.gz

openSUSE Build Service is sponsored by