From 441c4ebef4d964718fa05d37ae3b19d03ad95ae2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 4 Apr 2022 10:53:32 +0200 Subject: update to 3.0.14 --- composer.json | 16 +++++++++++----- php-phpseclib3.spec | 43 +++++++++++++------------------------------ 2 files changed, 24 insertions(+), 35 deletions(-) diff --git a/composer.json b/composer.json index 34dc999..0f40d7c 100644 --- a/composer.json +++ b/composer.json @@ -51,14 +51,12 @@ } ], "require": { + "php": ">=5.6.1", "paragonie/constant_time_encoding": "^1|^2", - "paragonie/random_compat": "^1.4|^2.0|^9.99.99", - "php": ">=5.6.1" + "paragonie/random_compat": "^1.4|^2.0|^9.99.99" }, "require-dev": { - "phing/phing": "~2.7", - "phpunit/phpunit": "^5.7|^6.0|^9.4", - "squizlabs/php_codesniffer": "~2.0" + "phpunit/phpunit": "*" }, "suggest": { "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", @@ -73,5 +71,13 @@ "psr-4": { "phpseclib3\\": "phpseclib/" } + }, + "autoload-dev": { + "psr-4": { + "phpseclib3\\Tests\\": "tests/" + } + }, + "config": { + "sort-packages": true } } diff --git a/php-phpseclib3.spec b/php-phpseclib3.spec index e9c8337..ea99ba6 100644 --- a/php-phpseclib3.spec +++ b/php-phpseclib3.spec @@ -3,14 +3,14 @@ %global github_owner phpseclib %global github_name phpseclib -%global github_commit 1443ab79364eea48665fa8c09ac67f37d1025f7e +%global github_commit 2f0b7af658cbea265cbb4a791d6c29a6613f98ef %global github_short %(c=%{github_commit}; echo ${c:0:7}) %global major 3 %bcond_without tests Name: php-%{composer_vendor}%{major} -Version: 3.0.13 +Version: 3.0.14 Release: 1%{?dist} Summary: PHP Secure Communications Library License: MIT @@ -36,11 +36,7 @@ BuildRequires: php-paragonie-constant-time-encoding BuildRequires: php-paragonie-random-compat %endif BuildRequires: php-composer(fedora/autoloader) -%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9 %global phpunit %{_bindir}/phpunit9 -%else -%global phpunit %{_bindir}/phpunit6 -%endif BuildRequires: %{phpunit} BuildRequires: %{_bindir}/phpab # Optional at runtime, to avoid too muck skipped tests @@ -49,10 +45,9 @@ BuildRequires: php-gmp %endif # from composer.json, "require": { -# "paragonie/constant_time_encoding": "^1|^2", -# "paragonie/random_compat": "^1.4|^2.0", # "php": ">=5.6.1" -# +# "paragonie/constant_time_encoding": "^1|^2", +# "paragonie/random_compat": "^1.4|^2.0|^9.99.99", Requires: php(language) >= 5.6.1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Requires: (php-composer(paragonie/constant_time_encoding) >= 2 with php-composer(paragonie/constant_time_encoding) < 3) @@ -99,10 +94,11 @@ cp -pr %{composer_vendor} %{buildroot}%{_datadir}/php/%{composer_vendor}%{major} %if %{with tests} %check -cat << 'EOF' | tee tests/bootstrap.php +mkdir vendor +cat << 'EOF' | tee vendor/autoload.php - 3.0.14-1 +- update to 3.0.14 + * Mon Jan 31 2022 Remi Collet - 3.0.13-1 - update to 3.0.13 -- cgit