Summary: bash-completion offers programmable completion for bash Summary(pl): Programowalne uzupełnianie nazw dla basha Name: bash-completion Version: 20030803 Release: 1 License: GPL Group: Applications/Shells Source0: http://www.caliban.org/files/bash/%{name}-%{version}.tar.bz2 # Source0-md5: 30087aa847688067a820aa5f9d937803 URL: http://www.caliban.org/bash/ Requires(post,preun): bash Requires(post): grep Requires(post): textutils Requires(postun): fileutils Requires(postun): sed BuildArch: noarch Requires: bash >= 2.05a-3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description bash-completion is a collection of shell functions that take advantage of the programmable completion feature of bash 2.04 and later. %description -l pl bash-completion jest kolekcją funkcji shella, które opierają się na wbudowanych rozszerzeniach basha 2.04 lub późniejszego umożliwiającego kompletowanie parametrów linii poleceń. %prep %setup -q -n bash_completion %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d install bash_completion $RPM_BUILD_ROOT%{_sysconfdir} %clean rm -rf $RPM_BUILD_ROOT %post if ! grep -q '\[ -f '%{_sysconfdir}'/bash_completion \]' \ %{_sysconfdir}/bashrc 2>/dev/null; then umask 022 cat <<'EOF' >> %{_sysconfdir}/bashrc # START bash completion -- do not remove this line bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} if [ "$PS1" ] && [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] \ && [ -f %{_sysconfdir}/bash_completion ]; then # interactive shell # Source completion code . %{_sysconfdir}/bash_completion fi unset bash bmajor bminor # END bash completion -- do not remove this line EOF fi %postun if [ "$1" -eq 0 ]; then umask 022 sed -e '/^# START bash completion/,/^# END bash completion/d' /etc/bashrc \ > /etc/bashrc.tmp mv -f /etc/bashrc.tmp /etc/bashrc fi %files %defattr(644,root,root,755) %doc README Changelog contrib BUGS %{_sysconfdir}/bash_completion %dir %{_sysconfdir}/bash_completion.d