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