]> git.pld-linux.org Git - packages/bash.git/blob - bash.spec
- release 7: added fr,it,ja,ko,nl,pl man pages
[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:        7
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 Source5:        %{name}-non-english-man-pages.tar.bz2
19 Patch0:         %{name}-paths.patch
20 Patch1:         %{name}-security.patch
21 Patch2:         %{name}-autoconf.patch
22 Patch3:         %{name}-info.patch
23 Patch4:         %{name}-profile.patch
24 Patch5:         %{name}-requires.patch
25 Patch6:         %{name}-compat.patch
26 Patch7:         %{name}-shellfunc.patch
27 Patch8:         http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/bash-2.05-ipv6-20010418.patch.gz
28 Patch9:         %{name}-DESTDIR.patch
29 Patch10:        %{name}-rlimit_locks.patch
30 Patch11:        %{name}-sighup.patch
31 Patch12:        %{name}-tmpfile.patch
32 BuildRequires:  ncurses-devel >= 5.2
33 BuildRequires:  readline-devel >= 4.2
34 BuildRequires:  glibc-devel >= 2.2
35 %if %{!?_without_static:1}%{?_without_static:0}
36 # Require static library only for static build
37 BuildRequires:  ncurses-static >= 5.2
38 BuildRequires:  readline-static >= 4.2
39 BuildRequires:  glibc-static >= 2.2
40 %endif
41 BuildRequires:  bison
42 BuildRequires:  autoconf
43 Prereq:         grep
44 Prereq:         fileutils
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Obsoletes:      bash-doc
47 Obsoletes:      bash2
48 Obsoletes:      bash2-doc
49 Obsoletes:      etcskel
50
51 %description
52 Bash is a GNU project sh-compatible shell or command language
53 interpreter. Bash (Bourne Again shell) incorporates useful features
54 from the Korn shell (ksh) and the C shell (csh). Most sh scripts can
55 be run by bash without modification. Bash offers several improvements
56 over sh, including command line editing, unlimited size command
57 history, job control, shell functions and aliases, indexed arrays of
58 unlimited size and integer arithmetic in any base from two to 64. Bash
59 is ultimately intended to conform to the IEEE POSIX P1003.2/ISO 9945.2
60 Shell and Tools standard. Bash is the default shell for Linux
61 Mandrake. You should install bash because of its popularity and power.
62 You'll probably end up using it.
63
64 %description -l de
65 Bash ist eine sh-kompatible Shell und Kommandosprache aus dem
66 GNU-Projekt. Bash (Bourne Again Shell) vereinigt die nützlichen
67 Features aus der Korn-Shell (ksh) und der C-Shell (csh). Die meisten
68 sh-Skripte laufen ohne Änderungen auf bash. Bash hat viele
69 Erweiterungen im Vergleich zur "normalen" sh, wie z.B.
70 Kommandozeilenbearbeitung, unbeschränkte Größe der command-history,
71 Job-Kontrolle, Shell-Funktionen und -Aliase, unbegrenzt große
72 indizierte Arrays und Integer-Arithmetik in einer Basis von 2 bis 64.
73 Hauptziel von bash ist es, den IEEE POSIX P1003.2/ISO 9945.2 Shell-
74 und Tools-Standard einzuhalten. Bash ist die Standard-Shell für Linux
75 Mandrake.
76
77 %description -l fr
78 Bash est un shell (interpréteur de commande) du projet GNU, compatible
79 avec le shell historique sh. Bash (Bourne Again SHell) comprend de
80 nombreuses fonctionnalités du Korn SHell (ksh) et du C SHell (csh). La
81 plupart des scripts sh sont exécutables sans modifications. Bash
82 comprend nombre d'améliorations par rapport à sh : édition de la ligne
83 de commande, historique illimité, contrôle des processus
84 d'arrière-plan, fonctions de shell, alias, tableaux indexés de taille
85 illimitée et calcul sur des entiers dans n'importe quelle base de 2 à
86 64. Bash est conforme au standard IEEE POSIX P1003.2/ISO 9945.2 Shell
87 and Tools. Bash est le shell par défaut de Mandrake. Vous devriez
88 l'installer du fait de sa puissance et de sa popularité. Vous finirez
89 probablement par l'utiliser.
90
91 %description -l pl
92 Bash (Bourne Again SHell) jest projektem GNU pow³oki kompatybilnej z
93 sh oraz interpretera jêzyka poleceñ. Posiada u¿yteczne w³a¶ciwo¶ci
94 pow³ok Korn (ksh) i C (csh). Wiêkszo¶æ skryptów sh mo¿e byæ
95 uruchamiana w bashu bez modyfikacji. Oferuje on kilka ulepszeñ w
96 stusunku do sh, w³±czaj±c edycjê linii poleceñ, nieograniczony rozmiar
97 historii poleceñ, funkcje i aliasy, indeksowane tablice
98 nieograniczonych rozmiarów oraz arytmetykê ca³kowitoliczbow± o
99 dowolnej podstawie od 2 do 64. W zamierzeniu ostatecznie ma byæ zgodny
100 ze standardem IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools.
101
102 %description -l tr
103 Bash standart giriþten ya da bir dosyadan komut okuyup çalýþtýran sh
104 uyumlu bir komut dili yorumlayýcýsýdýr. Ayný zamanda Korn ve C
105 kabuklarýnýn (ksh ve csh) kullanýþlý özelliklerini de kapsar. Bash,
106 IEEE Posix Kabuk ve Araç ayrýntýlarýna (IEEE Working Group 1003.2)
107 uyumlu bir uygulama olarak tasarlanmýþtýr.
108
109 %package static
110 Summary:        Staticly linked GNU Bourne Again Shell (bash)
111 Summary(pl):    Statycznie zlinkowany GNU Bourne Again Shell (bash)
112 Group:          Applications/Shells
113 Group(de):      Applikationen/Shells
114 Group(pl):      Aplikacje/Pow³oki
115 Requires:       %{name}
116 Prereq:         grep
117 Prereq:         fileutils
118
119 %description static
120 Bash is a GNU project sh-compatible shell or command language
121 interpreter. Bash (Bourne Again shell) incorporates useful features
122 from the Korn shell (ksh) and the C shell (csh). Most sh scripts can
123 be run by bash without modification. Bash offers several improvements
124 over sh, including command line editing, unlimited size command
125 history, job control, shell functions and aliases, indexed arrays of
126 unlimited size and integer arithmetic in any base from two to 64. Bash
127 is ultimately intended to conform to the IEEE POSIX P1003.2/ISO 9945.2
128 Shell and Tools standard. Bash is the default shell for Linux
129 Mandrake. You should install bash because of its popularity and power.
130 You'll probably end up using it. This packege contains staticly linked
131 version of bash.
132
133 %description static -l pl
134 Bash jest zaawansowanym shellem, który wykonuje komendy czytane ze
135 standardowego wej¶cia (stdin) lub z pliku. Posiada w³a¶ciwo¶ci pow³ok
136 Korn i C (ksh i csh). Bash ma równie¿ zaimplementowany IEEE Posix
137 Shell oraz jest zgodny ze specyfikacj± - IEEE Working Group 1003.2. W
138 tym pakiecie jest statycznie zlinkowany bash.
139
140 %prep
141 %setup -q -a5
142 %patch0 -p1
143 %patch1 -p1
144 %patch2 -p1
145 %patch3 -p1
146 %patch4 -p1
147 %patch5 -p1
148 %patch6 -p1
149 %patch7 -p1
150 %patch8 -p1
151 %patch9 -p1
152 %patch10 -p1
153 %patch11 -p1
154 %patch12 -p1
155
156 echo %{version} > _distribution
157 echo %{release} > _patchlevel
158
159 %build
160 autoconf
161 for mode in %{!?_without_static:static} shared; do
162 %configure \
163         --enable-alias \
164         --enable-help-builtin \
165         --enable-history \
166         --enable-job-control \
167         --enable-restricted \
168         --enable-readline \
169         --with-curses \
170         --enable-extended-glob \
171         --enable-dparen-arithmetic \
172         `[ "$mode" = "static" ] && echo "--enable-static-link"` \
173         --with-installed-readline
174
175 %{__make} DEFS="-DHAVE_CONFIG_H -D_GNU_SOURCE"
176
177 [ "$mode" = "static" ] && mv -f bash bash.static || :
178 done
179
180 %install
181 rm -rf $RPM_BUILD_ROOT
182 install -d $RPM_BUILD_ROOT/{bin,etc/skel}
183
184 %{__make} install DESTDIR=$RPM_BUILD_ROOT
185
186 mv -f $RPM_BUILD_ROOT%{_bindir}/bash $RPM_BUILD_ROOT/bin
187 %{?_without_static:#}install    bash.static $RPM_BUILD_ROOT/bin
188
189 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bashrc
190 echo .so bash.1 > $RPM_BUILD_ROOT%{_mandir}/man1/rbash.1
191
192 for d in fr it ja ko nl pl ; do
193         install -d $RPM_BUILD_ROOT%{_mandir}/$d/man1
194         install man/$d/* $RPM_BUILD_ROOT%{_mandir}/$d/man1
195         echo .so bash.1 > $RPM_BUILD_ROOT%{_mandir}/$d/man1/rbash.1
196 done
197
198 ln -sf bash $RPM_BUILD_ROOT/bin/rbash
199
200 install %{SOURCE2} $RPM_BUILD_ROOT/etc/skel/.bash_logout
201 install %{SOURCE3} $RPM_BUILD_ROOT/etc/skel/.bash_profile
202 install %{SOURCE4} $RPM_BUILD_ROOT/etc/skel/.bashrc
203
204 gzip -9nf NEWS README doc/{FAQ,INTRO}
205
206 %clean
207 rm -rf $RPM_BUILD_ROOT
208
209 %post
210 if [ ! -f /etc/shells ]; then
211         echo "/bin/bash" > /etc/shells
212         echo "/bin/rbash" >> /etc/shells
213 else
214         if ! grep -q '^/bin/bash$' /etc/shells; then
215                 echo "/bin/bash" >> /etc/shells
216         fi
217         if ! grep -q '^/bin/rbash$' /etc/shells; then
218                 echo "/bin/rbash" >> /etc/shells
219         fi
220 fi
221
222 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
223
224 %post static
225 if [ ! -f /etc/shells ]; then
226         echo "/bin/bash.static" > /etc/shells
227 else
228         if ! grep -q '^/bin/bash.static$' /etc/shells; then
229                 echo "/bin/bash.static" >> /etc/shells
230         fi
231 fi
232
233 %preun
234 if [ "$1" = "0" ]; then
235         grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
236         mv -f /etc/shells.new /etc/shells
237 fi
238
239 %preun static
240 if [ "$1" = "0" ]; then
241         grep -v /bin/bash.static /etc/shells > /etc/shells.new
242         mv -f /etc/shells.new /etc/shells
243 fi
244
245 %postun
246 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
247
248 %files
249 %defattr(644,root,root,755)
250 %doc {NEWS,README}.gz doc/{FAQ,INTRO}.gz
251
252 %config %verify(not md5 size mtime) %{_sysconfdir}/bashrc
253 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_logout
254 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_profile
255 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bashrc
256
257 %attr(755,root,root) /bin/bash
258 %attr(755,root,root) /bin/rbash
259 %attr(755,root,root) %{_bindir}/bashbug
260
261 %{_infodir}/bash.info.gz
262 %{_mandir}/man1/*
263 %lang(fr) %{_mandir}/fr/man1/*
264 %lang(it) %{_mandir}/it/man1/*
265 %lang(ja) %{_mandir}/ja/man1/*
266 %lang(ko) %{_mandir}/ko/man1/*
267 %lang(nl) %{_mandir}/nl/man1/*
268 %lang(pl) %{_mandir}/pl/man1/*
269
270 %{?_without_static:#}%files static
271 %{?_without_static:#}%defattr(644,root,root,755)
272 %{?_without_static:#}%attr(755,root,root) /bin/bash.static
This page took 0.051012 seconds and 4 git commands to generate.