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