]> git.pld-linux.org Git - packages/bash.git/blob - bash.spec
- BuildRequires: autoconf
[packages/bash.git] / bash.spec
1 Summary:        GNU Bourne Again Shell (bash)
2 Summary(de):    GNU Bourne Again Shell (bash)
3 Summary(fr):    Le shell Bourne Again de GNU
4 Summary(pl):    GNU Bourne Again Shell (bash)
5 Summary(tr):    GNU Bourne Again Shell (bash)
6 Name:           bash
7 Version:        2.05
8 Release:        6
9 License:        GPL
10 Group:          Applications/Shells
11 Group(de):      Applikationen/Shells
12 Group(pl):      Aplikacje/Pow³oki
13 Source0:        ftp://prep.ai.mit.edu/pub/gnu/bash/%{name}-%{version}.tar.gz
14 Source1:        %{name}rc
15 Source2:        %{name}-skel-.bash_logout
16 Source3:        %{name}-skel-.bash_profile
17 Source4:        %{name}-skel-.bashrc
18 Patch0:         %{name}-paths.patch
19 Patch1:         %{name}-security.patch
20 Patch2:         %{name}-autoconf.patch
21 Patch3:         %{name}-info.patch
22 Patch4:         %{name}-profile.patch
23 Patch5:         %{name}-requires.patch
24 Patch6:         %{name}-compat.patch
25 Patch7:         %{name}-shellfunc.patch
26 Patch8:         http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/bash-2.05-ipv6-20010418.patch.gz
27 Patch9:         %{name}-DESTDIR.patch
28 Patch10:        %{name}-rlimit_locks.patch
29 Patch11:        %{name}-sighup.patch
30 Patch12:        %{name}-tmpfile.patch
31 BuildRequires:  ncurses-devel >= 5.2
32 BuildRequires:  readline-devel >= 4.2
33 BuildRequires:  glibc-devel >= 2.2
34 %if %{!?_without_static:1}%{?_without_static:0}
35 # Require static library only for static build
36 BuildRequires:  ncurses-static >= 5.2
37 BuildRequires:  readline-static >= 4.2
38 BuildRequires:  glibc-static >= 2.2
39 %endif
40 BuildRequires:  bison
41 BuildRequires:  autoconf
42 Prereq:         grep
43 Prereq:         fileutils
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:        Staticly linked GNU Bourne Again Shell (bash)
110 Summary(pl):    Statycznie zlinkowany GNU Bourne Again Shell (bash)
111 Group:          Applications/Shells
112 Group(de):      Applikationen/Shells
113 Group(pl):      Aplikacje/Pow³oki
114 Requires:       %{name}
115 Prereq:         grep
116 Prereq:         fileutils
117
118 %description static
119 Bash is a GNU project sh-compatible shell or command language
120 interpreter. Bash (Bourne Again shell) incorporates useful features
121 from the Korn shell (ksh) and the C shell (csh). Most sh scripts can
122 be run by bash without modification. Bash offers several improvements
123 over sh, including command line editing, unlimited size command
124 history, job control, shell functions and aliases, indexed arrays of
125 unlimited size and integer arithmetic in any base from two to 64. Bash
126 is ultimately intended to conform to the IEEE POSIX P1003.2/ISO 9945.2
127 Shell and Tools standard. Bash is the default shell for Linux
128 Mandrake. You should install bash because of its popularity and power.
129 You'll probably end up using it. This packege contains staticly linked
130 version of bash.
131
132 %description static -l pl
133 Bash jest zaawansowanym shellem, który wykonuje komendy czytane ze
134 standardowego wej¶cia (stdin) lub z pliku. Posiada w³a¶ciwo¶ci pow³ok
135 Korn i C (ksh i csh). Bash ma równie¿ zaimplementowany IEEE Posix
136 Shell oraz jest zgodny ze specyfikacj± - IEEE Working Group 1003.2. W
137 tym pakiecie jest statycznie zlinkowany bash.
138
139 %prep
140 %setup  -q
141 %patch0 -p1
142 %patch1 -p1
143 %patch2 -p1
144 %patch3 -p1
145 %patch4 -p1
146 %patch5 -p1
147 %patch6 -p1
148 %patch7 -p1
149 %patch8 -p1
150 %patch9 -p1
151 %patch10 -p1
152 %patch11 -p1
153 %patch12 -p1
154
155 echo %{version} > _distribution
156 echo %{release} > _patchlevel
157
158 %build
159 autoconf
160 for mode in %{!?_without_static:static} shared; do
161 %configure \
162         --enable-alias \
163         --enable-help-builtin \
164         --enable-history \
165         --enable-job-control \
166         --enable-restricted \
167         --enable-readline \
168         --with-curses \
169         --enable-extended-glob \
170         --enable-dparen-arithmetic \
171         `[ "$mode" = "static" ] && echo "--enable-static-link"` \
172         --with-installed-readline
173
174 %{__make} DEFS="-DHAVE_CONFIG_H -D_GNU_SOURCE"
175
176 [ "$mode" = "static" ] && mv -f bash bash.static || :
177 done
178
179 %install
180 rm -rf $RPM_BUILD_ROOT
181 install -d $RPM_BUILD_ROOT/{bin,etc/skel}
182
183 %{__make} install DESTDIR=$RPM_BUILD_ROOT
184
185 mv -f $RPM_BUILD_ROOT%{_bindir}/bash $RPM_BUILD_ROOT/bin
186 %{?_without_static:#}install    bash.static $RPM_BUILD_ROOT/bin
187
188 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bashrc
189 echo .so bash.1 > $RPM_BUILD_ROOT%{_mandir}/man1/rbash.1
190
191 ln -sf bash $RPM_BUILD_ROOT/bin/rbash
192
193 install %{SOURCE2} $RPM_BUILD_ROOT/etc/skel/.bash_logout
194 install %{SOURCE3} $RPM_BUILD_ROOT/etc/skel/.bash_profile
195 install %{SOURCE4} $RPM_BUILD_ROOT/etc/skel/.bashrc
196
197 gzip -9nf NEWS README doc/{FAQ,INTRO}
198
199 %clean
200 rm -rf $RPM_BUILD_ROOT
201
202 %post
203 if [ ! -f /etc/shells ]; then
204         echo "/bin/bash" > /etc/shells
205         echo "/bin/rbash" >> /etc/shells
206 else
207         if ! grep -q '^/bin/bash$' /etc/shells; then
208                 echo "/bin/bash" >> /etc/shells
209         fi
210         if ! grep -q '^/bin/rbash$' /etc/shells; then
211                 echo "/bin/rbash" >> /etc/shells
212         fi
213 fi
214
215 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
216
217 %post static
218 if [ ! -f /etc/shells ]; then
219         echo "/bin/bash.static" > /etc/shells
220 else
221         if ! grep -q '^/bin/bash.static$' /etc/shells; then
222                 echo "/bin/bash.static" >> /etc/shells
223         fi
224 fi
225
226 %preun
227 if [ "$1" = "0" ]; then
228         grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
229         mv -f /etc/shells.new /etc/shells
230 fi
231
232 %preun static
233 if [ "$1" = "0" ]; then
234         grep -v /bin/bash.static /etc/shells > /etc/shells.new
235         mv -f /etc/shells.new /etc/shells
236 fi
237
238 %postun
239 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
240
241 %files
242 %defattr(644,root,root,755)
243 %doc {NEWS,README}.gz doc/{FAQ,INTRO}.gz
244
245 %config %verify(not md5 size mtime) %{_sysconfdir}/bashrc
246 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_logout
247 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_profile
248 %config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bashrc
249
250 %attr(755,root,root) /bin/bash
251 %attr(755,root,root) /bin/rbash
252 %attr(755,root,root) %{_bindir}/bashbug
253
254 %{_infodir}/bash.info.gz
255 %{_mandir}/man1/*
256
257 %{?_without_static:#}%files static
258 %{?_without_static:#}%defattr(644,root,root,755)
259 %{?_without_static:#}%attr(755,root,root) /bin/bash.static
This page took 0.062209 seconds and 4 git commands to generate.