packages: php-facebook-sdk/php-facebook-sdk.spec - add testing

glen glen at pld-linux.org
Thu May 26 00:48:24 CEST 2011


Author: glen                         Date: Wed May 25 22:48:23 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add testing

---- Files affected:
packages/php-facebook-sdk:
   php-facebook-sdk.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/php-facebook-sdk/php-facebook-sdk.spec
diff -u packages/php-facebook-sdk/php-facebook-sdk.spec:1.3 packages/php-facebook-sdk/php-facebook-sdk.spec:1.4
--- packages/php-facebook-sdk/php-facebook-sdk.spec:1.3	Thu May 26 00:27:41 2011
+++ packages/php-facebook-sdk/php-facebook-sdk.spec	Thu May 26 00:48:18 2011
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
+
 %define		php_min_version 5.2.0
 %include	/usr/lib/rpm/macros.php
 Summary:	PHP SDK for the Facebook API
@@ -12,6 +16,7 @@
 URL:		http://github.com/facebook/php-sdk/
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.461
+%{?with_tests:BuildRequires:	php-PHPUnit >= 3.4}
 Requires:	php-common >= 4:%{php_min_version}
 Requires:	php-curl
 Requires:	php-hash
@@ -35,6 +40,11 @@
 %setup -qc
 mv facebook-php-sdk-*/* .
 
+%build
+%if %{with tests}
+phpunit --colors --verbose --bootstrap src/facebook.php tests/tests.php
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_data_dir}
@@ -59,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2011/05/25 22:48:18  glen
+- add testing
+
 Revision 1.3  2011/05/25 22:27:41  glen
 - up to 3.0.0, read https://developers.facebook.com/blog/post/503 before upgrading
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-facebook-sdk/php-facebook-sdk.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list