]> git.pld-linux.org Git - packages/bash.git/blob - bash.spec
- new %description's,
[packages/bash.git] / bash.spec
1 Summary:        GNU Bourne Again Shell (bash)
2 Summary(de):    GNU Bourne Again Shell (bash)
3 Summary(fr):    Le shell Bourne Again de GNU
4 Summary(pl):    GNU Bourne Again Shell (bash)
5 Summary(tr):    GNU Bourne Again Shell (bash)
6 Name:           bash
7 Version:        2.03
8 Release:        7
9 Group:          Shells
10 Group(pl):      Pow³oki
11 Copyright:      GPL
12 Source0:        ftp://prep.ai.mit.edu/pub/gnu/bash/%{name}-%{version}.tar.gz
13 Source1:        bashrc
14 Source2:        bash-skel-.bash_logout
15 Source3:        bash-skel-.bash_profile
16 Source4:        bash-skel-.bashrc
17 Source5:        bash-skel_pl-.bashrc
18 Patch0:         bash-arm.patch
19 Patch1:         bash-fixes.patch
20 Patch2:         bash-paths.patch
21 Patch3:         bash-security.patch
22 Patch4:         bash-autoconf.patch
23 Patch5:         bash-info.patch
24 Patch6:         bash-requires.patch
25 Patch7:         bash-profile.patch
26 BuildRequires:  ncurses-devel
27 PreReq:         /sbin/install-info
28 PreReq:         grep
29 PreReq:         fileutils
30 Buildroot:      /tmp/%{name}-%{version}-root
31
32 %description
33 Bash is a GNU project sh-compatible shell or command language interpreter.
34 Bash (Bourne Again shell) incorporates useful features from the Korn shell
35 (ksh) and the C shell (csh). Most sh scripts can be run by bash without
36 modification.
37
38 Bash offers several improvements over sh, including command line editing,
39 unlimited size command history, job control, shell functions and aliases,
40 indexed arrays of unlimited size and integer arithmetic in any base from two
41 to 64. Bash is ultimately intended to conform to the IEEE POSIX P1003.2/ISO
42 9945.2 Shell and Tools standard.
43
44 Bash is the default shell for Linux Mandrake. You should install bash
45 because of its popularity and power. You'll probably end up using it.
46
47 %description -l de
48 Bash ist eine sh-kompatible Shell und Kommandosprache aus dem GNU-Projekt.
49 Bash (Bourne Again Shell) vereinigt die nützlichen Features aus der
50 Korn-Shell (ksh) und der C-Shell (csh). Die meisten sh-Skripte laufen ohne
51 Änderungen auf bash.
52
53 Bash hat viele Erweiterungen im Vergleich zur "normalen" sh, wie z.B.
54 Kommandozeilenbearbeitung, unbeschränkte Größe der command-history,
55 Job-Kontrolle, Shell-Funktionen und -Aliase, unbegrenzt große indizierte
56 Arrays und Integer-Arithmetik in einer Basis von 2 bis 64. Hauptziel von
57 bash ist es, den IEEE POSIX P1003.2/ISO 9945.2 Shell- und Tools-Standard
58 einzuhalten.
59
60 Bash ist die Standard-Shell für Linux Mandrake.
61
62 %description -l fr
63 Bash est un shell (interpréteur de commande) du projet GNU, compatible avec
64 le shell historique sh. Bash (Bourne Again SHell) comprend de nombreuses
65 fonctionnalités du Korn SHell (ksh) et du C SHell (csh). La plupart des
66 scripts sh sont exécutables sans modifications.
67
68 Bash comprend nombre d'améliorations par rapport à sh : édition de la ligne
69 de commande, historique illimité, contrôle des processus d'arrière-plan,
70 fonctions de shell, alias, tableaux indexés de taille illimitée et calcul
71 sur des entiers dans n'importe quelle base de 2 à 64. Bash est conforme au
72 standard IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools.
73
74 Bash est le shell par défaut de Mandrake. Vous devriez l'installer du fait de
75 sa puissance et de sa popularité. Vous finirez probablement par l'utiliser.
76
77 %description -l pl
78 Bash jest zaawansowanym shellem, który wykonuje komendy czytane ze
79 standardowego wej¶cia (stdin) lub z pliku. Posiada w³a¶ciwo¶ci 
80 shelli Korn i C (ksh i csh). 
81
82 Bash ma równie¿ zaimplementowany IEEE Posix Shell oraz jest zgodny ze 
83 specyfikacj± - IEEE Working Group 1003.2.
84
85 %description -l tr
86 Bash standart giriþten ya da bir dosyadan komut okuyup çalýþtýran sh uyumlu
87 bir komut dili yorumlayýcýsýdýr. Ayný zamanda Korn ve C kabuklarýnýn (ksh ve
88 csh) kullanýþlý özelliklerini de kapsar. Bash, IEEE Posix Kabuk ve Araç
89 ayrýntýlarýna (IEEE Working Group 1003.2) uyumlu bir uygulama olarak
90 tasarlanmýþtýr.
91
92 %package static
93 Summary:        Staticly linked GNU Bourne Again Shell (bash)
94 Summary(pl):    Statycznie zlinkowany GNU Bourne Again Shell (bash)
95 Group:          Shells
96 Group(pl):      Pow³oki
97 Requires:       %{name}
98 PreReq:         grep
99 PreReq:         fileutils
100
101 %description static
102 Bash is a GNU project sh-compatible shell or command language interpreter.
103 Bash (Bourne Again shell) incorporates useful features from the Korn shell
104 (ksh) and the C shell (csh). Most sh scripts can be run by bash without
105 modification.
106
107 Bash offers several improvements over sh, including command line editing,
108 unlimited size command history, job control, shell functions and aliases,
109 indexed arrays of unlimited size and integer arithmetic in any base from two
110 to 64. Bash is ultimately intended to conform to the IEEE POSIX P1003.2/ISO
111 9945.2 Shell and Tools standard.
112
113 Bash is the default shell for Linux Mandrake. You should install bash
114 because of its popularity and power. You'll probably end up using it.
115
116 This packege contains staticly linked version of bash.
117
118 %description static -l pl
119 Bash jest zaawansowanym shellem, który wykonuje komendy czytane ze
120 standardowego wej¶cia (stdin) lub z pliku. Posiada w³a¶ciwo¶ci shelli Korn i
121 C (ksh i csh).
122
123 Bash ma równie¿ zaimplementowany IEEE Posix Shell oraz jest zgodny ze
124 specyfikacj± - IEEE Working Group 1003.2.
125
126 W tym pakiecie jest statycznie zlinkowany bash.
127
128 %prep
129 %setup  -q
130 %patch0 -p1
131 %patch1 -p1
132 %patch2 -p1
133 %patch3 -p1
134 %patch4 -p1
135 %patch5 -p1
136 %patch6 -p1
137 %patch7 -p1
138
139 echo %{version} > _distribution
140 echo %{release} > _patchlevel
141
142 %build
143 LDFLAGS="-s"; export LDFLAGS
144 %configure \
145         --enable-alias \
146         --enable-help-builtin \
147         --enable-history \
148         --enable-job-control \
149         --enable-restricted \
150         --enable-readline \
151         --with-curses \
152         --enable-extended-glob \
153         --enable-dparen-arithmetic \
154         --enable-static-link
155
156 make TERMCAP_LIB="-lncurses"
157 mv bash bash.static
158 make TERMCAP_LIB="-lncurses" STATIC_LD=""
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162 install -d $RPM_BUILD_ROOT{%{_mandir},%{_infodir}} \
163         $RPM_BUILD_ROOT/{bin,etc/skel/{C,pl}}
164
165 make install \
166         bindir=$RPM_BUILD_ROOT%{_bindir} \
167         infodir=$RPM_BUILD_ROOT%{_infodir} \
168         mandir=$RPM_BUILD_ROOT%{_mandir} 
169
170 mv $RPM_BUILD_ROOT%{_bindir}/bash       $RPM_BUILD_ROOT/bin
171 install -s bash.static  $RPM_BUILD_ROOT/bin
172
173 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/bashrc
174 echo    .so bash.1 >    $RPM_BUILD_ROOT%{_mandir}/man1/rbash.1
175 ln -sf  bash            $RPM_BUILD_ROOT/bin/rbash
176
177 install %{SOURCE2} $RPM_BUILD_ROOT/etc/skel/C/.bash_logout
178 install %{SOURCE3} $RPM_BUILD_ROOT/etc/skel/C/.bash_profile
179 install %{SOURCE4} $RPM_BUILD_ROOT/etc/skel/C/.bashrc
180 install %{SOURCE5} $RPM_BUILD_ROOT/etc/skel/pl/.bashrc
181
182 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/bash.info,%{_mandir}/man1/*} \
183         NEWS README doc/{FAQ,INTRO}
184
185 %post
186 if [ ! -f /etc/shells ]; then
187         echo "/bin/bash" > /etc/shells
188         echo "/bin/rbash" >> /etc/shells
189 else
190         if ! grep '^/bin/bash$' /etc/shells > /dev/null; then
191                 echo "/bin/bash" >> /etc/shells
192         fi
193         if ! grep '^/bin/rbash$' /etc/shells > /dev/null; then
194                 echo "/bin/rbash" >> /etc/shells
195         fi
196 fi
197
198 /sbin/install-info %{_infodir}/bash.info.gz /etc/info-dir
199
200 %post static
201 if [ ! -f /etc/shells ]; then
202         echo "/bin/bash.static" > /etc/shells
203 else
204         if ! grep '^/bin/bash.static$' /etc/shells > /dev/null; then
205                 echo "/bin/bash.static" >> /etc/shells
206         fi
207 fi
208
209 %preun
210 if [ $1 = 0 ]; then
211         grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
212         mv /etc/shells.new /etc/shells
213 fi
214
215 /sbin/install-info --delete %{_infodir}/bash.info.gz /etc/info-dir
216
217 %preun static
218 if [ $1 = 0 ]; then
219         grep -v /bin/bash.static /etc/shells > /etc/shells.new
220         mv /etc/shells.new /etc/shells
221 fi
222
223 %clean
224 rm -rf $RPM_BUILD_ROOT
225
226 %files
227 %defattr(644,root,root,755)
228 %doc {NEWS,README}.gz doc/{FAQ,INTRO}.gz
229
230 /etc/bashrc
231
232 /etc/skel/C/.bash_logout
233 /etc/skel/C/.bash_profile
234 /etc/skel/C/.bashrc
235 %lang(pl) /etc/skel/pl/.bashrc
236
237 %attr(755,root,root) /bin/bash
238 %attr(755,root,root) /bin/rbash
239 %attr(755,root,root) %{_bindir}/bashbug
240
241 %{_infodir}/bash.info.gz
242 %{_mandir}/man1/*
243
244 %files static
245 %attr(755,root,root) /bin/bash.static
This page took 0.050547 seconds and 4 git commands to generate.