diff --git a/.gitignore b/.gitignore index 10d9469..05592a9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ clog /php-phpseclib-2.0.4-ab8028c.tgz /php-phpseclib-2.0.5-f8dd0e1.tgz /php-phpseclib-2.0.6-34a7699.tgz +/php-phpseclib-2.0.7-f4b6a52.tgz diff --git a/php-phpseclib.spec b/php-phpseclib.spec index 357d2ca..bbdc8be 100644 --- a/php-phpseclib.spec +++ b/php-phpseclib.spec @@ -3,12 +3,12 @@ %global github_owner phpseclib %global github_name phpseclib -%global github_commit 34a7699e6f31b1ef4035ee36444407cecf9f56aa +%global github_commit f4b6a522dfa1fd1e477c9cfe5909d5b31f098c0b %global github_short %(c=%{github_commit}; echo ${c:0:7}) %global with_tests 0%{!?_without_tests:1} Name: php-%{composer_vendor} -Version: 2.0.6 +Version: 2.0.7 Release: 1%{?dist} Summary: PHP Secure Communications Library @@ -29,7 +29,6 @@ BuildRequires: %{_bindir}/phpab # Optional at runtime, to avoid too muck skipped tests BuildRequires: php-bcmath BuildRequires: php-gmp -BuildRequires: php-mcrypt %endif Requires: php(language) >= 5.3.3 @@ -58,9 +57,6 @@ Rijndael, AES, Blowfish, Twofish, SSH-1, SSH-2, SFTP, and X.509 %setup -qn %{github_name}-%{github_commit} cp %{SOURCE1} %{composer_vendor}/autoload.php -# https://github.com/phpseclib/phpseclib/pull/1121 -chmod -x phpseclib/Net/SCP.php - %build @@ -73,7 +69,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 +93,9 @@ exit $ret %changelog +* Mon Oct 23 2017 Remi Collet - 2.0.7-1 +- Update to 2.0.7 + * Mon Jun 5 2017 Remi Collet - 2.0.6-1 - Update to 2.0.6 diff --git a/sources b/sources index fb3aca6..09ddabb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpseclib-2.0.6-34a7699.tgz) = 9c95e07f3c4785bc6f561dfbde13c6e062529493e52dad42fe369688109941bfea7a2e9e9c33db137c2a7325b9945674cbc2ac4e83e2502be04a935914b83366 +SHA512 (php-phpseclib-2.0.7-f4b6a52.tgz) = 0af17d368663e08e83ecd56f28719330f6d6ab46186abb82a5abd875885eaf823008a36ad93791faf4060d772c80afd179086e46a5d6e8ccc5d9accf92800cb0