From aea2f43816a367c0526c9561293e9d86b8b2e110 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 24 Feb 2020 09:44:52 +0100 Subject: sync with Fedora --- php-deepend-Mockery.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/php-deepend-Mockery.spec b/php-deepend-Mockery.spec index 7a7045b..e04b532 100644 --- a/php-deepend-Mockery.spec +++ b/php-deepend-Mockery.spec @@ -11,11 +11,13 @@ %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner padraic %global gh_project mockery -%global with_tests 0%{!?_without_tests:1} + +# Build using "--with tests" to enable tests +%global with_tests 0%{?_with_tests:1} Name: php-deepend-Mockery Version: 0.9.11 -Release: 1%{?dist} +Release: 4%{?dist} Summary: Mockery is a simple but flexible PHP mock object framework License: BSD @@ -68,8 +70,8 @@ Obsoletes: php-channel-deepend <= 1.3 %description -Mockery is a simple but flexible PHP mock object framework for use in unit -testing. It is inspired by Ruby's flexmock and Java's Mockito, borrowing +Mockery is a simple but flexible PHP mock object framework for use in unit +testing. It is inspired by Ruby's flexmock and Java's Mockito, borrowing elements from both of their APIs. To use this library, you just have to add, in your project: @@ -103,7 +105,7 @@ sed -e 's:@BUILD@:%{buildroot}/%{_datadir}/php:' -i tests/Bootstrap.php : Run upstream test suite ret=0 -for cmd in php php70 php71 php72 php73; do +for cmd in php php72 php73 php74; do if which $cmd; then $cmd %{_bindir}/phpunit --verbose || ret=1 fi @@ -129,6 +131,10 @@ fi %changelog +* Sun Feb 23 2020 Shawn Iwinski - 0.9.11-4 +- Disable tests by default +- Fix FTBFS (RHBZ #1799867) + * Wed Feb 13 2019 Remi Collet - 0.9.11-1 - update to 0.9.11 -- cgit