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