[packages/cvs-fast-export] add bcond to run regression tests

glen glen at pld-linux.org
Tue Oct 7 20:12:30 CEST 2014


commit 9c50389f15cf703ea42bc9af7a38f6dc71f668ac
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Oct 7 21:12:13 2014 +0300

    add bcond to run regression tests
    
    disabled as tests not included in tarball

 cvs-fast-export.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/cvs-fast-export.spec b/cvs-fast-export.spec
index 5fb87c4..c6950fb 100644
--- a/cvs-fast-export.spec
+++ b/cvs-fast-export.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
 Summary:	Tool to export CVS history into a fast-import stream
 Name:		cvs-fast-export
 Version:	1.14
@@ -29,6 +33,8 @@ includes cvssync, a tool for mirroring masters from remote CVS hosts.
 	EXTRA_CFLAGS="%{rpmcflags}" \
 	LDFLAGS="%{rpmldflags}"
 
+%{?with_tests:%{__make} check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cvs-fast-export.git/commitdiff/9c50389f15cf703ea42bc9af7a38f6dc71f668ac



More information about the pld-cvs-commit mailing list