--- bash-1.14.7.spec.rh42upd Wed Sep 9 08:34:03 1998 +++ bash-1.14.7.spec Wed Sep 25 05:19:35 2002 @@ -1,7 +1,7 @@ Summary: GNU Bourne Again Shell (bash) Name: bash Version: 1.14.7 -Release: 1.1 +Release: 1.1m68k1 Group: Shells Copyright: GPL Source0: ftp://prep.ai.mit.edu/pub/gnu/bash-1.14.7.tar.gz @@ -16,8 +16,12 @@ Patch7: bash-1.14.7-winsz.patch Patch8: bash-1.14.7-race.patch Patch9: bash-1.14.7-secfix.patch +Prereq: fileutils grep Buildroot: /var/tmp/bash-root Requires: mktemp +Summary(de): GNU Bourne Again Shell (bash) +Summary(fr): GNU Bourne Again Shell (bash) +Summary(tr): GNU Bourne Again Shell (bash) %description Bash is an sh-compatible command language interpreter that @@ -29,6 +33,33 @@ of the IEEE Posix Shell and Tools specification (IEEE Working Group 1003.2). +%description -l de +Bash ist ein sh-kompatibler Befehlssprachen-Interpreter, der +über die Standardeingabe oder eine Datei gelesene Befehle ausführt. +Bash beinhaltet außerdem nützliche Funktionen der Korn- und der +C-Shell (ksh und csh). + +Bash soll eine kompatible Implementierung der +'IEEE Posix Shell and Tools Specification' (IEEE +Working Group 1003.2) sein. + +%description -l fr +Bash est un interpréteur de commande compatible sh qui exécute +les commandes lues sur l'entrée standard ou depuis un fichier. +Bash inclue également des fonctionnalités utiles des shells Korn et C +(ksh et csh). + +Bash est prévu pour être une implémentation de shell conforme la +spécification Posix IEEE sur les shell et les outils (Groupe de +travail IEEE 1003.2). + +%description -l tr +Bash standart girişten ya da bir dosyadan komut okuyup çalıştıran sh uyumlu +bir komut dili yorumlayıcısıdır. Aynı zamanda Korn ve C kabuklarının (ksh ve +csh) kullanışlı özelliklerini de kapsar. Bash, IEEE Posix Kabuk ve Araç +ayrıntılarına (IEEE Working Group 1003.2) uyumlu bir uygulama olarak +tasarlanmıştır. + %prep %setup -q %patch0 -p0 @@ -43,8 +74,8 @@ %patch9 -p1 -b .secfix %build -make "CFLAGS=-g" prefix=/usr CC=gcc CPPNAME='$(CC) -E' -#strip bash +make "CFLAGS=$RPM_OPT_FLAGS" LDFLAGS=-s prefix=/usr CC=gcc CPPNAME='$(CC) -E' +strip bash %install make prefix=$RPM_BUILD_ROOT/usr install @@ -64,29 +95,23 @@ # to prevent prereq loops %post - -HASBASH="" -HASSH="" - if [ ! -f /etc/shells ]; then - > /etc/shells -fi - -(while read line ; do - if [ $line = /bin/bash ]; then - HASBASH=1 - elif [ $line = /bin/sh ]; then - HASSH=1 + echo "/bin/bash" > /etc/shells + echo "/bin/sh" >> /etc/shells +else + if ! grep '^/bin/bash$' /etc/shells > /dev/null; then + echo "/bin/bash" >> /etc/shells fi - done - - if [ -z "$HASBASH" ]; then - echo "/bin/bash" >> /etc/shells - fi + if ! grep '^/bin/sh$' /etc/shells > /dev/null; then + echo "/bin/sh" >> /etc/shells + fi +fi - if [ -z "$HASSH" ]; then - echo "/bin/sh" >> /etc/shells -fi) < /etc/shells +%postun +if [ "$1" = "0" ]; then + grep -v /bin/bash /etc/shells | grep -v /bin/sh > /etc/shells.new + mv /etc/shells.new /etc/shells +fi %files %defattr(-,root,root)