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