rpms: add chg
authorMathias De Maré <mathias.de_mare@nokia.com>
Thu, 27 Jul 2017 16:09:26 +0200
changeset 33679 8fbd56a4073c
parent 33678 855a1856466d
child 33680 f9f28ee41cac
rpms: add chg I'm not sure if there's a reason chg is not added by default. If not, I would like to propose adding in this patch. Differential Revision: https://phab.mercurial-scm.org/D220
contrib/mercurial.spec
--- a/contrib/mercurial.spec	Fri Jul 14 14:30:55 2017 -0700
+++ b/contrib/mercurial.spec	Thu Jul 27 16:09:26 2017 +0200
@@ -83,6 +83,7 @@
 %endif
 
 make all
+make -C contrib/chg
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -111,6 +112,7 @@
 
 %endif
 
+install -m 755 contrib/chg/chg $RPM_BUILD_ROOT%{_bindir}/
 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}/
 install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}/
 
@@ -143,6 +145,7 @@
 %{_datadir}/emacs/site-lisp/mercurial.el
 %{_datadir}/emacs/site-lisp/mq.el
 %{_bindir}/hg
+%{_bindir}/chg
 %{_bindir}/hgk
 %{_bindir}/hg-ssh
 %dir %{_sysconfdir}/bash_completion.d/