diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-03-20 09:14:47 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-03-20 09:14:47 +0100 |
commit | 1118ce350075256b94306865b06f814f6d7d252c (patch) | |
tree | 37fce873a8fee85fdc0219644ab2de6585008171 | |
parent | 4c1369fa4cd584c0a0c325692fbe40bdc7580cee (diff) |
php-paragonie-random-compat: sync with Fedora
-rw-r--r-- | php-paragonie-random-compat.spec | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/php-paragonie-random-compat.spec b/php-paragonie-random-compat.spec index 604b2cf..9710704 100644 --- a/php-paragonie-random-compat.spec +++ b/php-paragonie-random-compat.spec @@ -47,14 +47,14 @@ BuildArch: noarch ## composer.json BuildRequires: php(language) >= %{php_min_ver} BuildRequires: php-composer(phpunit/phpunit) -## phpcompatinfo (computed from version 2.0.9) +## phpcompatinfo (computed from version 2.0.10) BuildRequires: php-pcre BuildRequires: php-zlib %endif # composer.json Requires: php(language) >= %{php_min_ver} -# phpcompatinfo (computed from version 2.0.9) +# phpcompatinfo (computed from version 2.0.10) Requires: php-pcre # Weak dependencies %if 0%{?fedora} >= 21 @@ -94,18 +94,16 @@ cp -rp lib/* %{buildroot}%{phpdir}/random_compat/ %check %if %{with_tests} -BOOTSTRAP=%{buildroot}%{phpdir}/random_compat/autoload.php - -%{_bindir}/phpunit --verbose --bootstrap $BOOTSTRAP - -: Upstream tests with SCLs if available -SCL_RETURN_CODE=0 -for SCL in %{?rhel:php54 php55} php56 php70 php71; do - if which $SCL; then - $SCL %{_bindir}/phpunit --verbose --bootstrap $BOOTSTRAP || SCL_RETURN_CODE=1 +: Upstream tests +RETURN_CODE=0 +for PHP_EXEC in php %{?rhel:php54 php55} php56 php70 php71; do + if which $PHP_EXEC; then + $PHP_EXEC %{_bindir}/phpunit --verbose \ + --bootstrap %{buildroot}%{phpdir}/random_compat/autoload.php \ + || RETURN_CODE=1 fi done -exit $SCL_RETURN_CODE +exit $RETURN_CODE %else : Tests skipped %endif @@ -125,6 +123,9 @@ rm -rf %{buildroot} %changelog +* Fri Mar 17 2017 Shawn Iwinski <shawn.iwinski@gmail.com> - 2.0.10-1 +- Updated to 2.0.10 (RHBZ #1432051) + * Mon Mar 13 2017 Remi Collet <remi@remirepo.net> - 2.0.10-1 - Update to 2.0.10 |