2004-11-08 04:04:55 +00:00
|
|
|
Name: bash-completion
|
2006-03-02 21:12:24 +00:00
|
|
|
Version: 20060301
|
2006-08-30 21:27:32 +00:00
|
|
|
Release: 2%{?dist}
|
2004-11-08 04:04:55 +00:00
|
|
|
Summary: Programmable completion for Bash
|
|
|
|
|
|
|
|
Group: System Environment/Shells
|
|
|
|
License: GPL
|
|
|
|
URL: http://www.caliban.org/bash/
|
2005-07-12 19:59:19 +00:00
|
|
|
Source0: http://www.caliban.org/files/bash/%{name}-%{version}.tar.bz2
|
2005-11-28 20:26:32 +00:00
|
|
|
Source2: %{name}-mock
|
|
|
|
Source3: %{name}-repomanage
|
|
|
|
Source4: %{name}-plague-client
|
2004-11-08 04:04:55 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2005-07-18 19:58:47 +00:00
|
|
|
Requires: bash >= 2.05-12
|
2004-11-08 04:04:55 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
bash-completion is a collection of shell functions that take advantage
|
|
|
|
of the programmable completion feature of bash 2.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n bash_completion
|
2006-03-02 21:12:24 +00:00
|
|
|
f=Changelog ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
2005-11-28 20:26:32 +00:00
|
|
|
install -pm 644 %{SOURCE2} contrib/mock
|
|
|
|
install -pm 644 %{SOURCE3} contrib/plague-client
|
|
|
|
install -pm 644 %{SOURCE3} contrib/repomanage
|
2004-11-08 04:04:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT %{name}-ghosts.list
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
|
install -pm 644 bash_completion $RPM_BUILD_ROOT%{_sysconfdir}
|
2006-03-02 21:12:24 +00:00
|
|
|
install -pm 644 bash_completion.sh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
2004-11-08 04:04:55 +00:00
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
|
install -pm 644 contrib/* $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
|
|
|
cd contrib
|
|
|
|
for f in * ; do
|
|
|
|
ln -s %{_datadir}/%{name}/$f $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
|
|
|
echo "%ghost %{_sysconfdir}/bash_completion.d/$f" >> ../%{name}-ghosts.list
|
|
|
|
done
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
2005-11-28 20:26:32 +00:00
|
|
|
%define bashcomp_trigger() \
|
|
|
|
%triggerin -- %1\
|
|
|
|
if [ ! -e %{_sysconfdir}/bash_completion.d/%{?2}%{!?2:%1} ] ; then\
|
|
|
|
ln -s %{_datadir}/%{name}/%{?2}%{!?2:%1} %{_sysconfdir}/bash_completion.d\
|
|
|
|
fi\
|
|
|
|
%triggerun -- %1\
|
|
|
|
[ $2 -gt 0 ] || rm -f %{_sysconfdir}/bash_completion.d/%{?2}%{!?2:%1}\
|
|
|
|
%{nil}
|
|
|
|
|
2006-08-30 21:27:32 +00:00
|
|
|
# Not handled (yet?):
|
|
|
|
# bitkeeper, dsniff, harbour, larch, lisp, p4, povray, sitecopy
|
2005-11-28 20:26:32 +00:00
|
|
|
%bashcomp_trigger bittorrent
|
|
|
|
%bashcomp_trigger cksfv
|
2006-02-08 16:55:38 +00:00
|
|
|
%bashcomp_trigger clisp
|
2005-11-28 20:26:32 +00:00
|
|
|
%bashcomp_trigger freeciv
|
2006-02-08 16:55:38 +00:00
|
|
|
%bashcomp_trigger gcc-gnat gnatmake
|
2006-08-30 21:27:32 +00:00
|
|
|
%bashcomp_trigger gcl
|
2005-11-28 20:26:32 +00:00
|
|
|
%bashcomp_trigger gkrellm
|
2006-08-30 21:27:32 +00:00
|
|
|
%bashcomp_trigger lilypond
|
2005-11-28 20:26:32 +00:00
|
|
|
%bashcomp_trigger mailman
|
|
|
|
%bashcomp_trigger mcrypt
|
2006-08-30 21:27:32 +00:00
|
|
|
%bashcomp_trigger mercurial hg
|
2005-11-28 20:26:32 +00:00
|
|
|
%bashcomp_trigger mock
|
|
|
|
%bashcomp_trigger mtx
|
2006-08-30 21:27:32 +00:00
|
|
|
%bashcomp_trigger perl-SVK svk
|
2005-11-28 20:26:32 +00:00
|
|
|
%bashcomp_trigger plague-client
|
2006-02-08 16:55:38 +00:00
|
|
|
%bashcomp_trigger ruby-ri ri
|
|
|
|
%bashcomp_trigger sbcl
|
|
|
|
%bashcomp_trigger snownews
|
2005-11-28 20:26:32 +00:00
|
|
|
%bashcomp_trigger unace
|
2006-02-08 16:55:38 +00:00
|
|
|
%bashcomp_trigger unixODBC isql
|
2005-11-28 20:26:32 +00:00
|
|
|
%bashcomp_trigger unrar
|
|
|
|
%bashcomp_trigger yum-utils repomanage
|
2004-11-08 04:04:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}-ghosts.list
|
2005-11-28 20:26:32 +00:00
|
|
|
%defattr(-,root,root,-)
|
2004-11-08 04:04:55 +00:00
|
|
|
%doc BUGS Changelog COPYING README
|
2005-11-28 20:26:32 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/profile.d/bash_completion.sh
|
|
|
|
%{_sysconfdir}/bash_completion
|
|
|
|
%dir %{_sysconfdir}/bash_completion.d/
|
|
|
|
%{_datadir}/%{name}/
|
2004-11-08 04:04:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2006-08-30 21:27:32 +00:00
|
|
|
* Thu Aug 31 2006 Ville Skyttä <ville.skytta at iki.fi> - 20060301-2
|
|
|
|
- Trigger-install support for gcl, lilypond, mercurial and svk.
|
|
|
|
- Improve mock completion a bit.
|
|
|
|
|
2006-03-02 21:12:24 +00:00
|
|
|
* Thu Mar 2 2006 Ville Skyttä <ville.skytta at iki.fi> - 20060301-1
|
|
|
|
- 20060301, patches and profile.d scriptlet applied/included upstream.
|
|
|
|
- Convert docs to UTF-8.
|
|
|
|
|
2006-02-08 16:55:38 +00:00
|
|
|
* Wed Feb 8 2006 Ville Skyttä <ville.skytta at iki.fi> - 20050721-4
|
|
|
|
- Don't source ourselves in non-interactive shells (#180419, Behdad Esfahbod).
|
|
|
|
- Trigger-install snippets for clisp, gnatmake, isql, ri, sbcl, and snownews.
|
|
|
|
|
2006-02-04 19:11:14 +00:00
|
|
|
* Sat Feb 4 2006 Ville Skyttä <ville.skytta at iki.fi>
|
|
|
|
- Add mtr(8) completion using known hosts (#179918, Yanko Kaneti).
|
|
|
|
|
2006-01-17 20:59:57 +00:00
|
|
|
* Sun Jan 8 2006 Ville Skyttä <ville.skytta at iki.fi> - 20050721-3
|
|
|
|
- Patch to hopefully fix quoting problems with bash 3.1 (#177056).
|
|
|
|
|
2005-11-28 20:26:32 +00:00
|
|
|
* Mon Nov 28 2005 Ville Skyttä <ville.skytta at iki.fi> - 20050721-2
|
|
|
|
- Work around potential login problem in profile.d snippet (#174355).
|
|
|
|
|
|
|
|
* Sat Nov 26 2005 Ville Skyttä <ville.skytta at iki.fi>
|
|
|
|
- Don't mark the main source file as %%config.
|
|
|
|
- Make profile.d snippet non-executable (#35714) and noreplace.
|
|
|
|
- Add mock, plague-client and repomanage completion.
|
|
|
|
- Allow "cvs stat" completion.
|
|
|
|
- Macroize trigger creation.
|
|
|
|
|
2005-07-22 06:51:53 +00:00
|
|
|
* Fri Jul 22 2005 Ville Skyttä <ville.skytta at iki.fi> - 20050721-1
|
|
|
|
- 20050721.
|
|
|
|
|
2005-07-20 15:25:04 +00:00
|
|
|
* Wed Jul 20 2005 Ville Skyttä <ville.skytta at iki.fi> - 20050720-1
|
|
|
|
- 20050720, all patches applied upstream.
|
|
|
|
|
2005-07-18 19:58:47 +00:00
|
|
|
* Mon Jul 18 2005 Ville Skyttä <ville.skytta at iki.fi> - 20050712-1
|
2005-07-12 19:59:19 +00:00
|
|
|
- 20050712.
|
2005-07-18 19:58:47 +00:00
|
|
|
- Add more OO.o2 extensions, and *.pdf for evince (#163520, Horst von Brand).
|
|
|
|
- Add/fix support for some multimedia formats and players.
|
|
|
|
- Fix tarball completion.
|
2005-07-12 19:59:19 +00:00
|
|
|
|
2005-02-26 18:50:09 +00:00
|
|
|
* Sat Jan 22 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:20050121-2
|
|
|
|
- Update to 20050121.
|
|
|
|
|
2005-01-17 20:00:20 +00:00
|
|
|
* Thu Jan 13 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:20050112-1
|
|
|
|
- Update to 20050112, openssl patch applied upstream.
|
|
|
|
|
2005-01-04 23:23:51 +00:00
|
|
|
* Wed Jan 5 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:20050103-1
|
|
|
|
- Update to 20050103.
|
|
|
|
|
2004-11-27 15:44:30 +00:00
|
|
|
* Sat Nov 27 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:20041017-5
|
|
|
|
- Change version scheme, bump release to provide Extras upgrade path.
|
|
|
|
|
|
|
|
* Sat Nov 6 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.4.20041017
|
|
|
|
- Do the right thing with bash >= 3 too in profile.d snippet (bug 2228, thanks
|
|
|
|
to Thorsten Leemhuis).
|
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
* Mon Oct 18 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20041017
|
|
|
|
- Update to 20041017, adds dhclient, lvm, and bittorrent completion.
|
|
|
|
|
2004-11-08 04:04:55 +00:00
|
|
|
* Mon Jul 12 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20040711
|
|
|
|
- Update to 20040711, patches applied upstream.
|
|
|
|
|
|
|
|
* Sun Jul 4 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20040704
|
|
|
|
- Update to 20040704.
|
|
|
|
- Change to symlinked /etc/bash_completion.d snippets, add patch to read them.
|
|
|
|
|
|
|
|
* Wed May 26 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20040526
|
|
|
|
- Update to 20040526.
|
|
|
|
|
|
|
|
* Thu Apr 1 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20040331
|
|
|
|
- Add command-specific contrib snippet copying triggers.
|
|
|
|
|
|
|
|
* Thu Apr 1 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.2.20040331
|
|
|
|
- Update to 20040331.
|
|
|
|
|
|
|
|
* Sun Feb 15 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.2.20040214
|
|
|
|
- Update to 20040214.
|
|
|
|
|
|
|
|
* Wed Feb 11 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.2.20040210
|
|
|
|
- Update to 20040210.
|
|
|
|
|
|
|
|
* Fri Jan 2 2004 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.2.20040101
|
|
|
|
- Update to 20040101.
|
|
|
|
- Update %%description.
|
|
|
|
|
|
|
|
* Sat Dec 27 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.2.20031225
|
|
|
|
- Update to 20031225.
|
|
|
|
|
|
|
|
* Sat Dec 20 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.2.20031215
|
|
|
|
- Don't pull in *.rpm* from %%{_sysconfdir}/bash_completion.d.
|
|
|
|
|
|
|
|
* Mon Dec 15 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20031215
|
|
|
|
- Update to 20031215.
|
|
|
|
|
|
|
|
* Sun Nov 30 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20031125
|
|
|
|
- Update to 20031125.
|
|
|
|
|
|
|
|
* Thu Nov 13 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20031112
|
|
|
|
- Update to 20031112.
|
|
|
|
|
|
|
|
* Wed Oct 22 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20031022
|
|
|
|
- Update to 20031022.
|
|
|
|
|
|
|
|
* Tue Oct 7 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20031007
|
|
|
|
- Update to 20031007.
|
|
|
|
|
|
|
|
* Tue Sep 30 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20030929
|
|
|
|
- Update to 20030929.
|
|
|
|
|
|
|
|
* Fri Sep 12 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20030911
|
|
|
|
- Update to 20030911.
|
|
|
|
|
|
|
|
* Thu Aug 21 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20030821
|
|
|
|
- Update to 20030821.
|
|
|
|
- Drop .nosrc.rpm patch, already applied upstream.
|
|
|
|
|
|
|
|
* Sat Aug 16 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20030811
|
|
|
|
- Update to 20030811.
|
|
|
|
- Patch to make rpm --rebuild work with .nosrc.rpm's.
|
|
|
|
|
|
|
|
* Sun Aug 3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.0-0.fdr.1.20030803
|
|
|
|
- Update to 20030803.
|
|
|
|
|
|
|
|
* Wed Jul 23 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.0-0.fdr.1.20030721
|
|
|
|
- Update to 20030721.
|
|
|
|
|
|
|
|
* Sun Jul 13 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.0-0.fdr.1.20030713
|
|
|
|
- Update to 20030713.
|
|
|
|
|
|
|
|
* Mon Jun 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.0-0.fdr.1.20030630
|
|
|
|
- Update to 20030630.
|
|
|
|
|
|
|
|
* Sun Jun 8 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.0-0.fdr.1.20030607
|
|
|
|
- Update to 20030607.
|
|
|
|
|
|
|
|
* Tue May 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.0-0.fdr.1.20030527
|
|
|
|
- Update to 20030527.
|
|
|
|
|
|
|
|
* Sat May 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.0-0.fdr.1.20030505
|
|
|
|
- First build.
|