Mercurial > hg
comparison contrib/packaging/mercurial.spec @ 48988:8d7eaff92f9c
completion: install completers to conventional locations
Installs the bash and zsh completers to the convential locations so they will
automatically be picked up without user intervention. The zsh completer
on Debian is still installed to vendor-completions to match their policy.
bash: https://github.com/scop/bash-completion#faq
zsh: https://github.com/zsh-users/zsh/blob/57305cf245853b8b30895b41a90142dffab97e38/INSTALL#L254
Debian zsh: https://salsa.debian.org/debian/zsh/-/blob/5086b5356abcef8849dc8a09902b7c55f01db3c0/debian/README.Debian#L73
author | Matthew Martin <phy1729@gmail.com> |
---|---|
date | Thu, 24 Mar 2022 21:26:45 -0500 |
parents | 5d08b289e2e5 |
children |
comparison
equal
deleted
inserted
replaced
48986:d500df2e8034 | 48988:8d7eaff92f9c |
---|---|
124 | 124 |
125 install -m 755 contrib/chg/chg $RPM_BUILD_ROOT%{_bindir}/ | 125 install -m 755 contrib/chg/chg $RPM_BUILD_ROOT%{_bindir}/ |
126 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}/ | 126 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}/ |
127 install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}/ | 127 install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}/ |
128 | 128 |
129 bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
130 mkdir -p $bash_completion_dir | |
131 install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh | |
132 | |
133 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions | |
134 mkdir -p $zsh_completion_dir | |
135 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial | |
136 | |
137 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir} | 129 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir} |
138 install -m 644 contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}/ | 130 install -m 644 contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}/ |
139 install -m 644 contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}/ | 131 install -m 644 contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}/ |
140 | 132 |
141 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d | 133 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d |
146 %files | 138 %files |
147 %defattr(-,root,root,-) | 139 %defattr(-,root,root,-) |
148 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi contrib/*.wsgi | 140 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi contrib/*.wsgi |
149 %doc %attr(644,root,root) %{_mandir}/man?/hg* | 141 %doc %attr(644,root,root) %{_mandir}/man?/hg* |
150 %doc %attr(644,root,root) contrib/*.svg | 142 %doc %attr(644,root,root) contrib/*.svg |
143 %dir %{_datadir}/bash-completion/ | |
144 %dir %{_datadir}/bash-completion/completions | |
145 %{_datadir}/bash-completion/completions/hg | |
151 %dir %{_datadir}/zsh/ | 146 %dir %{_datadir}/zsh/ |
152 %dir %{_datadir}/zsh/site-functions/ | 147 %dir %{_datadir}/zsh/site-functions/ |
153 %{_datadir}/zsh/site-functions/_mercurial | 148 %{_datadir}/zsh/site-functions/_hg |
154 %dir %{_datadir}/emacs/site-lisp/ | 149 %dir %{_datadir}/emacs/site-lisp/ |
155 %{_datadir}/emacs/site-lisp/mercurial.el | 150 %{_datadir}/emacs/site-lisp/mercurial.el |
156 %{_datadir}/emacs/site-lisp/mq.el | 151 %{_datadir}/emacs/site-lisp/mq.el |
157 %{_bindir}/hg | 152 %{_bindir}/hg |
158 %{_bindir}/chg | 153 %{_bindir}/chg |
159 %{_bindir}/hgk | 154 %{_bindir}/hgk |
160 %{_bindir}/hg-ssh | 155 %{_bindir}/hg-ssh |
161 %dir %{_sysconfdir}/bash_completion.d/ | |
162 %config(noreplace) %{_sysconfdir}/bash_completion.d/mercurial.sh | |
163 %dir %{_sysconfdir}/mercurial | 156 %dir %{_sysconfdir}/mercurial |
164 %dir %{_sysconfdir}/mercurial/hgrc.d | 157 %dir %{_sysconfdir}/mercurial/hgrc.d |
165 %if "%{?withpython}" | 158 %if "%{?withpython}" |
166 %{_bindir}/%{pythonhg} | 159 %{_bindir}/%{pythonhg} |
167 %{hgpyprefix} | 160 %{hgpyprefix} |