[packages/rsnapshot] - run test suite. Don't rely on search path - use full path to rsync.

arekm arekm at pld-linux.org
Tue Dec 4 12:11:46 CET 2018


commit 4e82fbfc2323b27ed351d420a5aef8a7a1a27c7f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Dec 4 12:11:40 2018 +0100

    - run test suite. Don't rely on search path - use full path to rsync.

 rsnapshot.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/rsnapshot.spec b/rsnapshot.spec
index 6f10519..808a2cc 100644
--- a/rsnapshot.spec
+++ b/rsnapshot.spec
@@ -1,3 +1,4 @@
+%bcond_without	tests
 %include	/usr/lib/rpm/macros.perl
 Summary:	Program for efficient remote updates of backup sets
 Summary(pl.UTF-8):	Program do wydajnego zdalnego uaktualniania zbiorów kopii zapasowych
@@ -29,9 +30,11 @@ w oparciu o rsynca.
 
 %build
 %configure \
-	RSYNC=rsync
+	RSYNC=%{_bindir}/rsync
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rsnapshot.git/commitdiff/4e82fbfc2323b27ed351d420a5aef8a7a1a27c7f



More information about the pld-cvs-commit mailing list