4 Summary: Small bourne shell from Berkeley
5 Summary(de): Kleine Bourne-Shell von Berkeley
6 Summary(fr): Shell Bourne réduit de Berkeley
7 Summary(pl): Ma³y shell bourne'a
8 Summary(ru): ïÂÌÅÇÞÅÎÎÁÑ ×ÅÒÓÉÑ Bourne shell (sh)
9 Summary(tr): Ufak bir bourne kabuðu
10 Summary(uk): ðÏÌÅÇÛÅÎÁ ×ÅÒÓ¦Ñ Bourne shell (sh)
15 Group: Applications/Shells
16 Source0: %{name}-%{version}.tar.gz
17 Patch0: %{name}-builtin.patch
18 Patch1: %{name}-echo.patch
19 Patch2: %{name}-getcwd.patch
20 Patch3: %{name}-getopt.patch
21 Patch4: %{name}-glob.patch
22 Patch5: %{name}-jobs.patch
23 Patch6: %{name}-kill.patch
24 Patch7: %{name}-makefile.patch
25 Patch8: %{name}-manpage.patch
26 Patch9: %{name}-hetio.patch
27 Patch10: %{name}-memout.patch
28 Patch11: %{name}-misc.patch
29 Patch12: %{name}-redir.patch
30 Patch13: %{name}-setmode.patch
31 Patch14: %{name}-syntax.patch
32 Patch15: %{name}-test.patch
33 Patch16: %{name}-times.patch
34 Patch17: %{name}-debian.patch
35 Patch18: %{name}-ppid.patch
36 Patch19: %{name}-freebsd.patch
37 Patch20: %{name}-sighup.patch
40 %{!?_without_static:BuildRequires: glibc-static}
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Conflicts: mkinitrd <= 1.7
49 ash is a bourne shell clone from Berkeley. It supports all of the
50 standard Bourne shell commands and has the advantage of supporting
51 them while remaining considerably smaller than bash.
54 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
55 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
56 weniger Platz beansprucht als bash.
59 ash est un clone Berkeley du shell Bourne. Il gère toutes les
60 commandes standard du shell Bourne et a l'avantage de les gérer tout
61 en restant considérablement plus petit que bash.
64 Ash jest klonem shella Bourne'a z Berkeley. Obs³uguje standardowe
65 komendy shella Bourne'a i jest mniejszy ni¿ bash.
68 ûÅÌÌ - ÜÔÏ ÂÁÚÏ×ÁÑ ÓÉÓÔÅÍÎÁÑ ÐÒÏÇÒÁÍÍÁ, ËÏÔÏÒÁÑ ÉÎÔÅÒÐÒÅÔÉÒÕÅÔ ËÏÍÁÎÄÙ
69 ÐÏÌØÚÏ×ÁÔÅÌÑ, ××ÏÄÉÍÙÅ Ó ËÌÁ×ÉÁÔÕÒÙ ÉÌÉ ÐÒÉ ÐÏÍÏÝÉ ÍÙÛÉ. Ash - ÜÔÏ
70 ËÌÏÎ Bourne shell (sh) ÉÚ âÅÒËÌÉ. Ash ÐÏÄÄÅÒÖÉ×ÁÅÔ ×ÓÅ ÓÔÁÎÄÁÒÔÎÙÅ
71 ËÏÍÁÎÄÙ ÛÅÌÌÁ sh, ÂÕÄÕÞÉ ÚÎÁÞÉÔÅÌØÎÏ ÍÅÎØÛÅ ÞÅÍ sh. ÷ ash ÏÔÓÕÔÓÔ×ÕÀÔ
72 ÎÅËÏÔÏÒÙÅ ×ÏÚÍÏÖÎÏÓÔÉ Bourne shell (ÎÁÐÒÉÍÅÒ, ÉÓÔÏÒÉÑ ËÏÍÁÎÄ), ÎÏ ÏÎ
73 ÔÒÅÂÕÅÔ ÚÎÁÞÉÔÅÌØÎÏ ÍÅÎØÛÅ ÐÁÍÑÔÉ.
76 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
77 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
81 ûÅÌ - ÃÅ ÂÁÚÏ×Á ÓÉÓÔÅÍÎÁ ÐÒÏÇÒÁÍÁ, ËÏÔÒÁ ¦ÎÔÅÒÐÒÅÔÕ¤ ËÏÍÁÎÄÉ
82 ËÏÒÉÓÔÕ×ÁÞÁ, Ñ˦ ××ÏÄÑÔØÓÑ Ú ËÌÁצÁÔÕÒÉ ÁÂÏ ÚÁ ÄÏÐÏÍÏÇÏÀ ÍÉÛ¦. Ash -
83 ÃÅ ËÌÏÎ Bourne shell (sh) Ú âÅÒË̦. Ash ЦÄÔÒÉÍÕ¤ ÕÓ¦ ÓÔÁÎÄÁÒÔΦ
84 ËÏÍÁÎÄÉ ÛÅÌÁ sh, ÂÕÄÕÞÉ ÚÎÁÞÎÏ ÍÅÎÛÉÍ Î¦Ö sh. ÷ ash צÄÓÕÔΦ ÄÅÑ˦
85 ÍÏÖÌÉ×ÏÓÔ¦ Bourne shell (ÎÁÐÒÉËÌÁÄ, ¦ÓÔÏÒ¦Ñ ËÏÍÁÎÄ), ÚÁÔŠצΠ×ÉÍÁÇÁ¤
89 Summary: Small bourne shell from Berkeley
90 Summary(de): Kleine Bourne-Shell von Berkeley
91 Summary(fr): Shell Bourne réduit de Berkeley
92 Summary(pl): Ma³y shell bourne'a
93 Summary(tr): Ufak bir bourne kabuðu
94 Group: Applications/Shells
97 Conflicts: mkinitrd <= 1.7
100 ash is a bourne shell clone from Berkeley. It supports all of the
101 standard Bourne shell commands and has the advantage of supporting
102 them while remaining considerably smaller than bash.
104 %description static -l de
105 ash ist ein Bourne-Shell-Clone aus Berkeley, der alle
106 Standard-Bourne-Shell- Befehle unterstützt und dennoch erheblich
107 weniger Platz beansprucht als bash.
109 %description static -l fr
110 ash est un clone Berkeley du shell Bourne. Il gère toutes les
111 commandes standard du shell Bourne et a l'avantage de les gérer tout
112 en restant considérablement plus petit que bash.
114 %description static -l pl
115 Ash jest klonem shella Bourne'a z Berkeley. Obs³uguje standardowe
116 komendy shella Bourne'a i jest mniejszy ni¿ bash.
118 %description static -l tr
119 ash, Berkeley'in bir bourne kabuðu kopyasýdýr. Standart bourne kabuðu
120 komutlarýnýn tümünü destekler ve bash kabuðundan daha küçük olma
142 # this is mainly for information, maybe add changelog to %doc?
150 %{!?_without_static:%{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="-static %{rpmldflags}"}
151 %{!?_without_static:mv -f sh ash.static}
152 %{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}"
155 rm -rf $RPM_BUILD_ROOT
157 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
158 install sh $RPM_BUILD_ROOT%{_bindir}/ash
159 %{!?_without_static:install ash.static $RPM_BUILD_ROOT%{_bindir}/ash.static}
160 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
161 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
162 ln -sf ash $RPM_BUILD_ROOT/%{_bindir}/bsh
165 if [ ! -f /etc/shells ]; then
166 echo "%{_bindir}/ash" > /etc/shells
167 echo "%{_bindir}/bsh" >> /etc/shells
169 if ! grep -q '^%{_bindir}/ash$' /etc/shells ; then
170 echo "%{_bindir}/ash" >> /etc/shells
172 if ! grep -q '^%{_bindir}/bsh$' /etc/shells ; then
173 echo "%{_bindir}/bsh" >> /etc/shells
178 if [ ! -f /etc/shells ]; then
179 echo "%{_bindir}/ash.static" >> /etc/shells
181 if ! grep -q '^%{_bindir}/ash.static$' /etc/shells ; then
182 echo "%{_bindir}/ash.static" >> /etc/shells
187 if [ "$1" = 0 ]; then
188 grep -v '^%{_bindir}/ash$' /etc/shells | grep -v '^%{_bindir}/bsh$' > /etc/shells.new
189 mv -f /etc/shells.new /etc/shells
193 if [ "$1" = 0 ]; then
194 grep -v '^%{_bindir}/ash\.static$' /etc/shells > /etc/shells.new
195 mv -f /etc/shells.new /etc/shells
199 for n in ash bsh ; do
200 echo -n "Looking for $n in /etc/shells... "
201 if ! grep -q "^%{_bindir}/${n}\$" /etc/shells ; then
203 echo "${n} missing from /etc/shells" >&2
210 echo -n "Looking for ash.static in /etc/shells... "
211 if ! grep -q '^%{_bindir}/ash\.static$' /etc/shells ; then
213 echo "ash.static missing from /etc/shells" >&2
219 rm -rf $RPM_BUILD_ROOT
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_bindir}/ash
224 %attr(755,root,root) %{_bindir}/bsh
227 %{!?_without_static:%files static}
228 %{!?_without_static:%defattr(644,root,root,755)}
229 %{!?_without_static:%attr(755,root,root) %{_bindir}/ash.static}