]> git.pld-linux.org Git - packages/bash.git/blob - bash.spec
- updated to 2.05a
[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.05a
6 Release:        1
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:         %{name}-DESTDIR.patch
40 Patch9:         %{name}-rlimit_locks.patch
41 Patch10:        %{name}-sighup.patch
42 Patch11:        %{name}-tmpfile.patch
43 BuildRequires:  autoconf
44 BuildRequires:  automake
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
181 echo %{version} > _distribution
182 echo %{release} > _patchlevel
183
184 %build
185 autoconf
186 cp -f /usr/share/automake/config.* support/
187 for mode in %{!?_without_static:static} shared; do
188 %configure \
189         --enable-alias \
190         --enable-help-builtin \
191         --enable-history \
192         --enable-job-control \
193         --enable-restricted \
194         --enable-readline \
195         --with-curses \
196         --enable-extended-glob \
197         --enable-dparen-arithmetic \
198         `[ "$mode" = "static" ] && echo "--enable-static-link"` \
199         --with-installed-readline
200
201 %{__make} DEFS="-DHAVE_CONFIG_H -D_GNU_SOURCE"
202
203 [ "$mode" = "static" ] && mv -f bash bash.static || :
204 done
205
206 %install
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT/{bin,etc/skel}
209
210 %{__make} install DESTDIR=$RPM_BUILD_ROOT
211
212 mv -f $RPM_BUILD_ROOT%{_bindir}/bash $RPM_BUILD_ROOT/bin
213 %{?_without_static:#}install    bash.static $RPM_BUILD_ROOT/bin
214
215 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bashrc
216 echo .so bash.1 > $RPM_BUILD_ROOT%{_mandir}/man1/rbash.1
217
218 for d in es fr it ja ko nl pl ; do
219         install -d $RPM_BUILD_ROOT%{_mandir}/$d/man1
220         install man/$d/* $RPM_BUILD_ROOT%{_mandir}/$d/man1
221         echo .so bash.1 > $RPM_BUILD_ROOT%{_mandir}/$d/man1/rbash.1
222 done
223
224 ln -sf bash $RPM_BUILD_ROOT/bin/rbash
225
226 install %{SOURCE2} $RPM_BUILD_ROOT/etc/skel/.bash_logout
227 install %{SOURCE3} $RPM_BUILD_ROOT/etc/skel/.bash_profile
228 install %{SOURCE4} $RPM_BUILD_ROOT/etc/skel/.bashrc
229
230 gzip -9nf NEWS README doc/{FAQ,INTRO}
231
232 %clean
233 rm -rf $RPM_BUILD_ROOT
234
235 %post
236 if [ ! -f /etc/shells ]; then
237         echo "/bin/bash" > /etc/shells
238         echo "/bin/rbash" >> /etc/shells
239 else
240         if ! grep -q '^/bin/bash$' /etc/shells; then
241                 echo "/bin/bash" >> /etc/shells
242         fi
243         if ! grep -q '^/bin/rbash$' /etc/shells; then
244                 echo "/bin/rbash" >> /etc/shells
245         fi
246 fi
247
248 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
249
250 %post static
251 if [ ! -f /etc/shells ]; then
252         echo "/bin/bash.static" > /etc/shells
253 else
254         if ! grep -q '^/bin/bash.static$' /etc/shells; then
255                 echo "/bin/bash.static" >> /etc/shells
256         fi
257 fi
258
259 %preun
260 if [ "$1" = "0" ]; then
261         grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
262         mv -f /etc/shells.new /etc/shells
263 fi
264
265 %preun static
266 if [ "$1" = "0" ]; then
267         grep -v /bin/bash.static /etc/shells > /etc/shells.new
268         mv -f /etc/shells.new /etc/shells
269 fi
270
271 %postun
272 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
273
274 %files
275 %defattr(644,root,root,755)
276 %doc {NEWS,README}.gz doc/{FAQ,INTRO}.gz
277
278 %config %verify(not md5 size mtime) %{_sysconfdir}/bashrc
279 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_logout
280 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_profile
281 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bashrc
282
283 %attr(755,root,root) /bin/bash
284 %attr(755,root,root) /bin/rbash
285 %attr(755,root,root) %{_bindir}/bashbug
286
287 %{_infodir}/bash.info.gz
288 %{_mandir}/man1/*
289 %lang(es) %{_mandir}/es/man1/*
290 %lang(fr) %{_mandir}/fr/man1/*
291 %lang(it) %{_mandir}/it/man1/*
292 %lang(ja) %{_mandir}/ja/man1/*
293 %lang(ko) %{_mandir}/ko/man1/*
294 %lang(nl) %{_mandir}/nl/man1/*
295 %lang(pl) %{_mandir}/pl/man1/*
296
297 %{?_without_static:#}%files static
298 %{?_without_static:#}%defattr(644,root,root,755)
299 %{?_without_static:#}%attr(755,root,root) /bin/bash.static
This page took 0.045141 seconds and 4 git commands to generate.