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