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