summaryrefslogtreecommitdiffstats
path: root/php-paragonie-constant-time-encoding.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-paragonie-constant-time-encoding.spec')
-rw-r--r--php-paragonie-constant-time-encoding.spec36
1 files changed, 22 insertions, 14 deletions
diff --git a/php-paragonie-constant-time-encoding.spec b/php-paragonie-constant-time-encoding.spec
index 00375c3..95ba450 100644
--- a/php-paragonie-constant-time-encoding.spec
+++ b/php-paragonie-constant-time-encoding.spec
@@ -14,16 +14,15 @@
%global github_owner paragonie
%global github_name constant_time_encoding
-%global commit0 eccf915f45f911bfb189d1d1638d940ec6ee6e33
+%global commit0 f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
Name: php-%{composer_vendor}-constant-time-encoding
-Version: 2.2.2
-Release: 4%{?dist}
+Version: 2.4.0
+Release: 2%{?dist}
Summary: Constant-time Implementations of RFC 4648 Encoding
-Group: System Environment/Libraries
License: MIT
URL: https://github.com/%{github_owner}/%{github_name}
@@ -31,22 +30,22 @@ Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
BuildArch: noarch
-# "php": "^7"
+# "php": "^7|^8"
BuildRequires: php(language) >= 7
BuildRequires: php-mbstring
BuildRequires: php-spl
-# "phpunit/phpunit": "^6|^7",
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-BuildRequires: phpunit7
-%global phpunit %{_bindir}/phpunit7
+# "phpunit/phpunit": "^6|^7|^8|^9"
+%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9
+BuildRequires: phpunit9
+%global phpunit %{_bindir}/phpunit9
%else
-BuildRequires: phpunit6
-%global phpunit %{_bindir}/phpunit6
+BuildRequires: phpunit8
+%global phpunit %{_bindir}/phpunit8
%endif
BuildRequires: php-fedora-autoloader-devel
-# "php": "^7"
+# "php": "^7|^8"
Requires: php(language) >= 7
Requires: php-mbstring
Requires: php-spl
@@ -71,10 +70,10 @@ cp -pr src/* %{buildroot}%{_datadir}/php/%{composer_namespace}
%check
ret=0
-for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit6" php71 php72; do
+for cmdarg in "php %{phpunit}" "php71 %{_bindir}/phpunit7" "php72 %{_bindir}/phpunit8" php73 php74 php80; do
if which $cmdarg; then
set $cmdarg
- $1 ${2:-%{_bindir}/phpunit7} --no-coverage --verbose --bootstrap=src/autoload.php || ret=1
+ $1 ${2:-%{_bindir}/phpunit9} --no-coverage --verbose --bootstrap=src/autoload.php || ret=1
fi
done
exit $ret
@@ -88,6 +87,15 @@ exit $ret
%license LICENSE.txt
%changelog
+* Thu Dec 10 2020 François Kooman <fkooman@tuxed.net> - 2.4.0-2
+- support PHPUnit 8/9 for future PHP 8 support (patch by Remi Collet)
+
+* Mon Dec 7 2020 François Kooman <fkooman@tuxed.net> - 2.4.0-1
+- update to 2.4.0
+
+* Wed Nov 06 2019 François Kooman <fkooman@tuxed.net> - 2.3.0-1
+- update to 2.3.0
+
* Thu May 03 2018 François Kooman <fkooman@tuxed.net> - 2.2.2-4
- also BuildRequire phpunit7 for future EL release