From 404784dd296f2ef53c948c915316cd0e0db4e927 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 12 Nov 2020 08:26:15 +0100 Subject: [PATCH 1/6] update to 8.5.9 raise dependency on doctrine/instantiator 1.3.1 raise dependency on myclabs/deep-copy 1.10.0 raise dependency on phpspec/prophecy 1.10.3 raise dependency on phpunit/php-code-coverage 7.0.10 raise dependency on sebastian/environment 4.2.2 raise dependency on sebastian/exporter 3.1.2 (cherry picked from commit 419a3088f3c89ece61b39f4a4b9ab208112bb5f0) --- .gitignore | 1 + phpunit8-rpm.patch | 16 ++++++------ phpunit8.spec | 62 ++++++++++++++++++++++++---------------------- sources | 2 +- 4 files changed, 43 insertions(+), 38 deletions(-) diff --git a/.gitignore b/.gitignore index f000b96..e8ed1ae 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ clog /phpunit8-8.5.5-63dda3b.tgz /phpunit8-8.5.6-3f9c407.tgz /phpunit8-8.5.8-34c18ba.tgz +/phpunit8-8.5.9-f5c8a5d.tgz diff --git a/phpunit8-rpm.patch b/phpunit8-rpm.patch index 8b70cbd..b66a4d2 100644 --- a/phpunit8-rpm.patch +++ b/phpunit8-rpm.patch @@ -1,6 +1,6 @@ diff -up ./phpunit.rpm ./phpunit ---- ./phpunit.rpm 2019-02-01 06:41:59.000000000 +0100 -+++ ./phpunit 2019-02-01 08:43:27.079804951 +0100 +--- ./phpunit.rpm 2020-11-10 16:52:55.000000000 +0100 ++++ ./phpunit 2020-11-10 16:58:06.470107562 +0100 @@ -27,25 +27,12 @@ if (!ini_get('date.timezone')) { ini_set('date.timezone', 'UTC'); } @@ -44,9 +44,9 @@ diff -up ./phpunit.rpm ./phpunit + PHPUnit\TextUI\Command::main(); // PHPUnit v6 or newer +} diff -up ./src/Util/Configuration.php.rpm ./src/Util/Configuration.php ---- ./src/Util/Configuration.php.rpm 2019-02-01 06:41:59.000000000 +0100 -+++ ./src/Util/Configuration.php 2019-02-01 08:43:27.079804951 +0100 -@@ -899,7 +899,7 @@ final class Configuration +--- ./src/Util/Configuration.php.rpm 2020-11-10 16:58:06.470107562 +0100 ++++ ./src/Util/Configuration.php 2020-11-10 16:59:17.462913118 +0100 +@@ -903,7 +903,7 @@ final class Configuration private function validateConfigurationAgainstSchema(): void { $original = \libxml_use_internal_errors(true); @@ -54,10 +54,10 @@ diff -up ./src/Util/Configuration.php.rpm ./src/Util/Configuration.php + $xsdFilename = __DIR__ . '/../phpunit.xsd'; if (\defined('__PHPUNIT_PHAR_ROOT__')) { - $xsdFilename = __PHPUNIT_PHAR_ROOT__ . '/phpunit.xsd'; + $xsdFilename = __PHPUNIT_PHAR_ROOT__ . '/phpunit.xsd'; diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php ---- ./tests/bootstrap.php.rpm 2019-02-01 08:43:27.080804957 +0100 -+++ ./tests/bootstrap.php 2019-02-01 08:44:59.691284599 +0100 +--- ./tests/bootstrap.php.rpm 2020-11-10 16:52:55.000000000 +0100 ++++ ./tests/bootstrap.php 2020-11-10 16:58:06.470107562 +0100 @@ -14,4 +14,9 @@ if (!\defined('TEST_FILES_PATH')) { \ini_set('precision', '14'); \ini_set('serialize_precision', '14'); diff --git a/phpunit8.spec b/phpunit8.spec index 5f2b9be..f4fb27f 100644 --- a/phpunit8.spec +++ b/phpunit8.spec @@ -11,7 +11,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 34c18baa6a44f1d1fbf0338907139e9dce95b997 +%global gh_commit f5c8a5dd5e7e8d68d7562bfb48d47287d33937d6 #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -27,7 +27,7 @@ %global specrel 1 Name: %{pk_project}%{ver_major} -Version: 8.5.8 +Version: 8.5.9 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: The PHP Unit Testing framework version %{ver_major} @@ -41,19 +41,19 @@ Patch0: %{name}-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 7.2 -BuildRequires: (php-composer(doctrine/instantiator) >= 1.2.0 with php-composer(doctrine/instantiator) < 2) -BuildRequires: (php-composer(myclabs/deep-copy) >= 1.9.1 with php-composer(myclabs/deep-copy) < 2) +BuildRequires: (php-composer(doctrine/instantiator) >= 1.3.1 with php-composer(doctrine/instantiator) < 2) +BuildRequires: (php-composer(myclabs/deep-copy) >= 1.10.0 with php-composer(myclabs/deep-copy) < 2) BuildRequires: (php-composer(phar-io/manifest) >= 1.0.3 with php-composer(phar-io/manifest) < 2) BuildRequires: (php-composer(phar-io/version) >= 2.0.1 with php-composer(phar-io/version) < 3) -BuildRequires: (php-composer(phpspec/prophecy) >= 1.8.1 with php-composer(phpspec/prophecy) < 2) -BuildRequires: (php-composer(phpunit/php-code-coverage) >= 7.0.7 with php-composer(phpunit/php-code-coverage) < 8) +BuildRequires: (php-composer(phpspec/prophecy) >= 1.10.3 with php-composer(phpspec/prophecy) < 2) +BuildRequires: (php-composer(phpunit/php-code-coverage) >= 7.0.10 with php-composer(phpunit/php-code-coverage) < 8) BuildRequires: (php-composer(phpunit/php-file-iterator) >= 2.0.2 with php-composer(phpunit/php-file-iterator) < 3) BuildRequires: (php-composer(phpunit/php-text-template) >= 1.2.1 with php-composer(phpunit/php-text-template) < 2) BuildRequires: (php-composer(phpunit/php-timer) >= 2.1.2 with php-composer(phpunit/php-timer) < 3) BuildRequires: (php-composer(sebastian/comparator) >= 3.0.2 with php-composer(sebastian/comparator) < 4) BuildRequires: (php-composer(sebastian/diff) >= 3.0.2 with php-composer(sebastian/diff) < 4) -BuildRequires: (php-composer(sebastian/environment) >= 4.2.2 with php-composer(sebastian/environment) < 5) -BuildRequires: (php-composer(sebastian/exporter) >= 3.1.1 with php-composer(sebastian/exporter) < 4) +BuildRequires: (php-composer(sebastian/environment) >= 4.2.3 with php-composer(sebastian/environment) < 5) +BuildRequires: (php-composer(sebastian/exporter) >= 3.1.2 with php-composer(sebastian/exporter) < 4) BuildRequires: (php-composer(sebastian/global-state) >= 3.0.0 with php-composer(sebastian/global-state) < 4) BuildRequires: (php-composer(sebastian/object-enumerator) >= 3.0.3 with php-composer(sebastian/object-enumerator) < 4) BuildRequires: (php-composer(sebastian/resource-operations) >= 2.0.1 with php-composer(sebastian/resource-operations) < 3) @@ -77,19 +77,19 @@ BuildRequires: php-fedora-autoloader-devel >= 1.0.0 # "ext-mbstring": "*", # "ext-xml": "*", # "ext-xmlwriter": "*", -# "doctrine/instantiator": "^1.2.0", -# "myclabs/deep-copy": "^1.9.1", +# "doctrine/instantiator": "^1.3.1", +# "myclabs/deep-copy": "^1.10.0", # "phar-io/manifest": "^1.0.3", # "phar-io/version": "^2.0.1", -# "phpspec/prophecy": "^1.8.1", -# "phpunit/php-code-coverage": "^7.0.7", +# "phpspec/prophecy": "^1.10.3", +# "phpunit/php-code-coverage": "^7.0.10", # "phpunit/php-file-iterator": "^2.0.2", # "phpunit/php-text-template": "^1.2.1", # "phpunit/php-timer": "^2.1.2", # "sebastian/comparator": "^3.0.2", # "sebastian/diff": "^3.0.2", -# "sebastian/environment": "^4.2.2", -# "sebastian/exporter": "^3.1.1", +# "sebastian/environment": "^4.2.3", +# "sebastian/exporter": "^3.1.2", # "sebastian/global-state": "^3.0.0", # "sebastian/object-enumerator": "^3.0.3", # "sebastian/resource-operations": "^2.0.1", @@ -103,19 +103,19 @@ Requires: php-libxml Requires: php-mbstring Requires: php-xml Requires: php-xmlwriter -Requires: (php-composer(doctrine/instantiator) >= 1.2.0 with php-composer(doctrine/instantiator) < 2) -Requires: (php-composer(myclabs/deep-copy) >= 1.9.1 with php-composer(myclabs/deep-copy) < 2) +Requires: (php-composer(doctrine/instantiator) >= 1.3.1 with php-composer(doctrine/instantiator) < 2) +Requires: (php-composer(myclabs/deep-copy) >= 1.10.0 with php-composer(myclabs/deep-copy) < 2) Requires: (php-composer(phar-io/manifest) >= 1.0.3 with php-composer(phar-io/manifest) < 2) Requires: (php-composer(phar-io/version) >= 2.0.1 with php-composer(phar-io/version) < 3) -Requires: (php-composer(phpspec/prophecy) >= 1.8.1 with php-composer(phpspec/prophecy) < 2) -Requires: (php-composer(phpunit/php-code-coverage) >= 7.0.7 with php-composer(phpunit/php-code-coverage) < 8) +Requires: (php-composer(phpspec/prophecy) >= 1.10.3 with php-composer(phpspec/prophecy) < 2) +Requires: (php-composer(phpunit/php-code-coverage) >= 7.0.10 with php-composer(phpunit/php-code-coverage) < 8) Requires: (php-composer(phpunit/php-file-iterator) >= 2.0.2 with php-composer(phpunit/php-file-iterator) < 3) Requires: (php-composer(phpunit/php-text-template) >= 1.2.1 with php-composer(phpunit/php-text-template) < 2) Requires: (php-composer(phpunit/php-timer) >= 2.1.2 with php-composer(phpunit/php-timer) < 3) Requires: (php-composer(sebastian/comparator) >= 3.0.2 with php-composer(sebastian/comparator) < 4) Requires: (php-composer(sebastian/diff) >= 3.0.2 with php-composer(sebastian/diff) < 4) -Requires: (php-composer(sebastian/environment) >= 4.2.2 with php-composer(sebastian/environment) < 5) -Requires: (php-composer(sebastian/exporter) >= 3.1.1 with php-composer(sebastian/exporter) < 4) +Requires: (php-composer(sebastian/environment) >= 4.2.3 with php-composer(sebastian/environment) < 5) +Requires: (php-composer(sebastian/exporter) >= 3.1.2 with php-composer(sebastian/exporter) < 4) Requires: (php-composer(sebastian/global-state) >= 3.0.0 with php-composer(sebastian/global-state) < 4) Requires: (php-composer(sebastian/object-enumerator) >= 3.0.3 with php-composer(sebastian/object-enumerator) < 4) Requires: (php-composer(sebastian/resource-operations) >= 2.0.1 with php-composer(sebastian/resource-operations) < 3) @@ -177,14 +177,8 @@ cat << 'EOF' | tee -a src/autoload.php '%{php_home}/SebastianBergmann/ResourceOperations2/autoload.php', '%{php_home}/SebastianBergmann/Type/autoload.php', '%{php_home}/SebastianBergmann/Version/autoload.php', - [ - '%{php_home}/Doctrine/Instantiator11/autoload.php', - '%{php_home}/Doctrine/Instantiator/autoload.php', - ], - [ - '%{php_home}/DeepCopy19/autoload.php', - '%{php_home}/DeepCopy/autoload.php', - ], + '%{php_home}/Doctrine/Instantiator/autoload.php', + '%{php_home}/DeepCopy/autoload.php', '%{php_home}/SebastianBergmann/Invoker/autoload.php', '%{php_home}/PharIo/Manifest/autoload.php', '%{php_home}/PharIo/Version/autoload.php', @@ -220,7 +214,8 @@ sed -e 's:@PATH@:%{buildroot}%{php_home}/%{ns_vendor}:' -i tests/bootstrap.php sed -e 's:%{php_home}/%{ns_vendor}:%{buildroot}%{php_home}/%{ns_vendor}:' -i phpunit ret=0 -for cmd in php php72 php73 php74 php80; do +# Not compatible with 8.0.0RC4 +for cmd in php php72 php73 php74; do if which $cmd; then $cmd ./phpunit $OPT --verbose || ret=1 fi @@ -237,6 +232,15 @@ exit $ret %changelog +* Tue Nov 10 2020 Remi Collet - 8.5.9-1 +- update to 8.5.9 +- raise dependency on doctrine/instantiator 1.3.1 +- raise dependency on myclabs/deep-copy 1.10.0 +- raise dependency on phpspec/prophecy 1.10.3 +- raise dependency on phpunit/php-code-coverage 7.0.10 +- raise dependency on sebastian/environment 4.2.2 +- raise dependency on sebastian/exporter 3.1.2 + * Mon Jun 22 2020 Remi Collet - 8.5.8-1 - update to 8.5.8 diff --git a/sources b/sources index 0714d80..3a8cf7f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phpunit8-8.5.8-34c18ba.tgz) = 27d70638c60e8951d090bab61f7cb4017e7479930dc7dd83b708bffe23ba4c49b647d3ce2f73b01bf92d81a1cb0c56025ece999dae31076a71117ddda3dc7506 +SHA512 (phpunit8-8.5.9-f5c8a5d.tgz) = 2882e88c98cfc27e8677959a3cdbc774ce0dc95a017a9d062427f7ada8f4c68def2558e265dfda842d79a516eb9d8f263c61a34251035453c3ac75f24609ebed From 7426b80483dcc970a72b245212d47a44bf5b12ea Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 30 Nov 2020 07:41:15 +0100 Subject: [PATCH 2/6] update to 8.5.11 raise dependency on phpunit/php-code-coverage 7.0.12 (cherry picked from commit 4cd62ca041d9bfce69d5875015ad46a120027ac6) --- .gitignore | 1 + phpunit8.spec | 15 +++++++++------ sources | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index e8ed1ae..c151a72 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ clog /phpunit8-8.5.6-3f9c407.tgz /phpunit8-8.5.8-34c18ba.tgz /phpunit8-8.5.9-f5c8a5d.tgz +/phpunit8-8.5.11-3123601.tgz diff --git a/phpunit8.spec b/phpunit8.spec index f4fb27f..ea658db 100644 --- a/phpunit8.spec +++ b/phpunit8.spec @@ -11,7 +11,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit f5c8a5dd5e7e8d68d7562bfb48d47287d33937d6 +%global gh_commit 3123601e3b29339b20129acc3f989cfec3274566 #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -27,7 +27,7 @@ %global specrel 1 Name: %{pk_project}%{ver_major} -Version: 8.5.9 +Version: 8.5.11 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: The PHP Unit Testing framework version %{ver_major} @@ -46,7 +46,7 @@ BuildRequires: (php-composer(myclabs/deep-copy) >= 1.10.0 with php-c BuildRequires: (php-composer(phar-io/manifest) >= 1.0.3 with php-composer(phar-io/manifest) < 2) BuildRequires: (php-composer(phar-io/version) >= 2.0.1 with php-composer(phar-io/version) < 3) BuildRequires: (php-composer(phpspec/prophecy) >= 1.10.3 with php-composer(phpspec/prophecy) < 2) -BuildRequires: (php-composer(phpunit/php-code-coverage) >= 7.0.10 with php-composer(phpunit/php-code-coverage) < 8) +BuildRequires: (php-composer(phpunit/php-code-coverage) >= 7.0.12 with php-composer(phpunit/php-code-coverage) < 8) BuildRequires: (php-composer(phpunit/php-file-iterator) >= 2.0.2 with php-composer(phpunit/php-file-iterator) < 3) BuildRequires: (php-composer(phpunit/php-text-template) >= 1.2.1 with php-composer(phpunit/php-text-template) < 2) BuildRequires: (php-composer(phpunit/php-timer) >= 2.1.2 with php-composer(phpunit/php-timer) < 3) @@ -108,7 +108,7 @@ Requires: (php-composer(myclabs/deep-copy) >= 1.10.0 with php-c Requires: (php-composer(phar-io/manifest) >= 1.0.3 with php-composer(phar-io/manifest) < 2) Requires: (php-composer(phar-io/version) >= 2.0.1 with php-composer(phar-io/version) < 3) Requires: (php-composer(phpspec/prophecy) >= 1.10.3 with php-composer(phpspec/prophecy) < 2) -Requires: (php-composer(phpunit/php-code-coverage) >= 7.0.10 with php-composer(phpunit/php-code-coverage) < 8) +Requires: (php-composer(phpunit/php-code-coverage) >= 7.0.12 with php-composer(phpunit/php-code-coverage) < 8) Requires: (php-composer(phpunit/php-file-iterator) >= 2.0.2 with php-composer(phpunit/php-file-iterator) < 3) Requires: (php-composer(phpunit/php-text-template) >= 1.2.1 with php-composer(phpunit/php-text-template) < 2) Requires: (php-composer(phpunit/php-timer) >= 2.1.2 with php-composer(phpunit/php-timer) < 3) @@ -214,8 +214,7 @@ sed -e 's:@PATH@:%{buildroot}%{php_home}/%{ns_vendor}:' -i tests/bootstrap.php sed -e 's:%{php_home}/%{ns_vendor}:%{buildroot}%{php_home}/%{ns_vendor}:' -i phpunit ret=0 -# Not compatible with 8.0.0RC4 -for cmd in php php72 php73 php74; do +for cmd in php php72 php73 php74 php80; do if which $cmd; then $cmd ./phpunit $OPT --verbose || ret=1 fi @@ -232,6 +231,10 @@ exit $ret %changelog +* Fri Nov 27 2020 Remi Collet - 8.5.11-1 +- update to 8.5.11 +- raise dependency on phpunit/php-code-coverage 7.0.12 + * Tue Nov 10 2020 Remi Collet - 8.5.9-1 - update to 8.5.9 - raise dependency on doctrine/instantiator 1.3.1 diff --git a/sources b/sources index 3a8cf7f..435252a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phpunit8-8.5.9-f5c8a5d.tgz) = 2882e88c98cfc27e8677959a3cdbc774ce0dc95a017a9d062427f7ada8f4c68def2558e265dfda842d79a516eb9d8f263c61a34251035453c3ac75f24609ebed +SHA512 (phpunit8-8.5.11-3123601.tgz) = aea969ace59ca90cf513fb988f107fc3b66d5918dca5303a96f110309adf408274d19c5c360c2d5608316aaa61bc3df8753cf308956d178e0ceefea17709e9de From dc01220095b153911ec204d6b9a3a1b436bf69b2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 30 Nov 2020 14:07:50 +0100 Subject: [PATCH 3/6] update to 8.5.12 raise dependency on phar-io/manifest 2.0.1 raise dependency on phar-io/version 3.0.2 (cherry picked from commit 6090cea5f5b4ec781fcf2761853faac5959a548b) --- .gitignore | 1 + phpunit8.spec | 27 ++++++++++++++++----------- sources | 2 +- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index c151a72..4a470f0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ clog /phpunit8-8.5.8-34c18ba.tgz /phpunit8-8.5.9-f5c8a5d.tgz /phpunit8-8.5.11-3123601.tgz +/phpunit8-8.5.12-f40cf5b.tgz diff --git a/phpunit8.spec b/phpunit8.spec index ea658db..db5a346 100644 --- a/phpunit8.spec +++ b/phpunit8.spec @@ -11,7 +11,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 3123601e3b29339b20129acc3f989cfec3274566 +%global gh_commit f40cf5be80a7d177494592ad1b2db3f64ea1dee3 #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -27,7 +27,7 @@ %global specrel 1 Name: %{pk_project}%{ver_major} -Version: 8.5.11 +Version: 8.5.12 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: The PHP Unit Testing framework version %{ver_major} @@ -43,8 +43,8 @@ BuildArch: noarch BuildRequires: php(language) >= 7.2 BuildRequires: (php-composer(doctrine/instantiator) >= 1.3.1 with php-composer(doctrine/instantiator) < 2) BuildRequires: (php-composer(myclabs/deep-copy) >= 1.10.0 with php-composer(myclabs/deep-copy) < 2) -BuildRequires: (php-composer(phar-io/manifest) >= 1.0.3 with php-composer(phar-io/manifest) < 2) -BuildRequires: (php-composer(phar-io/version) >= 2.0.1 with php-composer(phar-io/version) < 3) +BuildRequires: (php-composer(phar-io/manifest) >= 2.0.1 with php-composer(phar-io/manifest) < 3) +BuildRequires: (php-composer(phar-io/version) >= 3.0.2 with php-composer(phar-io/version) < 4) BuildRequires: (php-composer(phpspec/prophecy) >= 1.10.3 with php-composer(phpspec/prophecy) < 2) BuildRequires: (php-composer(phpunit/php-code-coverage) >= 7.0.12 with php-composer(phpunit/php-code-coverage) < 8) BuildRequires: (php-composer(phpunit/php-file-iterator) >= 2.0.2 with php-composer(phpunit/php-file-iterator) < 3) @@ -70,7 +70,7 @@ BuildRequires: php-xmlwriter BuildRequires: php-fedora-autoloader-devel >= 1.0.0 # From composer.json, "require": { -# "php": "^7.2", +# "php": ">=7.2", # "ext-dom": "*", # "ext-json": "*", # "ext-libxml": "*", @@ -79,8 +79,8 @@ BuildRequires: php-fedora-autoloader-devel >= 1.0.0 # "ext-xmlwriter": "*", # "doctrine/instantiator": "^1.3.1", # "myclabs/deep-copy": "^1.10.0", -# "phar-io/manifest": "^1.0.3", -# "phar-io/version": "^2.0.1", +# "phar-io/manifest": "^2.0.1", +# "phar-io/version": "^3.0.2", # "phpspec/prophecy": "^1.10.3", # "phpunit/php-code-coverage": "^7.0.10", # "phpunit/php-file-iterator": "^2.0.2", @@ -105,8 +105,8 @@ Requires: php-xml Requires: php-xmlwriter Requires: (php-composer(doctrine/instantiator) >= 1.3.1 with php-composer(doctrine/instantiator) < 2) Requires: (php-composer(myclabs/deep-copy) >= 1.10.0 with php-composer(myclabs/deep-copy) < 2) -Requires: (php-composer(phar-io/manifest) >= 1.0.3 with php-composer(phar-io/manifest) < 2) -Requires: (php-composer(phar-io/version) >= 2.0.1 with php-composer(phar-io/version) < 3) +Requires: (php-composer(phar-io/manifest) >= 2.0.1 with php-composer(phar-io/manifest) < 3) +Requires: (php-composer(phar-io/version) >= 3.0.2 with php-composer(phar-io/version) < 4) Requires: (php-composer(phpspec/prophecy) >= 1.10.3 with php-composer(phpspec/prophecy) < 2) Requires: (php-composer(phpunit/php-code-coverage) >= 7.0.12 with php-composer(phpunit/php-code-coverage) < 8) Requires: (php-composer(phpunit/php-file-iterator) >= 2.0.2 with php-composer(phpunit/php-file-iterator) < 3) @@ -180,8 +180,8 @@ cat << 'EOF' | tee -a src/autoload.php '%{php_home}/Doctrine/Instantiator/autoload.php', '%{php_home}/DeepCopy/autoload.php', '%{php_home}/SebastianBergmann/Invoker/autoload.php', - '%{php_home}/PharIo/Manifest/autoload.php', - '%{php_home}/PharIo/Version/autoload.php', + '%{php_home}/PharIo/Manifest2/autoload.php', + '%{php_home}/PharIo/Version3/autoload.php', ]); // Extensions \Fedora\Autoloader\Dependencies::optional( @@ -231,6 +231,11 @@ exit $ret %changelog +* Mon Nov 30 2020 Remi Collet - 8.5.12-1 +- update to 8.5.12 +- raise dependency on phar-io/manifest 2.0.1 +- raise dependency on phar-io/version 3.0.2 + * Fri Nov 27 2020 Remi Collet - 8.5.11-1 - update to 8.5.11 - raise dependency on phpunit/php-code-coverage 7.0.12 diff --git a/sources b/sources index 435252a..3a4ffd6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phpunit8-8.5.11-3123601.tgz) = aea969ace59ca90cf513fb988f107fc3b66d5918dca5303a96f110309adf408274d19c5c360c2d5608316aaa61bc3df8753cf308956d178e0ceefea17709e9de +SHA512 (phpunit8-8.5.12-f40cf5b.tgz) = 641b6db98fe64109befb3d1769aa9c9b8123c830ad8111c295c4d98c8bda156c806f7d8706114b083af155a13695987f6054636f20d10902800f7ea07fb585e4 From 3128d0d9b28222e7d88fdfc1d00ea3ac3ad49db2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Dec 2020 08:05:22 +0100 Subject: [PATCH 4/6] v8.5.13 --- .gitignore | 1 + phpunit8.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4a470f0..23a4c56 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ clog /phpunit8-8.5.9-f5c8a5d.tgz /phpunit8-8.5.11-3123601.tgz /phpunit8-8.5.12-f40cf5b.tgz +/phpunit8-8.5.13-8e86be3.tgz diff --git a/phpunit8.spec b/phpunit8.spec index db5a346..3e90c69 100644 --- a/phpunit8.spec +++ b/phpunit8.spec @@ -11,7 +11,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit f40cf5be80a7d177494592ad1b2db3f64ea1dee3 +%global gh_commit 8e86be391a58104ef86037ba8a846524528d784e #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -27,7 +27,7 @@ %global specrel 1 Name: %{pk_project}%{ver_major} -Version: 8.5.12 +Version: 8.5.13 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: The PHP Unit Testing framework version %{ver_major} @@ -231,6 +231,9 @@ exit $ret %changelog +* Tue Dec 1 2020 Remi Collet - 8.5.13-1 +- update to 8.5.13 + * Mon Nov 30 2020 Remi Collet - 8.5.12-1 - update to 8.5.12 - raise dependency on phar-io/manifest 2.0.1 diff --git a/sources b/sources index 3a4ffd6..6a55d8a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phpunit8-8.5.12-f40cf5b.tgz) = 641b6db98fe64109befb3d1769aa9c9b8123c830ad8111c295c4d98c8bda156c806f7d8706114b083af155a13695987f6054636f20d10902800f7ea07fb585e4 +SHA512 (phpunit8-8.5.13-8e86be3.tgz) = bc2e9a4ecd8ef26c55faa9a439cdb5be95b0825f73785a20e03bea40457ce68c44a82da297327f46ffbe309f230e345e2d3546f9590cdcc932f8cdd1aa8cfefb From 684e5577f330babc66243fb28b880b864d0e5063 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 4 Feb 2021 06:49:50 +0100 Subject: [PATCH 5/6] v8.5.14 (cherry picked from commit 7f3d2baddd3fe42e09b6011fdc88a05fe4f369f5) (cherry picked from commit 90e626942cafb3c9e07413cc194a7a3c18b31e6f) --- .gitignore | 1 + phpunit8-rpm.patch | 18 +++++++++--------- phpunit8.spec | 9 ++++++--- sources | 2 +- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 23a4c56..95b3fa2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ clog /phpunit8-8.5.11-3123601.tgz /phpunit8-8.5.12-f40cf5b.tgz /phpunit8-8.5.13-8e86be3.tgz +/phpunit8-8.5.14-c25f798.tgz diff --git a/phpunit8-rpm.patch b/phpunit8-rpm.patch index b66a4d2..f4e4c9f 100644 --- a/phpunit8-rpm.patch +++ b/phpunit8-rpm.patch @@ -1,6 +1,6 @@ diff -up ./phpunit.rpm ./phpunit ---- ./phpunit.rpm 2020-11-10 16:52:55.000000000 +0100 -+++ ./phpunit 2020-11-10 16:58:06.470107562 +0100 +--- ./phpunit.rpm 2021-02-03 14:04:11.000000000 +0100 ++++ ./phpunit 2021-02-03 14:04:57.662439204 +0100 @@ -27,25 +27,12 @@ if (!ini_get('date.timezone')) { ini_set('date.timezone', 'UTC'); } @@ -44,20 +44,20 @@ diff -up ./phpunit.rpm ./phpunit + PHPUnit\TextUI\Command::main(); // PHPUnit v6 or newer +} diff -up ./src/Util/Configuration.php.rpm ./src/Util/Configuration.php ---- ./src/Util/Configuration.php.rpm 2020-11-10 16:58:06.470107562 +0100 -+++ ./src/Util/Configuration.php 2020-11-10 16:59:17.462913118 +0100 -@@ -903,7 +903,7 @@ final class Configuration +--- ./src/Util/Configuration.php.rpm 2021-02-03 14:04:57.662439204 +0100 ++++ ./src/Util/Configuration.php 2021-02-03 14:06:08.876097281 +0100 +@@ -929,7 +929,7 @@ final class Configuration private function validateConfigurationAgainstSchema(): void { - $original = \libxml_use_internal_errors(true); + $original = libxml_use_internal_errors(true); - $xsdFilename = __DIR__ . '/../../phpunit.xsd'; + $xsdFilename = __DIR__ . '/../phpunit.xsd'; - if (\defined('__PHPUNIT_PHAR_ROOT__')) { + if (defined('__PHPUNIT_PHAR_ROOT__')) { $xsdFilename = __PHPUNIT_PHAR_ROOT__ . '/phpunit.xsd'; diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php ---- ./tests/bootstrap.php.rpm 2020-11-10 16:52:55.000000000 +0100 -+++ ./tests/bootstrap.php 2020-11-10 16:58:06.470107562 +0100 +--- ./tests/bootstrap.php.rpm 2021-02-03 14:04:11.000000000 +0100 ++++ ./tests/bootstrap.php 2021-02-03 14:04:57.662439204 +0100 @@ -14,4 +14,9 @@ if (!\defined('TEST_FILES_PATH')) { \ini_set('precision', '14'); \ini_set('serialize_precision', '14'); diff --git a/phpunit8.spec b/phpunit8.spec index 3e90c69..b6c5363 100644 --- a/phpunit8.spec +++ b/phpunit8.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for phpunit8 # -# Copyright (c) 2010-2020 Remi Collet +# Copyright (c) 2010-2021 Remi Collet # # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ @@ -11,7 +11,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 8e86be391a58104ef86037ba8a846524528d784e +%global gh_commit c25f79895d27b6ecd5abfa63de1606b786a461a3 #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -27,7 +27,7 @@ %global specrel 1 Name: %{pk_project}%{ver_major} -Version: 8.5.13 +Version: 8.5.14 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: The PHP Unit Testing framework version %{ver_major} @@ -231,6 +231,9 @@ exit $ret %changelog +* Wed Feb 3 2021 Remi Collet - 8.5.14-1 +- update to 8.5.14 + * Tue Dec 1 2020 Remi Collet - 8.5.13-1 - update to 8.5.13 diff --git a/sources b/sources index 6a55d8a..ef34862 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phpunit8-8.5.13-8e86be3.tgz) = bc2e9a4ecd8ef26c55faa9a439cdb5be95b0825f73785a20e03bea40457ce68c44a82da297327f46ffbe309f230e345e2d3546f9590cdcc932f8cdd1aa8cfefb +SHA512 (phpunit8-8.5.14-c25f798.tgz) = 406a84b619741308396e400da75c7b29f04bfe05c02017819749305044781afb6bf615bd6d8e4f458a4f0108557d39f9694d59ed4fd24f626d69af8300256018 From a1db71152a6e19db9904c2fe5524b3f455cce5fa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 Mar 2021 10:21:13 +0100 Subject: [PATCH 6/6] v8.5.15 (cherry picked from commit b54a71ac0ad05eed8c21a1b9c5e6708508dc7247) --- .gitignore | 1 + makesrc.sh | 36 ++++++++++++++++++++---------------- phpunit8.spec | 19 ++++++++++++------- sources | 2 +- 4 files changed, 34 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 95b3fa2..cff5d82 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ clog /phpunit8-8.5.12-f40cf5b.tgz /phpunit8-8.5.13-8e86be3.tgz /phpunit8-8.5.14-c25f798.tgz +/phpunit8-8.5.15-038d419.tgz diff --git a/makesrc.sh b/makesrc.sh index 8152336..3580b58 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -1,28 +1,32 @@ #!/bin/bash NAME=$(basename $PWD) -OWNER=$(sed -n '/^%global gh_vendor/{s/.* //;p}' $NAME.spec) +OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec) PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec) -VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec) +VERSION=$(sed -n '/^%global upstream_version/{s/.* //;p}' $NAME.spec) COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) SHORT=${COMMIT:0:7} -echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n" +if [ -f $NAME-$VERSION-$SHORT.tgz ]; then + echo "$NAME-$VERSION-$SHORT.tgz already there" +else + echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n" -echo "Cloning..." -rm -rf $PROJECT-$COMMIT -git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT + echo "Cloning..." + rm -rf $PROJECT-$COMMIT + git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT -echo "Getting commit..." -pushd $PROJECT-$COMMIT -git checkout $COMMIT -cp composer.json ../composer.json -popd + echo "Getting commit..." + pushd $PROJECT-$COMMIT + git checkout $COMMIT || exit1 + cp composer.json ../composer.json + popd -echo "Archiving..." -tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs --exclude tools $PROJECT-$COMMIT + echo "Archiving..." + tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs --exclude tools $PROJECT-$COMMIT -echo "Cleaning..." -rm -rf $PROJECT-$COMMIT + echo "Cleaning..." + rm -rf $PROJECT-$COMMIT -echo "Done." + echo "Done." +fi diff --git a/phpunit8.spec b/phpunit8.spec index b6c5363..ebf627c 100644 --- a/phpunit8.spec +++ b/phpunit8.spec @@ -11,10 +11,10 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit c25f79895d27b6ecd5abfa63de1606b786a461a3 +%global gh_commit 038d4196d8e8cb405cd5e82cedfe413ad6eef9ef #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_vendor sebastianbergmann +%global gh_owner sebastianbergmann %global gh_project phpunit # Packagist %global pk_vendor phpunit @@ -24,16 +24,18 @@ %global php_home %{_datadir}/php %global ver_major 8 %global ver_minor 5 -%global specrel 1 + +%global upstream_version 8.5.15 +#global upstream_prever dev Name: %{pk_project}%{ver_major} -Version: 8.5.14 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} +Release: 1%{?dist} Summary: The PHP Unit Testing framework version %{ver_major} License: BSD -URL: https://github.com/%{gh_vendor}/%{gh_project} -Source0: %{name}-%{version}-%{gh_short}.tgz +URL: https://github.com/%{gh_owner}/%{gh_project} +Source0: %{name}-%{upstream_version}-%{gh_short}.tgz Source1: makesrc.sh # Fix command for autoload @@ -231,6 +233,9 @@ exit $ret %changelog +* Wed Mar 17 2021 Remi Collet - 8.5.15-1 +- update to 8.5.15 + * Wed Feb 3 2021 Remi Collet - 8.5.14-1 - update to 8.5.14 diff --git a/sources b/sources index ef34862..657224a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phpunit8-8.5.14-c25f798.tgz) = 406a84b619741308396e400da75c7b29f04bfe05c02017819749305044781afb6bf615bd6d8e4f458a4f0108557d39f9694d59ed4fd24f626d69af8300256018 +SHA512 (phpunit8-8.5.15-038d419.tgz) = 365b77b4784aa24d9b30caedd92e3811df2333749ef84fd848f3be49a03bd90cdfd5a00f29f5d126712c35337c374b0d625ff46f5fe65854039c394ffa416a04