Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 6868368f9d3dca85ba73ad76aa945a68 > files > 2

dash-0.5.2-1mdk.src.rpm

Summary: The Debian Almquist Shell (formerly NetBSD's ash)
Name: dash
Version: 0.5.2
Release: 1mdk
URL: http://ftp.debian.org/debian/pool/main/d/dash
License: BSD
Group: Shells
Source: dash_%{version}.orig.tar.bz2
Patch0: dash-0.5.1-tempfix.patch.bz2
Prereq: rpm-helper
BuildRoot: %{_tmppath}/%name-%version
BuildRequires: bison, dietlibc-devel

%description
"dash" is a POSIX  compliant shell  that is  much smaller  than "bash".
Dash supports many features that a real sh shell would support, however
it much smaller in size. This becomes an advantage in situations  where
there is a  lack of  memery (initial  ram-disks, etc). dash does lack a 
few features, like command line history.

dash is the continuation of the original NetBSD ash fork.  dash is much
more up-to-date, and properly maintained.

You should install dash if you need a near featureful lightweight shell
that is similar to GNU's bash.

%package static
Summary: The Debian Almquist Shell (statically compiled)
License: BSD
Group: Shells
Prereq: rpm-helper

%description static
"dash" is a POSIX  compliant shell  that is  much smaller  than "bash".
Dash supports many features that a real sh shell would support, however
it much smaller in size. This becomes an advantage in situations  where
there is a  lack of  memery (initial  ram-disks, etc). dash does lack a
few features, like command line history.

dash is the continuation of the original NetBSD ash fork.  dash is much
more up-to-date, and properly maintained.

You should install dash if you need a near featureful lightweight shell
that is similar to GNU's bash.

This version is statically compiled

%prep
%setup -q
%patch0 -p1 -b .tempfile

%build

%configure

# Build dynamically linked dash first
make
strip src/dash
mv src/dash src/dash.dynamic

# Build statically linked dietlibc dash last
make clean
%configure CC="diet gcc"
make CC="diet gcc"
strip src/dash
mv src/dash src/dash.static



%install
rm -rf $RPM_BUILD_ROOT

mkdir -p %{buildroot}/bin
mkdir -p %{buildroot}/%{_mandir}/man1

install -m 755 src/dash.dynamic %{buildroot}/bin/dash
install -m 644 src/dash.1 %{buildroot}/%{_mandir}/man1/dash.1

install -m 755 src/dash.static %{buildroot}/bin/dash.static

%post
/usr/share/rpm-helper/add-shell %name $1 /bin/dash

%post static
/usr/share/rpm-helper/add-shell %name $1 /bin/dash.static

%postun
/usr/share/rpm-helper/del-shell %name $1 /bin/dash

%postun static
/usr/share/rpm-helper/del-shell %name $1 /bin/dash.static

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/bin/dash
%{_mandir}/man1/*

%doc ChangeLog COPYING

%files static
%defattr(-,root,root)
/bin/dash.static

%changelog
* Fri Feb 11 2005 Michael Scherer <misc@mandrake.org> 0.5.2-1mdk
- rpmbuildupdateable
- From Sunny Dubey <sdubey@nylug.org>  
  * Removed debian specific patch
  * updated to 0.5.2

* Mon Nov 29 2004 Michael Scherer <misc@mandrake.org> 0.5.1-3mdk 
- various adjustement ( .bz2, prereq, etc )
- uploaded to contribs

* Tue Nov 23 2004 Sunny Dubey <sunny@opencurve.org> 0.5.1-2mdk
- Fixed dietlibc support

* Tue Nov 23 2004 Sunny Dubey <sunny@opencurve.org> 0.5.1-1mdk
- Initial Mandrake release :)

* Tue Jun 29 2004 Sunny Dubey <sunny@opencurve.org>
- use $(command) instead of `command`
- add to %doc

* Fri Jun 25 2004 Sunny Dubey <sunny@opencurve.org>
- No more mindless copying/renaming during build

* Thu Jun 24 2004 Sunny Dubey <sunny@opencurve.org>
- Brand-spanking new package (no more unmaintained ash)
- patched mktemp issue