Summary: bash-completion offers programmable completion for bash Summary(pl.UTF-8): Programowalne uzupełnianie nazw dla basha Name: bash-completion Version: 20081219 Release: 1 License: GPL Group: Applications/Shells Source0: ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{name}-%{version}.tar.bz2 # Source0-md5: 6b8f924417fb8cd758778025d97f2853 Source1: %{name}-poldek.sh Source2: %{name}.sh Patch0: %{name}-rpm-cache.patch Patch1: %{name}-mplayer.patch URL: http://bash-completion.alioth.debian.org/ Requires(triggerpostun): sed >= 4.0 Requires: bash >= 2.05a-3 Obsoletes: bash-completion-rpm-cache Conflicts: rpm < 4.4.9-44 BuildArch: noarch 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.UTF-8 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 %{name} %patch0 -p1 %patch1 -p1 %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir}/bash_completion.d,/etc/shrc.d} install bash_completion $RPM_BUILD_ROOT%{_sysconfdir} install contrib/* $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/poldek install %{SOURCE2} $RPM_BUILD_ROOT/etc/shrc.d %clean rm -rf $RPM_BUILD_ROOT %triggerpostun -- %{name} < 20050721-3.9 sed -i -e '/^# START bash completion/,/^# END bash completion/d' /etc/bashrc %files %defattr(644,root,root,755) %doc README TODO debian/changelog debian/copyright %{_sysconfdir}/bash_completion %{_sysconfdir}/bash_completion.d /etc/shrc.d/%{name}.sh