| |
@@ -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
|
| |
|
| |