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