summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-phpseclib.spec11
1 files changed, 9 insertions, 2 deletions
diff --git a/php-phpseclib.spec b/php-phpseclib.spec
index 2685240..77ddebc 100644
--- a/php-phpseclib.spec
+++ b/php-phpseclib.spec
@@ -9,7 +9,7 @@
Name: php-%{composer_vendor}
Version: 2.0.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: PHP Secure Communications Library
Group: System Environment/Libraries
@@ -73,7 +73,11 @@ cp -pr %{composer_vendor} %{buildroot}%{_datadir}/php
%if %{with_tests}
%check
%{_bindir}/phpab --output tests/bootstrap.php tests
-echo 'require "%{buildroot}%{_datadir}/php/%{composer_vendor}/autoload.php";' >> tests/bootstrap.php
+cat << 'EOF' | tee -a tests/bootstrap.php
+require "%{buildroot}%{_datadir}/php/%{composer_vendor}/autoload.php";
+date_default_timezone_set('UTC');
+EOF
+
ret=0
for cmd in php php70 php71 php72; do
@@ -93,6 +97,9 @@ exit $ret
%changelog
+* Thu Jun 8 2017 Remi Collet <remi@remirepo.net> - 2.0.6-2
+- define correct timezone for the test suite
+
* Mon Jun 5 2017 Remi Collet <remi@remirepo.net> - 2.0.6-1
- Update to 2.0.6