summaryrefslogtreecommitdiffstats
path: root/php-bjeavons-zxcvbn-php.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-12-14 07:11:32 +0100
committerRemi Collet <remi@php.net>2021-12-14 07:11:32 +0100
commit690d142ab8c256babd9551288eced97ad5d05415 (patch)
treee1544fdd925f8f706711ba0f9990163cb7736301 /php-bjeavons-zxcvbn-php.spec
parent800c3655edf45480df6fe54f951c3530e149db95 (diff)
raise dependency on PHP 7.3
add dependency on gmp extension for 32-bit
Diffstat (limited to 'php-bjeavons-zxcvbn-php.spec')
-rw-r--r--php-bjeavons-zxcvbn-php.spec19
1 files changed, 10 insertions, 9 deletions
diff --git a/php-bjeavons-zxcvbn-php.spec b/php-bjeavons-zxcvbn-php.spec
index cd661f6..e6bf533 100644
--- a/php-bjeavons-zxcvbn-php.spec
+++ b/php-bjeavons-zxcvbn-php.spec
@@ -21,7 +21,7 @@
Name: php-%{pk_vendor}-%{pk_name}
Version: 1.3.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Realistic password strength estimation PHP library
License: MIT
@@ -31,7 +31,7 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 7.2
+BuildRequires: php(language) >= 7.3
%if %{with tests}
BuildRequires: php-reflection
BuildRequires: php-ctype
@@ -42,6 +42,8 @@ BuildRequires: php-mbstring
BuildRequires: php-pcre
BuildRequires: php-reflection
BuildRequires: php-spl
+# Mandatory for 32-bit
+BuildRequires: php-gmp
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
BuildRequires: (php-composer(symfony/polyfill-mbstring) >= 1.3.1 with php-composer(symfony/polyfill-mbstring) < 2)
@@ -65,12 +67,12 @@ BuildRequires: php-fedora-autoloader-devel
# "ext-json": "*"
# "suggest": {
# "ext-gmp": "Required for optimized binomial calculations (also requires PHP >= 7.3)"
-Requires: php(language) >= 7.2
+Requires: php(language) >= 7.3
Requires: php-json
+Requires: php-gmp
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
Requires: (php-composer(symfony/polyfill-mbstring) >= 1.3.1 with php-composer(symfony/polyfill-mbstring) < 2)
-Recommends: php-gmp
# remirepo:4
%else
Requires: php-composer(symfony/polyfill-mbstring) < 2
@@ -135,11 +137,6 @@ EOF
: Skip known failed test
sed -e '/h1dden_26191/d' -i test/ZxcvbnTest.php
-: https://github.com/bjeavons/zxcvbn-php/issues/61
-if php -r 'exit(PHP_INT_SIZE < 8 ? 0 : 1);'
-then
- FILTER="--filter '^((?!(testBinomialMirrorIdentity|testBinomialPascalsTriangleIdentity)).)*$'"
-fi
: Run upstream test suite
ret=0
@@ -162,6 +159,10 @@ exit $ret
%changelog
+* Tue Dec 14 2021 Remi Collet <remi@remirepo.net> - 1.3.0-2
+- raise dependency on PHP 7.3
+- add dependency on gmp extension for 32-bit
+
* Mon Dec 13 2021 Remi Collet <remi@remirepo.net> - 1.3.0-1
- update to 1.3.0
- add weak dependency on gmp extension