[packages/php-facebook-sdk] - disable tests if network is not available (pld builders)
    glen 
    glen at pld-linux.org
       
    Fri Dec  7 18:49:59 CET 2012
    
    
  
commit 588d9463ca5a4bf4e168a6781bee12d3967f3efd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Dec 7 19:49:41 2012 +0200
    - disable tests if network is not available (pld builders)
 php-facebook-sdk.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/php-facebook-sdk.spec b/php-facebook-sdk.spec
index 1d1a8e4..4011ba4 100644
--- a/php-facebook-sdk.spec
+++ b/php-facebook-sdk.spec
@@ -2,6 +2,10 @@
 # Conditional build:
 %bcond_without	tests		# build with tests
 
+%if "%(cat /etc/resolv.conf >/dev/null 2>/dev/null; echo $?)" != "0"
+%undefine	with_tests
+%endif
+
 %define		php_min_version 5.2.0
 %include	/usr/lib/rpm/macros.php
 Summary:	PHP SDK for the Facebook API
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-facebook-sdk.git/commitdiff/588d9463ca5a4bf4e168a6781bee12d3967f3efd
    
    
More information about the pld-cvs-commit
mailing list