info:bash.spec -devel + stable?

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Nie, 6 Wrz 1998, 19:54:28 CEST


hej jest nowy bash chyba nie dziurawy ...;)

Summary: GNU Bourne Again Shell (bash)
Summary(pl): GNU Bourne Again Shell (bash)
Name: bash
Version: 2.02.1
Release: 1d
Group: Shells
Copyright: GPL
Source0: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
Source1: bashrc
Patch0: bash.patch
Prereq: fileutils grep 
Buildroot: /var/tmp/%{name}-%{version}-%{release}-root
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
executes commands read from the standard input or from a
file.  Bash also incorporates useful features from the
Korn and C shells (ksh and csh).

Bash is ultimately intended to be a conformant implementation
of the IEEE Posix Shell and Tools specification (IEEE
Working Group 1003.2).

%description -l pl
Bash jest zaawansowanym shellem, który wykonuje komendy czytane ze
standardowego wejścia (stdin) lub z pliku. Bash również posiada właściwości
shelli Korn i C (ksh i csh) 
is an sh-compatible command language interpreter that
executes commands read from the standard input or from a
file.  Bash also incorporates useful features from the
Korn and C shells (ksh and csh).

Bash ma również zaimplementowany IEEE Posix Shell oraz jest zgodny ze 
specyfikacją - 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 -p1

%build
./configure --prefix=/usr --enable-alias --enable-help-builtin \
--enable-history --enable-job-control --enable-restricted \
--enable-readline --enable-static-link
make LDFLAGS=-s
strip bash

%install
mkdir -p $RPM_BUILD_ROOT/usr
mkdir -p $RPM_BUILD_ROOT/bin
mkdir -p $RPM_BUILD_ROOT/etc
make prefix=$RPM_BUILD_ROOT/usr install
mkdir -p $RPM_BUILD_ROOT/bin $RPM_BUILD_ROOT/etc
mv $RPM_BUILD_ROOT/usr/bin/bash $RPM_BUILD_ROOT/bin/bash
rm -f $RPM_BUILD_ROOT/usr/bin/installed-bash
gzip -9nf $RPM_BUILD_ROOT/usr/info/bash.info
rm -f $RPM_BUILD_ROOT/usr/bin/bash.old
install -m644 $RPM_SOURCE_DIR/bashrc $RPM_BUILD_ROOT/etc/bashrc
ln -sf bash.1 $RPM_BUILD_ROOT/usr/man/man1/sh.1
ln -sf bash.1 $RPM_BUILD_ROOT/usr/man/man1/rbash.1
ln -sf bash $RPM_BUILD_ROOT/bin/sh
cd $RPM_BUILD_ROOT/bin
ln -s bash rbash

%clean
rm -rf $RPM_BUILD_ROOT

%post
if [ ! -f /etc/shells ]; then
	echo "/bin/bash" > /etc/shells
	echo "/bin/rbash" >> /etc/shells
	echo "/bin/sh" >> /etc/shells
else
	if ! grep '^/bin/bash$' /etc/shells > /dev/null; then
		echo "/bin/bash" >> /etc/shells
	fi
	if ! grep '^/bin/sh$' /etc/shells > /dev/null; then
		echo "/bin/sh" >> /etc/shells
	fi
	if ! grep '^/bin/rbash' /etc/shells > /dev/null; then
		echo "/bin/rbash" >> /etc/shells
	fi

fi

%postun
if [ "$1" = "0" ]; then
	grep -v /bin/bash /etc/shells | grep -v /bin/sh | grep -v /bin/rbash > /etc/shells.new
	mv /etc/shells.new /etc/shells
fi

%files
%defattr(-, root, root)
%doc NEWS README COPYING
%attr(644, root, root) %config(noreplace) %verify(not size md5 mtime) /etc/bashrc
%attr(711, root, root) /bin/*
%attr(644, root, root)/usr/info/bash.info.gz
%attr(644, root, man)/usr/man/man1/*
%attr(755, root, root)/usr/bin/*

%changelog

* Sun Sep 05 1998 Wojtek Slusarczyk <wojtek w shadow.eu.org>
[2.02.1-1d]
- updated to 2.02.1,
- fixed files permissions,
- build with restricted shell support.

* Wed Jun 17 1998 Wojtek Slusarczyk <wojtek w shadow.eu.org>
[14.7-9]
- build against glibc-2.1,
- translation modified for pl,
- added %defattr support,
- build from non root's account.

* Mon Apr 27 1998 Prospector System <bugs w redhat.com>

- translations modified for de, fr, tr


* Fri Nov 07 1997 Donnie Barnes <djb w redhat.com>

- added signal handling patch from Dean Gaudet <dgaudet w arctic.org> that
  is based on a change made in bash 2.0.  Should fix some early exit
  problems with suspends and fg.

* Mon Oct 20 1997 Donnie Barnes <djb w redhat.com>

- added %clean

* Mon Oct 20 1997 Erik Troan <ewt w redhat.com>

- added comment explaining why install-info isn't used
- added mips patch 

* Fri Oct 17 1997 Donnie Barnes <djb w redhat.com>

- added BuildRoot

* Tue Jun 03 1997 Erik Troan <ewt w redhat.com>

- built against glibc



Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu



Więcej informacji o liście dyskusyjnej pld-devel-pl