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