commit e0b221718c765bce820166cfa2d44b7a36544c32
Author: Elan Ruusamäe <[email protected]>
Date:   Fri Dec 7 17:53:41 2012 +0200

    - up to 3.2.1; enable tests

 php-facebook-sdk.spec | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/php-facebook-sdk.spec b/php-facebook-sdk.spec
index 6775a03..67ec836 100644
--- a/php-facebook-sdk.spec
+++ b/php-facebook-sdk.spec
@@ -1,17 +1,17 @@
 #
 # Conditional build:
-%bcond_with    tests           # build with tests
+%bcond_without tests           # build with tests
 
 %define                php_min_version 5.2.0
 %include       /usr/lib/rpm/macros.php
 Summary:       PHP SDK for the Facebook API
 Name:          php-facebook-sdk
-Version:       3.2.0
-Release:       0.1
+Version:       3.2.1
+Release:       1
 License:       Apache v2.0
 Group:         Development/Languages/PHP
-Source0:       
https://github.com/facebook/facebook-php-sdk/tarball/v%{version}#/%{name}-%{version}.tgz
-# Source0-md5: 7a2dd4ca5b388496c46993eca0c2d56e
+Source0:       
https://github.com/facebook/facebook-php-sdk/tarball/v%{version}/%{name}-%{version}.tgz
+# Source0-md5: 3eb7f2df0b2cd267f2e1c2f1349f86e4
 Patch0:                class-nps.patch
 URL:           https://github.com/facebook/facebook-php-sdk
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
@@ -23,6 +23,7 @@ BuildRequires:        php-hash
 BuildRequires: php-json
 BuildRequires: php-pecl-xdebug
 BuildRequires: php-session
+BuildConflicts:        %{name}
 %endif
 Requires:      php(core) >= %{php_min_version}
 Requires:      php(curl)
@@ -48,7 +49,15 @@ cp src/facebook.php src/facebook.nps.php
 
 %build
 %if %{with tests}
-phpunit --colors --coverage-html coverage --verbose --stderr --bootstrap 
tests/bootstrap.php tests/tests.php
+phpunit \
+       -d session.save_handler="files" \
+       -d session.save_path="$(pwd)" \
+       --colors \
+       --coverage-html coverage \
+       --verbose \
+       --stderr \
+       --bootstrap tests/bootstrap.php \
+       tests/tests.php
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-facebook-sdk.git/commitdiff/94f8ddf0990bdf6c221b4804bfce3705fd11f07a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to