Репозитории ALT
S: | 0.5.11.18.g6f6d1f2-alt1 |
5.1: | 0.5.5.1-alt5 |
4.1: | 0.5.4-alt3 |
4.0: | 0.5.3-alt6 |
3.0: | 0.5.2-alt1 |
Группа :: Интерпретаторы команд
Пакет: ash
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: ash
Version: 0.5.2
Release: alt1
%define real_name dash
Summary: A smaller version of the Bourne shell
License: BSD
Group: Shells
Source: ftp://ftp.debian.org/debian/pool/main/d/dash/%{real_name}_%version.orig.tar.gz
Patch: dash-0.5.2-alt-losetup.patch
Patch1: dash_0.5.2-4-src.patch
Patch2: dash-alt-automake.patch
PreReq: coreutils, grep
Conflicts: mkinitrd <= 1.7
# Automatically added by buildreq on Fri May 06 2005
BuildRequires: glibc-devel-static
%description
The %name shell is a clone of Berkeley's Bourne shell. Ash
supports all of the standard sh shell commands, but is considerably
smaller than bash. The %name shell lacks some features (for example,
command-line histories), but needs a lot less memory.
You should install %name if you need a lightweight shell with many of the
same capabilities as the bash shell.
%package static
Summary: A smaller version of the Bourne shell statically linked
License: BSD
Group: Shells
%description static
The %name shell is a clone of Berkeley's Bourne shell. Ash
supports all of the standard sh shell commands, but is considerably
smaller than bash. The %name shell lacks some features (for example,
command-line histories), but needs a lot less memory.
You should install %name if you need a lightweight shell with many of the
same capabilities as the bash shell.
This version is statically compiled.
%prep
%setup -q -n %real_name-%version
%patch -p1
%patch1 -p1
%patch2 -p1
%__subst 's,\$(tempfile),`mktemp -t ash.XXXXXX`,' src/mkbuiltins
%build
%__autoconf
%__aclocal
%__automake
%define _configure_script ../configure
%__rm -rf build-dynamic build-static
%__mkdir_p build-dynamic build-static
pushd build-dynamic
%configure
%make_build
%__mv src/%real_name sh.dynamic
popd
pushd build-static
export LDFLAGS="-static"
%configure
%make_build
%__mv src/%real_name sh.static
popd
%install
%__install -p -m755 -D build-dynamic/sh.dynamic %buildroot/bin/%name
%__install -p -m755 -D build-static/sh.static %buildroot/bin/%name.static
%__ln_s %name %buildroot/bin/bsh
%__install -p -m644 -D src/%real_name.1 %buildroot/%_man1dir/%name.1
ln -s %name.1 %buildroot/%_man1dir/bsh.1
%files
/bin/%name
/bin/bsh
%_man1dir/*
%files static
/bin/%name.static
%changelog
…
Полный changelog можно просмотреть здесь
Version: 0.5.2
Release: alt1
%define real_name dash
Summary: A smaller version of the Bourne shell
License: BSD
Group: Shells
Source: ftp://ftp.debian.org/debian/pool/main/d/dash/%{real_name}_%version.orig.tar.gz
Patch: dash-0.5.2-alt-losetup.patch
Patch1: dash_0.5.2-4-src.patch
Patch2: dash-alt-automake.patch
PreReq: coreutils, grep
Conflicts: mkinitrd <= 1.7
# Automatically added by buildreq on Fri May 06 2005
BuildRequires: glibc-devel-static
%description
The %name shell is a clone of Berkeley's Bourne shell. Ash
supports all of the standard sh shell commands, but is considerably
smaller than bash. The %name shell lacks some features (for example,
command-line histories), but needs a lot less memory.
You should install %name if you need a lightweight shell with many of the
same capabilities as the bash shell.
%package static
Summary: A smaller version of the Bourne shell statically linked
License: BSD
Group: Shells
%description static
The %name shell is a clone of Berkeley's Bourne shell. Ash
supports all of the standard sh shell commands, but is considerably
smaller than bash. The %name shell lacks some features (for example,
command-line histories), but needs a lot less memory.
You should install %name if you need a lightweight shell with many of the
same capabilities as the bash shell.
This version is statically compiled.
%prep
%setup -q -n %real_name-%version
%patch -p1
%patch1 -p1
%patch2 -p1
%__subst 's,\$(tempfile),`mktemp -t ash.XXXXXX`,' src/mkbuiltins
%build
%__autoconf
%__aclocal
%__automake
%define _configure_script ../configure
%__rm -rf build-dynamic build-static
%__mkdir_p build-dynamic build-static
pushd build-dynamic
%configure
%make_build
%__mv src/%real_name sh.dynamic
popd
pushd build-static
export LDFLAGS="-static"
%configure
%make_build
%__mv src/%real_name sh.static
popd
%install
%__install -p -m755 -D build-dynamic/sh.dynamic %buildroot/bin/%name
%__install -p -m755 -D build-static/sh.static %buildroot/bin/%name.static
%__ln_s %name %buildroot/bin/bsh
%__install -p -m644 -D src/%real_name.1 %buildroot/%_man1dir/%name.1
ln -s %name.1 %buildroot/%_man1dir/bsh.1
%files
/bin/%name
/bin/bsh
%_man1dir/*
%files static
/bin/%name.static
%changelog
…
Полный changelog можно просмотреть здесь