summaryrefslogtreecommitdiffstats
path: root/php-swiftmailer.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-03-25 09:11:36 +0100
committerRemi Collet <fedora@famillecollet.com>2016-03-25 09:11:36 +0100
commit484fee869117546d1c398a8fd7f7e4c8278b247f (patch)
treebc5c8ba6c59769600bcfacb23094d270bc6ecec7 /php-swiftmailer.spec
parent043b287f657632ec3970994f8705cb27383b6ca1 (diff)
php-swiftmailer: rebuild
Diffstat (limited to 'php-swiftmailer.spec')
-rw-r--r--php-swiftmailer.spec25
1 files changed, 19 insertions, 6 deletions
diff --git a/php-swiftmailer.spec b/php-swiftmailer.spec
index a244b72..05454f4 100644
--- a/php-swiftmailer.spec
+++ b/php-swiftmailer.spec
@@ -15,7 +15,7 @@
Name: php-%{gh_project}
Version: 5.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Free Feature-rich PHP Mailer
Group: Development/Libraries
@@ -57,12 +57,10 @@ Requires: php-simplexml
Requires: php-spl
# Removal for official repo not yet planed
-%if 0%{?fedora} > 99
Obsoletes: php-swift-Swift <= 5.4.1
# Single package in this channel
Obsoletes: php-channel-swift <= 1.3
Provides: php-pear(pear.swiftmailer.org/Swift) = %{version}
-%endif
Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version}
@@ -116,17 +114,29 @@ define('SWIFT_TMP_DIR', '$TMPDIR');
EOF
ret=0
+run=0
-: Run upstream test suite
-%{_bindir}/phpunit --exclude smoke --verbose || ret=1
+# with mockobject 3.1.0
+# PHPUnit_Framework_MockObject_RuntimeException: Trying to configure method "sendPerformed"
+# which cannot be configured because it does not exist, has not been specified, is final, or is static
+: Run upstream test suite
+if which php56; then
+ php56 %{_bindir}/phpunit --exclude smoke --verbose || ret=1
+ run=1
+fi
if which php70; then
php70 %{_bindir}/phpunit --exclude smoke --verbose || : ignore PHP 7 test results
+ run=1
+fi
+if [ $run -eq 0 ]; then
+ %{_bindir}/phpunit --exclude smoke --verbose || ret=1
fi
-%endif
# Cleanup
rm -r $TMPDIR
+exit $ret
+%endif
%clean
@@ -144,6 +154,9 @@ rm -rf %{buildroot}
%changelog
+* Fri Mar 25 2016 Remi Collet <remi@fedoraproject.org> - 5.4.1-2
+- rebuild for remi repository
+
* Fri Oct 16 2015 Remi Collet <remi@fedoraproject.org> - 5.4.1-1
- initial rpm, version 5.4.1
- sources from github, pear channel is dead