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