[PATCH] mercurial.spec: Install mq.el, hgk requires tk, uncompressed man pages

Gilles Moris gilles.moris at free.fr
Tue Jan 5 02:01:00 CST 2010


On Tuesday 05 January 2010 02:42:32 am Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <mads at kiilerich.com>
> # Date 1262655749 -3600
> # Node ID 7e26d2c529be5fba013f4305bbac754dfb192379
> # Parent  f5e55f1ca92738458295ca9f82f31c54a89babbb
> mercurial.spec: Install mq.el, hgk requires tk, uncompressed man pages
>
> These bits are (mostly) from the AIX spec by Jim Hague
>
> diff --git a/contrib/mercurial.spec b/contrib/mercurial.spec
> --- a/contrib/mercurial.spec
> +++ b/contrib/mercurial.spec
> @@ -19,6 +19,8 @@
>  #
>  BuildRequires: python >= 2.4, python-devel, make, gcc, docutils >= 0.5
>  Provides: hg = %{version}-%{release}
> +# For hgk
> +Requires: tk

hgk is an extension being deprecated, and which is not activated by default.
So I am reluctant to this requirement.

Regards.
Gilles.

>
>  %define pythonver %(python -c 'import sys;print ".".join(map(str,
> sys.version_info[:2]))') %define emacs_lispdir %{_datadir}/emacs/site-lisp
> @@ -53,6 +55,7 @@
>
>  mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
>  install contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}
> +install contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}
>
>  mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
>  install contrib/mergetools.hgrc
> $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc @@ -63,11
> +66,12 @@
>  %files
>  %defattr(-,root,root,-)
>  %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi
> contrib/*.fcgi -%doc %attr(644,root,root) %{_mandir}/man?/hg*.gz
> +%doc %attr(644,root,root) %{_mandir}/man?/hg*
>  %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc
>  %{_sysconfdir}/bash_completion.d/mercurial.sh
>  %{_datadir}/zsh/site-functions/_mercurial
>  %{_datadir}/emacs/site-lisp/mercurial.el
> +%{_datadir}/emacs/site-lisp/mq.el
>  %{_bindir}/hg
>  %{_bindir}/hgk
>  %{_bindir}/hg-ssh



More information about the Mercurial-devel mailing list