File sash.spec of Package sash

#
# spec file for package sash (Version 3.7)
#
# 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           sash
BuildRequires:  ncurses-devel zlib-devel-static
License:        PERMISSIVE-OSI-COMPLIANT
Group:          System/Shells
AutoReqProv:    on
Version:        3.7
Release:        171
Summary:        A stand-alone shell with built-in commands
Source:         sash-%{version}.tar.bz2
Url:            http://www.tip.net.au/~dbell
Patch0:         sash-%{version}-install.diff
Patch1:         sash-%{version}-raid.diff
Patch2:         sash-%{version}-include.diff
Patch3:         sash-%{version}-strip.diff
Patch4:         sash-%{version}-fs.diff
Patch5:         sash-3.7-shared_libc.patch
Patch6:         sash-%{version}-ed-line-marking.diff
Patch7:         sash-plus-patches-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package includes:

-chgrp, -chmod, -chown, -cmp, -cp, -dd, -echo, -ed, -grep, -gunzip,
-gzip, -kill, -ln, -ls, -mkdir, -mknod, -more, -mount, -mv, -printenv,
-pwd, -rm, -rmdir, -sync, -tar, -touch, -umount, -where



Authors:
--------
    David I. Bell <dbell@canb.auug.org.au>

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6 -p1
%patch7 -p1

%build
export RPM_OPT_FLAGS
make

%install
mkdir -p $RPM_BUILD_ROOT/{bin,%{_mandir}/man1}
make prefix=$RPM_BUILD_ROOT install

%files
%defattr(-,root,root)
%doc README
/bin/sash
%doc %{_mandir}/man1/sash.1.gz

%changelog