Update trigger macros

This commit is contained in:
Jeff Sheltren 2007-06-24 17:50:07 +00:00
parent 1a7a342ecd
commit 0f1bffacc8

View File

@ -1,6 +1,6 @@
Name: bash-completion Name: bash-completion
Version: 20060301 Version: 20060301
Release: 3%{?dist} Release: 4%{?dist}
Summary: Programmable completion for Bash Summary: Programmable completion for Bash
Group: System Environment/Shells Group: System Environment/Shells
@ -55,39 +55,121 @@ cd -
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%define bashcomp_trigger() \ %define do_triggerin() if [ ! -e %{_sysconfdir}/bash_completion.d/%1 ] ; then ln -s %{_datadir}/%{name}/%1 %{_sysconfdir}/bash_completion.d || : ; fi
%triggerin -- %1\ %define do_triggerun() [ $2 -gt 0 ] || rm -f %{_sysconfdir}/bash_completion.d/%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}
# Not handled (yet?): # Not handled (yet?):
# bitkeeper, dsniff, harbour, larch, lisp, p4, povray, sitecopy # bitkeeper, dsniff, harbour, larch, lisp, p4, povray, sitecopy
%bashcomp_trigger bittorrent
%bashcomp_trigger cksfv %triggerin -- bittorrent
%bashcomp_trigger clisp %do_triggerin bittorrent
%bashcomp_trigger freeciv %triggerun -- bittorrent
%bashcomp_trigger gcc-gnat gnatmake %do_triggerun bittorrent
%bashcomp_trigger gcl
%bashcomp_trigger gkrellm %triggerin -- cksfv
%bashcomp_trigger lilypond %do_triggerin cksfv
%bashcomp_trigger mailman %triggerun -- cksfv
%bashcomp_trigger mcrypt %do_triggerun cksfv
%bashcomp_trigger mercurial hg
%bashcomp_trigger mock %triggerin -- clisp
%bashcomp_trigger mtx %do_triggerin clisp
%bashcomp_trigger perl-SVK svk %triggerun -- clisp
%bashcomp_trigger plague-client %do_triggerun clisp
%bashcomp_trigger ruby-ri ri
%bashcomp_trigger sbcl %triggerin -- freeciv
%bashcomp_trigger snownews %do_triggerin freeciv
%bashcomp_trigger unace %triggerun -- freeciv
%bashcomp_trigger unixODBC isql %do_triggerun freeciv
%bashcomp_trigger unrar
%bashcomp_trigger yum-utils repomanage %triggerin -- gcc-gnat
%do_triggerin gnatmake
%triggerun -- gcc-gnat
%do_triggerun gnatmake
%triggerin -- gcl
%do_triggerin gcl
%triggerun -- gcl
%do_triggerun gcl
%triggerin -- gkrellm
%do_triggerin gkrellm
%triggerun -- gkrellm
%do_triggerun gkrellm
%triggerin -- lilypond
%do_triggerin lilypond
%triggerun -- lilypond
%do_triggerun lilypond
%triggerin -- mailman
%do_triggerin mailman
%triggerun -- mailman
%do_triggerun mailman
%triggerin -- mcrypt
%do_triggerin mcrypt
%triggerun -- mcrypt
%do_triggerun mcrypt
%triggerin -- mercurial
%do_triggerin hg
%triggerun -- mercurial
%do_triggerun hg
%triggerin -- mock
%do_triggerin mock
%triggerun -- mock
%do_triggerun mock
%triggerin -- mtx
%do_triggerin mtx
%triggerun -- mtx
%do_triggerun mtx
%triggerin -- perl-SVK
%do_triggerin svk
%triggerun -- perl-SVK
%do_triggerun svk
%triggerin -- plague-client
%do_triggerin plague-client
%triggerun -- plague-client
%do_triggerun plague-client
%triggerin -- ruby-ri
%do_triggerin ri
%triggerun -- ruby-ri
%do_triggerun ri
%triggerin -- sbcl
%do_triggerin sbcl
%triggerun -- sbcl
%do_triggerun sbcl
%triggerin -- snownews
%do_triggerin snownews
%triggerun -- snownews
%do_triggerun snownews
%triggerin -- unace
%do_triggerin unace
%triggerun -- unace
%do_triggerun unace
%triggerin -- unixODBC
%do_triggerin isql
%triggerun -- unixODBC
%do_triggerun isql
%triggerin -- unrar
%do_triggerin unrar
%triggerun -- unrar
%do_triggerun unrar
%triggerin -- yum-utils
%do_triggerin repomanage
%triggerun -- yum-utils
%do_triggerun repomanage
%files -f %{name}-ghosts.list %files -f %{name}-ghosts.list
@ -100,6 +182,9 @@ fi\
%changelog %changelog
* Sun Jun 24 2007 Jeff Sheltren <sheltren@cs.ucsb.edu> - 20060301-4
- Update triggers to work with older versions of RPM
* Wed Feb 28 2007 Ville Skyttä <ville.skytta at iki.fi> - 20060301-3 * Wed Feb 28 2007 Ville Skyttä <ville.skytta at iki.fi> - 20060301-3
- Fix scp with single quotes (#217178). - Fix scp with single quotes (#217178).
- Borrow fix for bzip2 w/spaces, and apropos and whatis support from Debian. - Borrow fix for bzip2 w/spaces, and apropos and whatis support from Debian.