[packages/git-core-hg] test / R mercurial

arekm arekm at pld-linux.org
Tue Jan 30 23:04:34 CET 2024


commit 9015cbc506702a2841e67d9590603328a403e1a3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jan 30 23:01:52 2024 +0100

    test / R mercurial

 git-core-hg.spec | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/git-core-hg.spec b/git-core-hg.spec
index 7668566..f0b78c2 100644
--- a/git-core-hg.spec
+++ b/git-core-hg.spec
@@ -1,3 +1,5 @@
+%bcond_with	tests
+
 Summary:	Git tools for working with mercurial repositories
 Name:		git-core-hg
 Version:	0.6
@@ -10,6 +12,10 @@ Source0:	https://github.com/felipec/git-remote-hg/archive/refs/tags/v%{version}.
 URL:		https://github.com/felipec/git-remote-hg
 BuildRequires:	rpm-pythonprov
 Requires:	git-core
+Requires:	mercurial >= 1.8
+%if %{with tests}
+BuildRequires:	mercurial >= 1.8
+%endif
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -27,6 +33,10 @@ Git tools for working with mercurial repositories.
 %{__make} \
 	V=1
 
+%if %{with tests}
+%{__make} test
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-core-hg.git/commitdiff/9015cbc506702a2841e67d9590603328a403e1a3



More information about the pld-cvs-commit mailing list