Show More
@@ -19,6 +19,9 b' BuildRoot: %{_tmppath}/%{name}-%{version' | |||||
19 | # |
|
19 | # | |
20 | BuildRequires: python >= 2.4, python-devel, make, gcc, docutils >= 0.5 |
|
20 | BuildRequires: python >= 2.4, python-devel, make, gcc, docutils >= 0.5 | |
21 | Provides: hg = %{version}-%{release} |
|
21 | Provides: hg = %{version}-%{release} | |
|
22 | Requires: python >= 2.4 | |||
|
23 | # The hgk extension uses the wish tcl interpreter, but we don't enforce it | |||
|
24 | #Requires: tk | |||
22 |
|
25 | |||
23 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
|
26 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') | |
24 | %define emacs_lispdir %{_datadir}/emacs/site-lisp |
|
27 | %define emacs_lispdir %{_datadir}/emacs/site-lisp | |
@@ -41,7 +44,8 b' make install-doc DESTDIR=$RPM_BUILD_ROOT' | |||||
41 | install contrib/hgk $RPM_BUILD_ROOT%{_bindir} |
|
44 | install contrib/hgk $RPM_BUILD_ROOT%{_bindir} | |
42 | install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo |
|
45 | install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo | |
43 | install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} |
|
46 | install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} | |
44 |
install contrib/git-viz/ |
|
47 | install contrib/git-viz/hg-viz $RPM_BUILD_ROOT%{_bindir} | |
|
48 | install contrib/git-viz/git-rev-tree $RPM_BUILD_ROOT%{_bindir} | |||
45 |
|
49 | |||
46 | bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
|
50 | bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
47 | mkdir -p $bash_completion_dir |
|
51 | mkdir -p $bash_completion_dir | |
@@ -53,6 +57,7 b' install -m 644 contrib/zsh_completion $z' | |||||
53 |
|
57 | |||
54 | mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir} |
|
58 | mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir} | |
55 | install contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir} |
|
59 | install contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir} | |
|
60 | install contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir} | |||
56 |
|
61 | |||
57 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d |
|
62 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d | |
58 | install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc |
|
63 | install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc | |
@@ -63,11 +68,12 b' rm -rf $RPM_BUILD_ROOT' | |||||
63 | %files |
|
68 | %files | |
64 | %defattr(-,root,root,-) |
|
69 | %defattr(-,root,root,-) | |
65 | %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi contrib/*.fcgi |
|
70 | %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi contrib/*.fcgi | |
66 |
%doc %attr(644,root,root) %{_mandir}/man?/hg* |
|
71 | %doc %attr(644,root,root) %{_mandir}/man?/hg* | |
67 | %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc |
|
72 | %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc | |
68 | %{_sysconfdir}/bash_completion.d/mercurial.sh |
|
73 | %{_sysconfdir}/bash_completion.d/mercurial.sh | |
69 | %{_datadir}/zsh/site-functions/_mercurial |
|
74 | %{_datadir}/zsh/site-functions/_mercurial | |
70 | %{_datadir}/emacs/site-lisp/mercurial.el |
|
75 | %{_datadir}/emacs/site-lisp/mercurial.el | |
|
76 | %{_datadir}/emacs/site-lisp/mq.el | |||
71 | %{_bindir}/hg |
|
77 | %{_bindir}/hg | |
72 | %{_bindir}/hgk |
|
78 | %{_bindir}/hgk | |
73 | %{_bindir}/hg-ssh |
|
79 | %{_bindir}/hg-ssh |
General Comments 0
You need to be logged in to leave comments.
Login now