summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-06-08 14:37:09 +0200
committerRemi Collet <remi@remirepo.net>2017-06-08 14:37:09 +0200
commit0a9bb48eebadbd6b77b964982eba89a9aa4d9462 (patch)
treea2c6a0ea0da1f20ffafe4885d8d109e4f3729428
parent574f35edf42b05cbefaf06df2ed88dd9029d436c (diff)
fix timezone
-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