From bdedaae6775ef4fa3da0d08505d22a16c499e911 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 26 Nov 2020 08:50:40 +0100 Subject: update to 6.2.0 add build dependency on yoast/phpunit-polyfills switch to phpunit7 --- composer.json | 17 ++++++++++------- php-phpmailer6.spec | 31 +++++++++++++++++++++---------- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/composer.json b/composer.json index 95a8991..7388bd9 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ ], "funding": [ { - "url": "https://github.com/synchro", + "url": "https://github.com/Synchro", "type": "github" } ], @@ -32,16 +32,19 @@ "ext-hash": "*" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.2", - "phpunit/phpunit": "^4.8 || ^5.7", - "doctrine/annotations": "^1.2" + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.2", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.5.6", + "yoast/phpunit-polyfills": "^0.2.0" }, "suggest": { - "psr/log": "For optional PSR-3 debug logging", - "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "ext-mbstring": "Needed to send email in multibyte encoding charset", "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", - "ext-mbstring": "Needed to send email in multibyte encoding charset", "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" }, "autoload": { diff --git a/php-phpmailer6.spec b/php-phpmailer6.spec index c68696f..832fa0b 100644 --- a/php-phpmailer6.spec +++ b/php-phpmailer6.spec @@ -7,7 +7,7 @@ # Please preserve changelog entries # # Github -%global gh_commit 917ab212fa00dc6eacbb26e8bc387ebe40993bc1 +%global gh_commit e38888a75c070304ca5514197d4847a59a5c853f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner PHPMailer %global gh_project PHPMailer @@ -23,7 +23,7 @@ %global php_home %{_datadir}/php Name: php-%{pk_project}%{major} -Version: 6.1.8 +Version: 6.2.0 Release: 1%{?dist} Summary: Full-featured email creation and transfer class for PHP @@ -52,10 +52,15 @@ BuildRequires: php-openssl BuildRequires: php-pcre BuildRequires: php-fedora-autoloader-devel # From composer.json, "require-dev": { -# "friendsofphp/php-cs-fixer": "^2.2", -# "phpunit/phpunit": "^4.8 || ^5.7", +# "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", # "doctrine/annotations": "^1.2", -BuildRequires: php-phpunit-PHPUnit >= 4.8 +# "phpcompatibility/php-compatibility": "^9.3.5", +# "roave/security-advisories": "dev-latest", +# "squizlabs/php_codesniffer": "^3.5.6", +# "yoast/phpunit-polyfills": "^0.2.0" +%global phpunit %{_bindir}/phpunit7 +BuildRequires: php-composer(yoast/phpunit-polyfills) >= 0.2.0 +BuildRequires: %{phpunit} BuildRequires: %{_sbindir}/smtp-sink %endif @@ -77,11 +82,11 @@ Requires: php-mbstring Requires: php-openssl Requires: php-pcre # From composer.json, "suggest": { -# "psr/log": "For optional PSR-3 debug logging", -# "league/oauth2-google": "Needed for Google XOAUTH2 authentication", +# "ext-mbstring": "Needed to send email in multibyte encoding charset", # "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", +# "league/oauth2-google": "Needed for Google XOAUTH2 authentication", +# "psr/log": "For optional PSR-3 debug logging", # "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", -# "ext-mbstring": "Needed to send email in multibyte encoding charset", # "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Suggests: php-composer(psr/log) @@ -152,6 +157,7 @@ mkdir vendor cat << 'EOF' | tee -a vendor/autoload.php - 6.2.0-1 +- update to 6.2.0 +- add build dependency on yoast/phpunit-polyfills +- switch to phpunit7 + * Sat Oct 10 2020 Remi Collet - 6.1.8-1 - update to 6.1.8 -- cgit