1 Summary: GNU Bourne Again Shell (bash)
2 Summary(fr): Le shell Bourne Again de GNU
3 Summary(pl): Pow³oka GNU Bourne Again Shell (bash)
8 Group: Applications/Shells
9 Source0: ftp://prep.ai.mit.edu/pub/gnu/bash/%{name}-%{version}.tar.gz
11 Source2: %{name}-skel-.bash_logout
12 Source3: %{name}-skel-.bash_profile
13 Source4: %{name}-skel-.bashrc
14 Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
15 Patch0: %{name}-paths.patch
16 Patch1: %{name}-security.patch
17 Patch2: %{name}-autoconf.patch
18 Patch3: %{name}-info.patch
19 Patch4: %{name}-profile.patch
20 Patch5: %{name}-requires.patch
21 Patch6: %{name}-compat.patch
22 Patch7: %{name}-shellfunc.patch
23 Patch8: %{name}-DESTDIR.patch
24 Patch9: %{name}-rlimit_locks.patch
25 Patch10: %{name}-sighup.patch
26 Patch11: %{name}-tmpfile.patch
27 BuildRequires: autoconf
28 BuildRequires: automake
30 BuildRequires: glibc-devel >= 2.2
31 BuildRequires: ncurses-devel >= 5.2
32 BuildRequires: readline-devel >= 4.2
33 BuildRequires: texinfo
34 %if %{!?_without_static:1}%{?_without_static:0}
35 # Require static library only for static build
36 BuildRequires: glibc-static >= 2.2
37 BuildRequires: ncurses-static >= 5.2
38 BuildRequires: readline-static >= 4.2
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Bash is a GNU project sh-compatible shell or command language
50 interpreter. Bash (Bourne Again shell) incorporates useful features
51 from the Korn shell (ksh) and the C shell (csh). Most sh scripts can
52 be run by bash without modification. Bash offers several improvements
53 over sh, including command line editing, unlimited size command
54 history, job control, shell functions and aliases, indexed arrays of
55 unlimited size and integer arithmetic in any base from two to 64. Bash
56 is ultimately intended to conform to the IEEE POSIX P1003.2/ISO 9945.2
57 Shell and Tools standard. Bash is the default shell for Linux
58 Mandrake. You should install bash because of its popularity and power.
59 You'll probably end up using it.
62 Bash ist eine sh-kompatible Shell und Kommandosprache aus dem
63 GNU-Projekt. Bash (Bourne Again Shell) vereinigt die nützlichen
64 Features aus der Korn-Shell (ksh) und der C-Shell (csh). Die meisten
65 sh-Skripte laufen ohne Änderungen auf bash. Bash hat viele
66 Erweiterungen im Vergleich zur "normalen" sh, wie z.B.
67 Kommandozeilenbearbeitung, unbeschränkte Größe der command-history,
68 Job-Kontrolle, Shell-Funktionen und -Aliase, unbegrenzt große
69 indizierte Arrays und Integer-Arithmetik in einer Basis von 2 bis 64.
70 Hauptziel von bash ist es, den IEEE POSIX P1003.2/ISO 9945.2 Shell-
71 und Tools-Standard einzuhalten. Bash ist die Standard-Shell für Linux
75 Bash est un shell (interpréteur de commande) du projet GNU, compatible
76 avec le shell historique sh. Bash (Bourne Again SHell) comprend de
77 nombreuses fonctionnalités du Korn SHell (ksh) et du C SHell (csh). La
78 plupart des scripts sh sont exécutables sans modifications. Bash
79 comprend nombre d'améliorations par rapport à sh : édition de la ligne
80 de commande, historique illimité, contrôle des processus
81 d'arrière-plan, fonctions de shell, alias, tableaux indexés de taille
82 illimitée et calcul sur des entiers dans n'importe quelle base de 2 à
83 64. Bash est conforme au standard IEEE POSIX P1003.2/ISO 9945.2 Shell
84 and Tools. Bash est le shell par défaut de Mandrake. Vous devriez
85 l'installer du fait de sa puissance et de sa popularité. Vous finirez
86 probablement par l'utiliser.
89 Bash (Bourne Again SHell) jest projektem GNU pow³oki kompatybilnej z
90 sh oraz interpretera jêzyka poleceñ. Posiada u¿yteczne w³a¶ciwo¶ci
91 pow³ok Korn (ksh) i C (csh). Wiêkszo¶æ skryptów sh mo¿e byæ
92 uruchamiana w bashu bez modyfikacji. Oferuje on kilka ulepszeñ w
93 stusunku do sh, w³±czaj±c edycjê linii poleceñ, nieograniczony rozmiar
94 historii poleceñ, funkcje i aliasy, indeksowane tablice
95 nieograniczonych rozmiarów oraz arytmetykê ca³kowitoliczbow± o
96 dowolnej podstawie od 2 do 64. W zamierzeniu ostatecznie ma byæ zgodny
97 ze standardem IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools.
100 Bash standart giriþten ya da bir dosyadan komut okuyup çalýþtýran sh
101 uyumlu bir komut dili yorumlayýcýsýdýr. Ayný zamanda Korn ve C
102 kabuklarýnýn (ksh ve csh) kullanýþlý özelliklerini de kapsar. Bash,
103 IEEE Posix Kabuk ve Araç ayrýntýlarýna (IEEE Working Group 1003.2)
104 uyumlu bir uygulama olarak tasarlanmýþtýr.
107 Summary: Statically linked GNU Bourne Again Shell (bash)
108 Summary(pl): Statycznie zlinkowany GNU Bourne Again Shell (bash)
109 Group: Applications/Shells
112 Requires(preun): grep
115 Bash is a GNU project sh-compatible shell or command language
116 interpreter. Bash (Bourne Again shell) incorporates useful features
117 from the Korn shell (ksh) and the C shell (csh). Most sh scripts can
118 be run by bash without modification. Bash offers several improvements
119 over sh, including command line editing, unlimited size command
120 history, job control, shell functions and aliases, indexed arrays of
121 unlimited size and integer arithmetic in any base from two to 64. Bash
122 is ultimately intended to conform to the IEEE POSIX P1003.2/ISO 9945.2
123 Shell and Tools standard. Bash is the default shell for Linux
124 Mandrake. You should install bash because of its popularity and power.
125 You'll probably end up using it. This package contains statically
126 linked version of bash.
128 %description static -l pl
129 Bash jest zaawansowanym shellem, który wykonuje komendy czytane ze
130 standardowego wej¶cia (stdin) lub z pliku. Posiada w³a¶ciwo¶ci pow³ok
131 Korn i C (ksh i csh). Bash ma równie¿ zaimplementowany IEEE Posix
132 Shell oraz jest zgodny ze specyfikacj± - IEEE Working Group 1003.2. W
133 tym pakiecie jest statycznie zlinkowany bash.
149 echo %{version} > _distribution
150 echo %{release} > _patchlevel
154 cp -f /usr/share/automake/config.* support/
155 for mode in %{!?_without_static:static} shared; do
158 --enable-help-builtin \
160 --enable-job-control \
161 --enable-restricted \
164 --enable-extended-glob \
165 --enable-dparen-arithmetic \
166 `[ "$mode" = "static" ] && echo "--enable-static-link"` \
167 --with-installed-readline
169 %{__make} DEFS="-DHAVE_CONFIG_H -D_GNU_SOURCE"
171 [ "$mode" = "static" ] && mv -f bash bash.static || :
175 rm -rf $RPM_BUILD_ROOT
176 install -d $RPM_BUILD_ROOT/{bin,etc/skel}
178 %{__make} install DESTDIR=$RPM_BUILD_ROOT
180 mv -f $RPM_BUILD_ROOT%{_bindir}/bash $RPM_BUILD_ROOT/bin
181 %{?_without_static:#}install bash.static $RPM_BUILD_ROOT/bin
183 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bashrc
184 echo .so bash.1 > $RPM_BUILD_ROOT%{_mandir}/man1/rbash.1
186 for d in es fr it ja ko nl pl ; do
187 install -d $RPM_BUILD_ROOT%{_mandir}/$d/man1
188 install man/$d/* $RPM_BUILD_ROOT%{_mandir}/$d/man1
189 echo .so bash.1 > $RPM_BUILD_ROOT%{_mandir}/$d/man1/rbash.1
192 ln -sf bash $RPM_BUILD_ROOT/bin/rbash
194 install %{SOURCE2} $RPM_BUILD_ROOT/etc/skel/.bash_logout
195 install %{SOURCE3} $RPM_BUILD_ROOT/etc/skel/.bash_profile
196 install %{SOURCE4} $RPM_BUILD_ROOT/etc/skel/.bashrc
198 gzip -9nf NEWS README doc/{FAQ,INTRO}
201 rm -rf $RPM_BUILD_ROOT
204 if [ ! -f /etc/shells ]; then
205 echo "/bin/bash" > /etc/shells
206 echo "/bin/rbash" >> /etc/shells
208 if ! grep -q '^/bin/bash$' /etc/shells; then
209 echo "/bin/bash" >> /etc/shells
211 if ! grep -q '^/bin/rbash$' /etc/shells; then
212 echo "/bin/rbash" >> /etc/shells
216 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
219 if [ ! -f /etc/shells ]; then
220 echo "/bin/bash.static" > /etc/shells
222 if ! grep -q '^/bin/bash.static$' /etc/shells; then
223 echo "/bin/bash.static" >> /etc/shells
228 if [ "$1" = "0" ]; then
229 grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
230 mv -f /etc/shells.new /etc/shells
234 if [ "$1" = "0" ]; then
235 grep -v /bin/bash.static /etc/shells > /etc/shells.new
236 mv -f /etc/shells.new /etc/shells
240 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
243 %defattr(644,root,root,755)
244 %doc {NEWS,README}.gz doc/{FAQ,INTRO}.gz
246 %config %verify(not md5 size mtime) %{_sysconfdir}/bashrc
247 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_logout
248 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_profile
249 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bashrc
251 %attr(755,root,root) /bin/bash
252 %attr(755,root,root) /bin/rbash
253 %attr(755,root,root) %{_bindir}/bashbug
255 %{_infodir}/bash.info.gz
257 %lang(es) %{_mandir}/es/man1/*
258 %lang(fr) %{_mandir}/fr/man1/*
259 %lang(it) %{_mandir}/it/man1/*
260 %lang(ja) %{_mandir}/ja/man1/*
261 %lang(ko) %{_mandir}/ko/man1/*
262 %lang(nl) %{_mandir}/nl/man1/*
263 %lang(pl) %{_mandir}/pl/man1/*
265 %{?_without_static:#}%files static
266 %{?_without_static:#}%defattr(644,root,root,755)
267 %{?_without_static:#}%attr(755,root,root) /bin/bash.static