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