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: fafeed562b01a8dee079eb851579f2d2
11 Patch0: %{name}-FHS.patch
12 Patch1: %{name}-ifcfg.patch
13 URL: http://www.caliban.org/bash/
14 Requires(triggerpostun): sed >= 4.0
16 Requires: bash >= 2.05a-3
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 bash-completion is a collection of shell functions that take advantage
21 of the programmable completion feature of bash 2.04 and later.
24 bash-completion jest kolekcj± funkcji shella, które opieraj± siê na
25 wbudowanych rozszerzeniach basha 2.04 lub pó¼niejszego umo¿liwiaj±cego
26 kompletowanie parametrów linii poleceñ.
29 Summary: Cache result of rpm -qa
30 Summary(pl): Buforowanie wyniku rpm -qa
31 Group: Applications/Shells
33 %description rpm-cache
34 This package contains cached version of rpm -qa, which is used for rpm
35 completion for faster completion.
37 %description rpm-cache -l pl
38 Ten pakiet zawiera skrypt buforuj±cy wynik rpm -qa w celu szybszego
39 dope³niania linii poleceñ programu rpm.
42 %setup -q -n bash_completion
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/bash_completion.d,/etc/cron.daily,/etc/shrc.d,/var/cache}
50 install bash_completion $RPM_BUILD_ROOT%{_sysconfdir}
51 install contrib/* $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
53 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/rpmpkgs
54 > $RPM_BUILD_ROOT/var/cache/rpmpkgs.txt
56 # subversion comes with much better completion file
57 rm $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/subversion
59 cat <<'EOF' > %{name}.sh
61 [ -z "$BASH_VERSION" ] && return
63 # check for correct version of bash
64 bash=${BASH_VERSION%%.*}; bmajor=${bash%%.*}; bminor=${bash#*.}
65 if [ "$bmajor" -eq 2 -a "$bminor" '>' 04 ] || [ "$bmajor" -gt 2 ]; then
66 if [ "$PS1" ]; then # interactive shell
67 # Source completion code
68 . %{_sysconfdir}/bash_completion
71 unset bash bminor bmajor
74 install %{name}.sh $RPM_BUILD_ROOT/etc/shrc.d
77 rm -rf $RPM_BUILD_ROOT
79 %triggerpostun -- %{name} < 20050112-1
81 sed -i -e '/^# START bash completion/,/^# END bash completion/d' /etc/bashrc
84 %defattr(644,root,root,755)
85 %doc README Changelog BUGS
86 %{_sysconfdir}/bash_completion
87 %{_sysconfdir}/bash_completion.d/
88 %attr(755,root,root) /etc/shrc.d/%{name}.sh
91 %defattr(644,root,root,755)
92 %attr(755,root,root) /etc/cron.daily/*
93 %ghost /var/cache/rpmpkgs.txt