1 Summary: bash-completion offers programmable completion for bash
2 Summary(pl): Programowalne uzupe³nianie nazw dla basha
7 Group: Applications/Shells
8 Source0: http://www.caliban.org/files/bash/%{name}-%{version}.tar.bz2
9 # Source0-md5: 0ee7009b18ff862f8a63c2395e5fd100
11 Patch0: %{name}-FHS.patch
12 URL: http://www.caliban.org/bash/
13 Requires(post,preun): bash
15 Requires(post): textutils
16 Requires(postun): fileutils
19 Requires: bash >= 2.05a-3
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 bash-completion is a collection of shell functions that take advantage
24 of the programmable completion feature of bash 2.04 and later.
27 bash-completion jest kolekcj± funkcji shella, które opieraj± siê na
28 wbudowanych rozszerzeniach basha 2.04 lub pó¼niejszego umo¿liwiaj±cego
29 kompletowanie parametrów linii poleceñ.
32 Summary: Cache result of rpm -qa
33 Summary(pl): Buforowanie wyniku rpm -qa
34 Group: Applications/Shells
36 %description rpm-cache
37 This package contains cached version of rpm -qa, which is used for rpm
38 completion for faster completion.
40 %description rpm-cache -l pl
41 Ten pakiet zawiera skrypt buforuj±cy wynik rpm -qa w celu szybszego
42 dope³niania linii poleceñ programu rpm.
45 %setup -q -n bash_completion
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/bash_completion.d,/etc/cron.daily,/var/cache}
52 install bash_completion $RPM_BUILD_ROOT%{_sysconfdir}
53 install contrib/* $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/rpmpkgs
56 > $RPM_BUILD_ROOT/var/cache/rpmpkgs.txt
58 # subversion comes with much better completion file
59 rm $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/subversion
62 rm -rf $RPM_BUILD_ROOT
65 if ! grep -q '\[ -f '%{_sysconfdir}'/bash_completion \]' \
66 %{_sysconfdir}/bashrc 2>/dev/null; then
68 cat <<'EOF' >> %{_sysconfdir}/bashrc
69 # START bash completion -- do not remove this line
70 bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
71 if [ "$bmajor" -eq 2 -a "$bminor" '>' 04 ] || [ "$bmajor" -gt 2 ]; then
72 if [ "$PS1" ] && [ -f %{_sysconfdir}/bash_completion ]; then # interactive shell
73 # Source completion code
74 . %{_sysconfdir}/bash_completion
77 unset bash bmajor bminor
78 # END bash completion -- do not remove this line
83 if [ "$1" -eq 0 ]; then
85 sed -e '/^# START bash completion/,/^# END bash completion/d' /etc/bashrc \
87 mv -f /etc/bashrc.tmp /etc/bashrc
91 %defattr(644,root,root,755)
92 %doc README Changelog BUGS
93 %{_sysconfdir}/bash_completion
94 %{_sysconfdir}/bash_completion.d/
97 %attr(755,root,root) /etc/cron.daily/*
98 %ghost /var/cache/rpmpkgs.txt