File sash.spec of Package sash

#
# spec file for package sash
#
# Copyright (c) 2015 SUSE LINUX 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/
#


Name:           sash
Version:        3.8
Release:        0
Summary:        A stand-alone shell with built-in commands
License:        ISC
Group:          System/Shells
Url:            http://www.tip.net.au/~dbell
Source:         http://members.tip.net.au/~dbell/programs/sash-%{version}.tar.gz
Patch0:         sash-Makefile.diff
Patch1:         sash-raid.diff
Patch2:         sash-include.diff
Patch3:         sash-ed-line-marking.diff
BuildRequires:  libext2fs-devel
BuildRequires:  ncurses-devel
BuildRequires:  zlib-devel-static
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package includes:

 -ar, -chattr, -chgrp, -chmod, -chown, -chroot, -cmp,
 -cp, -dd, -echo, -ed, -grep, -file, -find, -gunzip,
 -gzip, -kill, -losetup, -ln, -ls, -lsattr, -mkdir,
 -mknod, -more, -mount, -mv, -pivot_root, -printenv, -pwd,
 -rm, -rmdir, -sum, -sync, -tar, -touch, -umount, -where

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3 -p1

%build
export OPT="%{optflags} -O3"
make %{?_smp_mflags} CC="gcc"

%install
make DESTDIR=%{buildroot} install

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

%changelog
openSUSE Build Service is sponsored by