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