#1 Add a package for installing chg.
Closed 5 years ago by pstodulk. Opened 6 years ago by tomprince.
rpms/ tomprince/mercurial master  into  master

Install chg.
Tom Prince • 5 years ago  
file modified
+31 -1
@@ -3,7 +3,7 @@ 

  Summary: Mercurial -- a distributed SCM

  Name: mercurial

  Version: 4.4.2

- Release: 4%{?dist}

+ Release: 5%{?dist}

  

  # Release: 1.rc1%{?dist}

  
@@ -53,6 +53,21 @@ 

  http://www.selenic.com/mercurial/wiki/index.cgi/UsingHgk for more

  documentation.

  

+ %package chg

+ Summary:	A fast client for Mercurial command server running on Unix. It saves time of slow Python startup.

+ Group:		Development/Tools

+ Requires:	hg = %{version}-%{release}

+ 

+ %description chg

+ chg is a C wrapper for the hg command. Typically, when you type hg, a new

+ Python process is created, Mercurial is loaded, and your requested command runs

+ and the process exits.

+ 

+ With chg, a Mercurial command server background process is created that runs

+ Mercurial. When you type chg, a C program connects to that background process

+ and executes Mercurial commands.

+ 

+ 

  %prep

  #%setup -q

  %setup -q -n %{name}-%{upstreamversion}
@@ -62,6 +77,10 @@ 

  %build

  make all

  

+ pushd contrib/chg

+ make

+ popd

+ 

  %install

  rm -rf $RPM_BUILD_ROOT

  %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --prefix %{_prefix} --record=%{name}.files
@@ -92,6 +111,10 @@ 

  done

  popd

  

+ pushd contrib/chg

+ make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_usr} MANDIR=%{_mandir}/man1

+ popd

+ 

  

  

  mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
@@ -147,10 +170,17 @@ 

  %{_libexecdir}/mercurial/

  %{_sysconfdir}/mercurial/hgrc.d/hgk.rc

  

+ %files chg

+ %{_bindir}/chg

+ %doc %attr(644,root,root) %{_mandir}/man?/chg.*.gz

+ 

  ##%%check

  ##cd tests && %{__python} run-tests.py

  

  %changelog

+ * Fri May 11 2018 Tom Prince <tom.prince@ualberta.net> - 4.4.2-5

+ - Package chg extension.

+ 

  * Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.2-4

  - Escape macros in %%changelog

  

no initial comment

Hi Tom. I apologize for long inactivity as I my time is really limited last year and I missed any notification about this PR in my email. I will try to look at it this sunday. Additionaly, there it is PR for rebase of mercurial for rawhide, which we talked with @pcahyna would be merged during week as well. Would you do rebase of this PR then? I am not against to adding of the subpackage into rawhide, but would like to hear opinion of the others.

I have no time to work on hg right now. This patch seems straightforward, so no objection. OTOH, I see the PR cannot be merged due to conflicts, so I think cleanup is needed.

rebased onto 5ff7309

5 years ago

rebased onto a42f90c

5 years ago

rebased onto 0d53611

5 years ago

Hi Tom. I apologize that I missed that completely for so many months. I am going to take a look at it now as I am going to do rebase as well.

Ah. I found now why I have not got any email about discussion here. I missed the settings of the notification here and watched only the commits. Hope that next time I will not miss anything.

Tom, I've added your changes to the current rawhide build (4.5.3-1). Please, try your subpackage whether it works as expected for you. Thanks for help and long patience :)

Pull-Request has been closed by pstodulk

5 years ago