Репозитории 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.3
Release: alt6
%define real_name dash
Summary: A smaller version of the Bourne shell
License: BSD
Group: Shells
Packager: Alexey Gladkov <legion at altlinux.ru>
Url: http://gondor.apana.org.au/~herbert/dash/
Source: ftp://ftp.debian.org/debian/pool/main/d/dash/%{real_name}_%version.orig.tar.gz
Patch: dash-0.5.3-alt-losetup.patch
Patch2: dash-0.5.3-alt-cleanup-warnings.patch
Patch3: dash-0.5.3-alt-static-build-fix.patch
Patch4: dash-0.5.3-alt-gcc-warnings.patch
Patch6: dash-0.5.3-makefile-cflags.patch
PreReq: coreutils, grep
Conflicts: mkinitrd <= 1.7
# Automatically added by buildreq on Mon Jun 19 2006
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
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch6 -p1
%__subst 's,\$(tempfile),`mktemp -t ash.XXXXXX`,' src/mkbuiltins
%build
%add_optflags %optflags_warnings -Werror -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
%__autoreconf
%define _configure_script ../configure
%__rm -rf build-dynamic build-static
%__mkdir_p build-dynamic build-static
pushd build-dynamic
%configure --disable-dependency-tracking
%make_build
%__mv src/%real_name sh.dynamic
popd
pushd build-static
%configure --disable-dependency-tracking --enable-static
%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.3
Release: alt6
%define real_name dash
Summary: A smaller version of the Bourne shell
License: BSD
Group: Shells
Packager: Alexey Gladkov <legion at altlinux.ru>
Url: http://gondor.apana.org.au/~herbert/dash/
Source: ftp://ftp.debian.org/debian/pool/main/d/dash/%{real_name}_%version.orig.tar.gz
Patch: dash-0.5.3-alt-losetup.patch
Patch2: dash-0.5.3-alt-cleanup-warnings.patch
Patch3: dash-0.5.3-alt-static-build-fix.patch
Patch4: dash-0.5.3-alt-gcc-warnings.patch
Patch6: dash-0.5.3-makefile-cflags.patch
PreReq: coreutils, grep
Conflicts: mkinitrd <= 1.7
# Automatically added by buildreq on Mon Jun 19 2006
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
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch6 -p1
%__subst 's,\$(tempfile),`mktemp -t ash.XXXXXX`,' src/mkbuiltins
%build
%add_optflags %optflags_warnings -Werror -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
%__autoreconf
%define _configure_script ../configure
%__rm -rf build-dynamic build-static
%__mkdir_p build-dynamic build-static
pushd build-dynamic
%configure --disable-dependency-tracking
%make_build
%__mv src/%real_name sh.dynamic
popd
pushd build-static
%configure --disable-dependency-tracking --enable-static
%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 можно просмотреть здесь