File sash.spec of Package sash

#
# spec file for package sash (Version 3.7)
#
# Copyright (c) 2009 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:        Any permissive
Group:          System/Shells
AutoReqProv:    on
Version:        3.7
Release:        170
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
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

%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
* Wed May 06 2009 crrodriguez@suse.de
- while using static libz will work, using static libc wont,
  due to the use of getgrgid, getgrnam, getpwnam and getpwuid.
* Thu Mar 26 2009 crrodriguez@suse.de
- use zlib-devel-static
* Thu Jun 21 2007 adrian@suse.de
- fix changelog entry order
* Thu Mar 29 2007 rguenther@suse.de
- add ncurses-devel and zlib-devel BuildRequires
* Tue Mar 20 2007 nadvornik@suse.cz
- fix for new kernel headers
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 15 2006 schwab@suse.de
- User RPM_OPT_FLAGS.
- Don't strip binaries.
* Thu Apr 14 2005 mjancar@suse.cz
- fix for new kernel headers
* Fri May 28 2004 mjancar@suse.cz
- fix broken kernel includes
* Fri Feb 27 2004 mjancar@suse.cz
- update to 3.7
* Thu Feb 26 2004 hmacht@suse.de
- building as non-root
* Fri Nov 08 2002 jderfina@suse.cz
- Added buildroot.
- Upgrade to version 3.6.
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Mon Aug 13 2001 snwint@suse.de
- added 'raidautorun' command (RAID_AUTORUN ioctl on /dev/md0)
* Mon Feb 26 2001 pblaha@suse.cz
- add URL
* Wed Feb 16 2000 kukuk@suse.de
- Move /usr/man -> /usr/share/man
* Mon Dec 06 1999 kukuk@suse.de
- Update to version 3.4
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Jun 25 1999 kukuk@suse.de
- Update to version 3.3
* Wed Jun 09 1999 kukuk@suse.de
- Update to version 3.2
* Mon May 24 1999 kukuk@suse.de
- Update to version 3.1
* Tue Feb 09 1999 kukuk@suse.de
- initial package: version 2.1
openSUSE Build Service is sponsored by