From d456a071d36947ea5dac1c9e735e4f666f247b95 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 11 Nov 2021 08:34:48 +0100 Subject: skip test failing with OpenSSL 3.0 reported as https://github.com/tecnickcom/tc-lib-pdf-encrypt/issues/10 --- php-tecnickcom-tc-lib-pdf-encrypt.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'php-tecnickcom-tc-lib-pdf-encrypt.spec') diff --git a/php-tecnickcom-tc-lib-pdf-encrypt.spec b/php-tecnickcom-tc-lib-pdf-encrypt.spec index 44bff4e..77d6295 100644 --- a/php-tecnickcom-tc-lib-pdf-encrypt.spec +++ b/php-tecnickcom-tc-lib-pdf-encrypt.spec @@ -16,7 +16,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 1.6.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PHP library to encrypt data for PDF License: LGPLv3+ @@ -99,10 +99,14 @@ require '%{buildroot}%{php_project}/autoload.php'; EOF ret=0 +VER=$(php -r 'echo (OPENSSL_VERSION_NUMBER>>28);') +if [ $VER -ge 3 ]; then + FILTER="--filter '^((?!(testEncryptPubThree|testEncryptPubNoP|testEncryptModZeroPub|testGetPdfEncryptionObjThreePub|testGetPdfEncryptionObjOnePub|testGetEncryptionData|testGetObjectKey|testEncryptStringEnabled|testEscapeDataStringEnabled|testGetPdfEncryptionObjOne|testGetPdfEncryptionObjZero)).)*$'" +fi for cmdarg in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do if which $cmdarg; then set $cmdarg - $1 ${2:-%{_bindir}/phpunit9} --no-coverage --verbose || ret=1 + $1 ${2:-%{_bindir}/phpunit9} $FILTER --no-coverage --verbose || ret=1 fi done exit $ret @@ -123,6 +127,10 @@ exit $ret %changelog +* Thu Nov 11 2021 Remi Collet - 1.6.4-2 +- skip test failing with OpenSSL 3.0 reported as + https://github.com/tecnickcom/tc-lib-pdf-encrypt/issues/10 + * Mon Feb 8 2021 Remi Collet - 1.6.4-1 - update to 1.6.4 (no change) -- cgit