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