From 056fa8b3d27765f4f5b71f84052534f1d331ea09 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:10 +0100 Subject: [PATCH 01/64] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- php-bartlett-PHP-CompatInfo.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 6822d98..09ec037 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -31,7 +31,6 @@ Version: 5.1.0 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run -Group: Development/Libraries License: BSD URL: http://php5.laurent-laville.org/compatinfo/ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}%{?prever}-%{gh_short}.tar.gz From 4a6b07ae2baeda72dcc3ff63c5998bdf88ed4dd6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 2 Feb 2019 02:16:02 +0000 Subject: [PATCH 02/64] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 09ec037..fd6b77f 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -28,7 +28,7 @@ Name: php-bartlett-PHP-CompatInfo Version: 5.1.0 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -179,6 +179,9 @@ fi %changelog +* Sat Feb 02 2019 Fedora Release Engineering - 5.1.0-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Wed Nov 28 2018 Remi Collet - 5.1.0-1 - update to 5.1.0 - raise dependency on bartlett/php-reflect 4.3 From 5d9ff078445c87c7edc8561c7e74c7a57977bb3f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 4 Jun 2019 11:39:12 +0200 Subject: [PATCH 03/64] update to 5.2.0 allow bartlett/php-compatinfo-db v2 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 24 +++++++++++++++--------- sources | 2 +- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 29c8457..e75c1d7 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ clog /php-bartlett-PHP-CompatInfo-5.0.11-56a9f8b.tar.gz /php-bartlett-PHP-CompatInfo-5.0.12-ecf11cf.tar.gz /php-bartlett-PHP-CompatInfo-5.1.0-e1239c5.tar.gz +/php-bartlett-PHP-CompatInfo-5.2.0-b54d109.tar.gz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index fd6b77f..cfd647a 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # -# Copyright (c) 2011-2017 Remi Collet +# Copyright (c) 2011-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit e1239c5433be4a121ade2ab5aec9bb81faae7134 +%global gh_commit b54d10946b0f10d67be0faffb5dee24d687effd3 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -19,16 +19,16 @@ #global prever RC2 %global with_tests %{?_without_tests:0}%{!?_without_tests:1} -%if 0%{?fedora} >= 27 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 %global sym_prefix php-symfony3 %else %global sym_prefix php-symfony %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.1.0 +Version: 5.2.0 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -52,7 +52,7 @@ BuildRequires: php-pdo_sqlite %global phpunit %{_bindir}/phpunit7 BuildRequires: (php-composer(bartlett/php-reflect) >= 4.3 with php-composer(bartlett/php-reflect) < 5) BuildRequires: (php-composer(nikic/php-parser) >= 3.1 with php-composer(nikic/php-parser) < 4) -BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 2) +BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 3) BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) Requires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) BuildRequires: %{phpunit} @@ -66,21 +66,23 @@ BuildRequires: php-composer(fedora/autoloader) # "ext-pcre": "*", # "ext-spl": "*", # "ext-json": "*", +# "ext-pdo": "*", # "ext-pdo_sqlite": "*", # "bartlett/php-reflect": "^4.3", # "nikic/php-parser": "^3.1", -# "bartlett/php-compatinfo-db": "^1.23", +# "bartlett/php-compatinfo-db": "^1.23|^2.0", # "psr/log": "^1.0" Requires: php(language) >= 5.5 Requires: php-cli Requires: php-json Requires: php-libxml Requires: php-pcre +Requires: php-pdo Requires: php-pdo_sqlite Requires: php-spl Requires: (php-composer(bartlett/php-reflect) >= 4.3 with php-composer(bartlett/php-reflect) < 5) Requires: (php-composer(nikic/php-parser) >= 3.1 with php-composer(nikic/php-parser) < 4) -Requires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 2) +Requires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 3) Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) # Mandatory for our patch Requires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) @@ -149,7 +151,7 @@ ln -s %{buildroot}%{_datadir}/php/Bartlett/CompatInfo/autoload.php vendor/ ret=0 -for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit" php71 php72 php73; do +for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit" php71 php72 php73 php74; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit7} \ @@ -179,6 +181,10 @@ fi %changelog +* Mon Jun 3 2019 Remi Collet - 5.2.0-1 +- update to 5.2.0 +- allow bartlett/php-compatinfo-db v2 + * Sat Feb 02 2019 Fedora Release Engineering - 5.1.0-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 8f09d87..8f79902 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.1.0-e1239c5.tar.gz) = 54a4f106b230ed84e8a219e3471232ac94bf141c789c338e3d6fb297dad24c9a60be66a97cdeefec96d4ab091a2d788a9ecbb0a73ab56e6e52a1c3a827a846c5 +SHA512 (php-bartlett-PHP-CompatInfo-5.2.0-b54d109.tar.gz) = 8c584d23159664c2cb998e96d52b4b272d83c732d5a693125e809b971d5a1d1579f5cd74c0d6b70911b7db10b37e3dd4c641c72b662b9a9dac0fc8c4782657d6 From 45839c3ed14b2a28c34fe6ee3900d83e71b8ff59 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 4 Jun 2019 11:39:12 +0200 Subject: [PATCH 04/64] update to 5.2.0 allow bartlett/php-compatinfo-db v2 (cherry picked from commit 5d9ff078445c87c7edc8561c7e74c7a57977bb3f) --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 23 ++++++++++++++--------- sources | 2 +- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 29c8457..e75c1d7 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ clog /php-bartlett-PHP-CompatInfo-5.0.11-56a9f8b.tar.gz /php-bartlett-PHP-CompatInfo-5.0.12-ecf11cf.tar.gz /php-bartlett-PHP-CompatInfo-5.1.0-e1239c5.tar.gz +/php-bartlett-PHP-CompatInfo-5.2.0-b54d109.tar.gz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 6822d98..219e8c5 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # -# Copyright (c) 2011-2017 Remi Collet +# Copyright (c) 2011-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit e1239c5433be4a121ade2ab5aec9bb81faae7134 +%global gh_commit b54d10946b0f10d67be0faffb5dee24d687effd3 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -19,19 +19,18 @@ #global prever RC2 %global with_tests %{?_without_tests:0}%{!?_without_tests:1} -%if 0%{?fedora} >= 27 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 %global sym_prefix php-symfony3 %else %global sym_prefix php-symfony %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.1.0 +Version: 5.2.0 %global specrel 1 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run -Group: Development/Libraries License: BSD URL: http://php5.laurent-laville.org/compatinfo/ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}%{?prever}-%{gh_short}.tar.gz @@ -53,7 +52,7 @@ BuildRequires: php-pdo_sqlite %global phpunit %{_bindir}/phpunit7 BuildRequires: (php-composer(bartlett/php-reflect) >= 4.3 with php-composer(bartlett/php-reflect) < 5) BuildRequires: (php-composer(nikic/php-parser) >= 3.1 with php-composer(nikic/php-parser) < 4) -BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 2) +BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 3) BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) Requires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) BuildRequires: %{phpunit} @@ -67,21 +66,23 @@ BuildRequires: php-composer(fedora/autoloader) # "ext-pcre": "*", # "ext-spl": "*", # "ext-json": "*", +# "ext-pdo": "*", # "ext-pdo_sqlite": "*", # "bartlett/php-reflect": "^4.3", # "nikic/php-parser": "^3.1", -# "bartlett/php-compatinfo-db": "^1.23", +# "bartlett/php-compatinfo-db": "^1.23|^2.0", # "psr/log": "^1.0" Requires: php(language) >= 5.5 Requires: php-cli Requires: php-json Requires: php-libxml Requires: php-pcre +Requires: php-pdo Requires: php-pdo_sqlite Requires: php-spl Requires: (php-composer(bartlett/php-reflect) >= 4.3 with php-composer(bartlett/php-reflect) < 5) Requires: (php-composer(nikic/php-parser) >= 3.1 with php-composer(nikic/php-parser) < 4) -Requires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 2) +Requires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 3) Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) # Mandatory for our patch Requires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) @@ -150,7 +151,7 @@ ln -s %{buildroot}%{_datadir}/php/Bartlett/CompatInfo/autoload.php vendor/ ret=0 -for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit" php71 php72 php73; do +for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit" php71 php72 php73 php74; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit7} \ @@ -180,6 +181,10 @@ fi %changelog +* Mon Jun 3 2019 Remi Collet - 5.2.0-1 +- update to 5.2.0 +- allow bartlett/php-compatinfo-db v2 + * Wed Nov 28 2018 Remi Collet - 5.1.0-1 - update to 5.1.0 - raise dependency on bartlett/php-reflect 4.3 diff --git a/sources b/sources index 8f09d87..8f79902 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.1.0-e1239c5.tar.gz) = 54a4f106b230ed84e8a219e3471232ac94bf141c789c338e3d6fb297dad24c9a60be66a97cdeefec96d4ab091a2d788a9ecbb0a73ab56e6e52a1c3a827a846c5 +SHA512 (php-bartlett-PHP-CompatInfo-5.2.0-b54d109.tar.gz) = 8c584d23159664c2cb998e96d52b4b272d83c732d5a693125e809b971d5a1d1579f5cd74c0d6b70911b7db10b37e3dd4c641c72b662b9a9dac0fc8c4782657d6 From beed0635f4c5bfa41e50240452bfe716a57c7b7f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 08:43:32 +0000 Subject: [PATCH 05/64] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index cfd647a..7381842 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -28,7 +28,7 @@ Name: php-bartlett-PHP-CompatInfo Version: 5.2.0 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -181,6 +181,9 @@ fi %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 5.2.0-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Mon Jun 3 2019 Remi Collet - 5.2.0-1 - update to 5.2.0 - allow bartlett/php-compatinfo-db v2 From 576467e8e23fed836775a987b3b4e9f8c0019be5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 22 Oct 2019 14:44:14 +0200 Subject: [PATCH 06/64] update to 5.2.1 (no change) --- .gitignore | 1 + ...ch => php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch | 8 +++++--- php-bartlett-PHP-CompatInfo.spec | 12 +++++++----- sources | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) rename php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch => php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch (91%) diff --git a/.gitignore b/.gitignore index e75c1d7..fa9b261 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ clog /php-bartlett-PHP-CompatInfo-5.0.12-ecf11cf.tar.gz /php-bartlett-PHP-CompatInfo-5.1.0-e1239c5.tar.gz /php-bartlett-PHP-CompatInfo-5.2.0-b54d109.tar.gz +/php-bartlett-PHP-CompatInfo-5.2.1-287d879.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch b/php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch similarity index 91% rename from php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch rename to php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch index d8a8fb7..e7ed3f5 100644 --- a/php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch @@ -24,7 +24,7 @@ diff -up ./bin/phpcompatinfo.json.dist.rpm ./bin/phpcompatinfo.json.dist diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo --- ./bin/phpcompatinfo.rpm 2018-11-28 08:53:47.258278539 +0100 +++ ./bin/phpcompatinfo 2018-11-28 08:55:38.807878501 +0100 -@@ -1,40 +1,22 @@ +@@ -1,42 +1,22 @@ #!/usr/bin/env php run(); diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 7381842..35c8a9d 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit b54d10946b0f10d67be0faffb5dee24d687effd3 +%global gh_commit 287d879f1b85f49faffdca89088a6b7bffb535d9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -26,9 +26,9 @@ %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.2.0 +Version: 5.2.1 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -42,7 +42,7 @@ Source1: fedora-review-check Source2: %{name}-5.1.0-autoload.php # Autoload and sqlite database path -Patch0: %{name}-5.1.0-rpm.patch +Patch0: %{name}-5.2.1-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 5.5 @@ -170,7 +170,6 @@ fi %files -%{!?_licensedir:%global license %%doc} %license LICENSE %doc composer.json README.* %config(noreplace) %{_sysconfdir}/phpcompatinfo.json @@ -181,6 +180,9 @@ fi %changelog +* Tue Oct 22 2019 Remi Collet - 5.2.1-1 +- update to 5.2.1 (no change) + * Fri Jul 26 2019 Fedora Release Engineering - 5.2.0-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 8f79902..62862d3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.2.0-b54d109.tar.gz) = 8c584d23159664c2cb998e96d52b4b272d83c732d5a693125e809b971d5a1d1579f5cd74c0d6b70911b7db10b37e3dd4c641c72b662b9a9dac0fc8c4782657d6 +SHA512 (php-bartlett-PHP-CompatInfo-5.2.1-287d879.tar.gz) = 13f79718b43fcaa261162684c0bed989f1880cb43670ac7a4216ae190f02accf59ceab5759ab3d100d5245f6728ae1aff9428ee407f2d47912e6c9aa8f30f91a From 2dacad8a2ad5f94d8a217463fdaa14bfe2663e2b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 30 Jan 2020 06:51:45 +0000 Subject: [PATCH 07/64] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 35c8a9d..8d09b3a 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -28,7 +28,7 @@ Name: php-bartlett-PHP-CompatInfo Version: 5.2.1 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -180,6 +180,9 @@ fi %changelog +* Thu Jan 30 2020 Fedora Release Engineering - 5.2.1-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Tue Oct 22 2019 Remi Collet - 5.2.1-1 - update to 5.2.1 (no change) From 47b698a1187858664bcdc68d53a5ae3643576ea4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 29 Apr 2020 11:26:37 +0200 Subject: [PATCH 08/64] v5.2.3 --- .gitignore | 1 + ... => php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch | 2 +- php-bartlett-PHP-CompatInfo.spec | 14 ++++++++------ sources | 2 +- 4 files changed, 11 insertions(+), 8 deletions(-) rename php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch => php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch (97%) diff --git a/.gitignore b/.gitignore index fa9b261..31b2904 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ clog /php-bartlett-PHP-CompatInfo-5.1.0-e1239c5.tar.gz /php-bartlett-PHP-CompatInfo-5.2.0-b54d109.tar.gz /php-bartlett-PHP-CompatInfo-5.2.1-287d879.tar.gz +/php-bartlett-PHP-CompatInfo-5.2.3-ec29a4e.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch b/php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch similarity index 97% rename from php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch rename to php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch index e7ed3f5..5b6798e 100644 --- a/php-bartlett-PHP-CompatInfo-5.2.1-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch @@ -70,6 +70,6 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo Environment::setScanDir(); --$application = new Application($appName, '5.2.1'); +-$application = new Application($appName, '5.2.3'); +$application = new Application($appName, '@package_version@'); $application->run(); diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 8d09b3a..03e2403 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 287d879f1b85f49faffdca89088a6b7bffb535d9 +%global gh_commit ec29a4eea541d3bfdbf00b6ff85700dd926bf6b6 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -26,9 +26,9 @@ %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.2.1 +Version: 5.2.3 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -42,7 +42,7 @@ Source1: fedora-review-check Source2: %{name}-5.1.0-autoload.php # Autoload and sqlite database path -Patch0: %{name}-5.2.1-rpm.patch +Patch0: %{name}-5.2.3-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 5.5 @@ -116,7 +116,6 @@ Documentation: http://php5.laurent-laville.org/compatinfo/manual/current/en/ %prep %setup -q -n %{gh_project}-%{gh_commit} -#setup -q -n %{gh_project}-%{version} %patch0 -p1 -b .rpm cp %{SOURCE2} src/Bartlett/CompatInfo/autoload.php @@ -151,7 +150,7 @@ ln -s %{buildroot}%{_datadir}/php/Bartlett/CompatInfo/autoload.php vendor/ ret=0 -for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit" php71 php72 php73 php74; do +for cmdarg in "php %{phpunit}" php72 php73 php74 php80; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit7} \ @@ -180,6 +179,9 @@ fi %changelog +* Wed Apr 29 2020 Remi Collet - 5.2.3-1 +- update to 5.2.3 + * Thu Jan 30 2020 Fedora Release Engineering - 5.2.1-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 62862d3..088b567 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.2.1-287d879.tar.gz) = 13f79718b43fcaa261162684c0bed989f1880cb43670ac7a4216ae190f02accf59ceab5759ab3d100d5245f6728ae1aff9428ee407f2d47912e6c9aa8f30f91a +SHA512 (php-bartlett-PHP-CompatInfo-5.2.3-ec29a4e.tar.gz) = c8312894b88730a63bbb732a878fa7e3102782ab3227483bdf386a6ad0a77d5dca57ebaa1c4f1f3b6df9ed0b61a8b3c57e59a93dcd5a8e94c18ade55f6220659 From a689905aaa64ac17477326a506ce654b16c56cf0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 8 Jul 2020 10:40:27 +0200 Subject: [PATCH 09/64] update to 5.3.0 raise dependency on PHP 7.1.3 raise dependency on bartlett/php-reflect 4.4 raise dependency on bartlett/php-compatinfo-db 2.0 switch to phpunit8 --- .gitignore | 1 + ...bartlett-PHP-CompatInfo-5.1.0-autoload.php | 1 - php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch | 75 ----------------- php-bartlett-PHP-CompatInfo-5.3.0-rpm.patch | 80 +++++++++++++++++++ php-bartlett-PHP-CompatInfo.spec | 73 ++++++++--------- sources | 2 +- 6 files changed, 116 insertions(+), 116 deletions(-) delete mode 100644 php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch create mode 100644 php-bartlett-PHP-CompatInfo-5.3.0-rpm.patch diff --git a/.gitignore b/.gitignore index 31b2904..bab09d7 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ clog /php-bartlett-PHP-CompatInfo-5.2.0-b54d109.tar.gz /php-bartlett-PHP-CompatInfo-5.2.1-287d879.tar.gz /php-bartlett-PHP-CompatInfo-5.2.3-ec29a4e.tar.gz +/php-bartlett-PHP-CompatInfo-5.3.0-5b58fb5.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.1.0-autoload.php b/php-bartlett-PHP-CompatInfo-5.1.0-autoload.php index 61e455b..9d05d9f 100644 --- a/php-bartlett-PHP-CompatInfo-5.1.0-autoload.php +++ b/php-bartlett-PHP-CompatInfo-5.1.0-autoload.php @@ -9,7 +9,6 @@ require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Dependencies::required(array( '/usr/share/php/Bartlett/Reflect/autoload.php', '/usr/share/php/Bartlett/CompatInfoDb/autoload.php', - '/usr/share/php/PhpParser3/autoload.php', '/usr/share/php/Psr/Log/autoload.php', '/usr/share/php/Doctrine/Common/Cache/autoload.php', )); diff --git a/php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch b/php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch deleted file mode 100644 index 5b6798e..0000000 --- a/php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch +++ /dev/null @@ -1,75 +0,0 @@ -diff -up ./bin/phpcompatinfo.json.dist.rpm ./bin/phpcompatinfo.json.dist ---- ./bin/phpcompatinfo.json.dist.rpm 2018-11-27 22:03:39.000000000 +0100 -+++ ./bin/phpcompatinfo.json.dist 2018-11-28 08:53:47.258278539 +0100 -@@ -6,6 +6,19 @@ - } - ], - "plugins": [ -+ { -+ "name": "Cache", -+ "class": "Bartlett\\Reflect\\Plugin\\CachePlugin", -+ "options": { -+ "adapter": "DoctrineCacheAdapter", -+ "backend": { -+ "class": "Doctrine\\Common\\Cache\\FilesystemCache", -+ "args": [ -+ "%{HOME}/.cache/php-reflect" -+ ] -+ } -+ } -+ } - ], - "analysers" : [ - ], -diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2018-11-28 08:53:47.258278539 +0100 -+++ ./bin/phpcompatinfo 2018-11-28 08:55:38.807878501 +0100 -@@ -1,42 +1,22 @@ - #!/usr/bin/env php - setUseIncludePath(true); - - if (PHP_SAPI !== 'cli') { - return; - } - --$compatInfoDbV1 = class_exists(Bartlett\CompatInfoDb\Environment::class); -- --if (\Phar::running() && $compatInfoDbV1) { -- try { -- Bartlett\CompatInfoDb\Environment::checkRequirements(); -- } catch (\RuntimeException $e) { -- die ($e->getMessage()); -- } --} -- - use Bartlett\Reflect\Environment; - use Bartlett\CompatInfo\Console\Application; - - Environment::setScanDir(); - --$application = new Application($appName, '5.2.3'); -+$application = new Application($appName, '@package_version@'); - $application->run(); diff --git a/php-bartlett-PHP-CompatInfo-5.3.0-rpm.patch b/php-bartlett-PHP-CompatInfo-5.3.0-rpm.patch new file mode 100644 index 0000000..e460999 --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-5.3.0-rpm.patch @@ -0,0 +1,80 @@ +diff -up ./bin/phpcompatinfo.json.dist.rpm ./bin/phpcompatinfo.json.dist +--- ./bin/phpcompatinfo.json.dist.rpm 2020-07-07 10:49:03.000000000 +0200 ++++ ./bin/phpcompatinfo.json.dist 2020-07-07 15:10:25.330090185 +0200 +@@ -6,6 +6,19 @@ + } + ], + "plugins": [ ++ { ++ "name": "Cache", ++ "class": "Bartlett\\Reflect\\Plugin\\CachePlugin", ++ "options": { ++ "adapter": "DoctrineCacheAdapter", ++ "backend": { ++ "class": "Doctrine\\Common\\Cache\\FilesystemCache", ++ "args": [ ++ "%{HOME}/.cache/php-reflect" ++ ] ++ } ++ } ++ } + ], + "analysers" : [ + ], +diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo +--- ./bin/phpcompatinfo.rpm 2020-07-07 10:49:03.000000000 +0200 ++++ ./bin/phpcompatinfo 2020-07-07 15:10:25.330090185 +0200 +@@ -1,23 +1,13 @@ + #!/usr/bin/env php + setUseIncludePath(true); + + if (PHP_SAPI !== 'cli') { + return; +diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php +--- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2020-07-07 10:49:03.000000000 +0200 ++++ ./src/Bartlett/CompatInfo/Console/Application.php 2020-07-07 15:10:37.214047839 +0200 +@@ -16,8 +16,6 @@ namespace Bartlett\CompatInfo\Console; + use Bartlett\CompatInfo\Util\Database; + use Bartlett\Reflect\Console\Application as BaseApplication; + +-use Jean85\PrettyVersions; +- + use OutOfBoundsException; + + /** +@@ -48,12 +46,7 @@ class Application extends BaseApplicatio + + public function __construct() + { +- try { +- $version = PrettyVersions::getVersion('bartlett/php-compatinfo')->getPrettyVersion(); +- } catch (OutOfBoundsException $e) { +- $version = self::VERSION; +- } +- parent::__construct(self::NAME, $version); ++ parent::__construct(self::NAME, self::VERSION); + } + + /** diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 03e2403..498220e 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # -# Copyright (c) 2011-2019 Remi Collet +# Copyright (c) 2011-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit ec29a4eea541d3bfdbf00b6ff85700dd926bf6b6 +%global gh_commit 5b58fb55f2a759f6c134d1649d1e1df1b8cd5cf2 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compat-info #global prever RC2 -%global with_tests %{?_without_tests:0}%{!?_without_tests:1} +%bcond_without tests %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 %global sym_prefix php-symfony3 @@ -26,7 +26,7 @@ %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.2.3 +Version: 5.3.0 %global specrel 1 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run @@ -38,41 +38,41 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit # Script for fedora-review Source1: fedora-review-check -# Autoloader for RPM - die composer ! +# RPM autoloader Source2: %{name}-5.1.0-autoload.php # Autoload and sqlite database path -Patch0: %{name}-5.2.3-rpm.patch +# avoid jean85/pretty-package-versions +Patch0: %{name}-5.3.0-rpm.patch BuildArch: noarch -BuildRequires: php(language) >= 5.5 -%if %{with_tests} +BuildRequires: php(language) >= 7.1.3 +%if %{with tests} # to run test suite BuildRequires: php-pdo_sqlite -%global phpunit %{_bindir}/phpunit7 -BuildRequires: (php-composer(bartlett/php-reflect) >= 4.3 with php-composer(bartlett/php-reflect) < 5) -BuildRequires: (php-composer(nikic/php-parser) >= 3.1 with php-composer(nikic/php-parser) < 4) -BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 3) +BuildRequires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) +BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 2.0 with php-composer(bartlett/php-compatinfo-db) < 3) BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) -Requires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) +BuildRequires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) +%global phpunit %{_bindir}/phpunit8 BuildRequires: %{phpunit} # For our patch / autoloader BuildRequires: php-composer(fedora/autoloader) %endif # From composer.json, "require" -# "php": "^5.5|^7.0", +# "php": "^7.1.3", # "ext-libxml": "*", # "ext-pcre": "*", # "ext-spl": "*", # "ext-json": "*", # "ext-pdo": "*", # "ext-pdo_sqlite": "*", -# "bartlett/php-reflect": "^4.3", -# "nikic/php-parser": "^3.1", -# "bartlett/php-compatinfo-db": "^1.23|^2.0", +# "bartlett/php-reflect": "^4.4", +# "bartlett/php-compatinfo-db": "^2.0", +# "jean85/pretty-package-versions": "^1.5", # "psr/log": "^1.0" -Requires: php(language) >= 5.5 +Requires: php(language) >= 7.1.3 Requires: php-cli Requires: php-json Requires: php-libxml @@ -80,25 +80,11 @@ Requires: php-pcre Requires: php-pdo Requires: php-pdo_sqlite Requires: php-spl -Requires: (php-composer(bartlett/php-reflect) >= 4.3 with php-composer(bartlett/php-reflect) < 5) -Requires: (php-composer(nikic/php-parser) >= 3.1 with php-composer(nikic/php-parser) < 4) -Requires: (php-composer(bartlett/php-compatinfo-db) >= 1.23 with php-composer(bartlett/php-compatinfo-db) < 3) +Requires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) +Requires: (php-composer(bartlett/php-compatinfo-db) >= 2.0 with php-composer(bartlett/php-compatinfo-db) < 3) Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) # Mandatory for our patch Requires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) -# From composer.json, "require-dev": { -# "monolog/monolog": "^1.10", -# From composer.json, "suggest" -# "doctrine/cache": "Allow caching results, since bartlett/php-reflect 2.2", -# "monolog/monolog": "Allow logging events with the LogPlugin", -# "bartlett/monolog-callbackfilterhandler": "Advanced filtering strategies for Monolog", -# "bartlett/monolog-growlhandler": "Sends notifications to Growl for Monolog", -# "bartlett/phpunit-loggertestlistener": "Allow logging unit tests to your favorite PSR-3 logger interface", -# "bartlett/umlwriter": "Allow writing UML class diagrams (Graphviz or PlantUML)" -# "doctrine/cache": "Allow caching results, since bartlett/php-reflect 2.2" -# "bartlett/umlwriter": "Allow writing UML class diagrams (Graphviz or PlantUML)" -Suggests: php-composer(monolog/monolog) -# Required by autoloader Requires: php-composer(fedora/autoloader) Provides: phpcompatinfo = %{version} @@ -123,9 +109,11 @@ cp %{SOURCE2} src/Bartlett/CompatInfo/autoload.php # Cleanup patched files find src -name \*rpm -delete -print -# Set package version -sed -e 's/@package_version@/%{version}%{?prever}/' \ - -i $(find src -name \*.php) bin/phpcompatinfo +# Check package version +FILE=src/Bartlett/CompatInfo/Console/Application.php +grep " VERSION" $FILE +sed -e '/VERSION/s/5.3.x-dev/%{version}/' -i $FILE +grep %{version} $FILE %build @@ -143,7 +131,7 @@ install -D -p -m 644 bin/phpcompatinfo.1 %{buildroot}%{_mandir}/man1/php install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora-review-check -%if %{with_tests} +%if %{with tests} %check mkdir vendor ln -s %{buildroot}%{_datadir}/php/Bartlett/CompatInfo/autoload.php vendor/ @@ -153,7 +141,7 @@ ret=0 for cmdarg in "php %{phpunit}" php72 php73 php74 php80; do if which $cmdarg; then set $cmdarg - $1 ${2:-%{_bindir}/phpunit7} \ + $1 ${2:-%{_bindir}/phpunit8} \ --include-path %{buildroot}%{_datadir}/php --verbose || ret=1 fi done @@ -179,6 +167,13 @@ fi %changelog +* Wed Jul 8 2020 Remi Collet - 5.3.0-1 +- update to 5.3.0 +- raise dependency on PHP 7.1.3 +- raise dependency on bartlett/php-reflect 4.4 +- raise dependency on bartlett/php-compatinfo-db 2.0 +- switch to phpunit8 + * Wed Apr 29 2020 Remi Collet - 5.2.3-1 - update to 5.2.3 diff --git a/sources b/sources index 088b567..563b875 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.2.3-ec29a4e.tar.gz) = c8312894b88730a63bbb732a878fa7e3102782ab3227483bdf386a6ad0a77d5dca57ebaa1c4f1f3b6df9ed0b61a8b3c57e59a93dcd5a8e94c18ade55f6220659 +SHA512 (php-bartlett-PHP-CompatInfo-5.3.0-5b58fb5.tar.gz) = 84cd9c248a037f263ffdcce41bc9102b208a6faf5654cae554da71f5891a77d9915ba5d32f182a0fe76bd139554867a9ca634557ad73b1d267ae647c93bb056c From fe031126b5600c99e14da459018601301d120245 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jul 2020 20:41:18 +0000 Subject: [PATCH 10/64] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 498220e..7331808 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -28,7 +28,7 @@ Name: php-bartlett-PHP-CompatInfo Version: 5.3.0 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -167,6 +167,9 @@ fi %changelog +* Tue Jul 28 2020 Fedora Release Engineering - 5.3.0-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Wed Jul 8 2020 Remi Collet - 5.3.0-1 - update to 5.3.0 - raise dependency on PHP 7.1.3 From d1e89690a427c53dedee8cb879f06369a7cad125 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 6 Nov 2020 16:45:52 +0100 Subject: [PATCH 11/64] update to 5.4.1 switch to phpunit9 add dependency on ramsey/uuid add dependency on symfony components: config, console, dependency-injection, event-dispatcher, finder, serializer and stopwatch add dependency on doctrine/collections drop dependency on doctrine/cache switch to classmap autoloader drop configuration file (no more supported) --- .gitignore | 1 + ...bartlett-PHP-CompatInfo-5.1.0-autoload.php | 18 --- php-bartlett-PHP-CompatInfo-5.3.0-rpm.patch | 80 ----------- php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch | 55 ++++++++ php-bartlett-PHP-CompatInfo.spec | 128 ++++++++++++++---- sources | 2 +- 6 files changed, 156 insertions(+), 128 deletions(-) delete mode 100644 php-bartlett-PHP-CompatInfo-5.1.0-autoload.php delete mode 100644 php-bartlett-PHP-CompatInfo-5.3.0-rpm.patch create mode 100644 php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch diff --git a/.gitignore b/.gitignore index bab09d7..d8ff591 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ clog /php-bartlett-PHP-CompatInfo-5.2.1-287d879.tar.gz /php-bartlett-PHP-CompatInfo-5.2.3-ec29a4e.tar.gz /php-bartlett-PHP-CompatInfo-5.3.0-5b58fb5.tar.gz +/php-bartlett-PHP-CompatInfo-5.4.1-3e79a1a.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.1.0-autoload.php b/php-bartlett-PHP-CompatInfo-5.1.0-autoload.php deleted file mode 100644 index 9d05d9f..0000000 --- a/php-bartlett-PHP-CompatInfo-5.1.0-autoload.php +++ /dev/null @@ -1,18 +0,0 @@ -setUseIncludePath(true); - - if (PHP_SAPI !== 'cli') { - return; -diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php ---- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2020-07-07 10:49:03.000000000 +0200 -+++ ./src/Bartlett/CompatInfo/Console/Application.php 2020-07-07 15:10:37.214047839 +0200 -@@ -16,8 +16,6 @@ namespace Bartlett\CompatInfo\Console; - use Bartlett\CompatInfo\Util\Database; - use Bartlett\Reflect\Console\Application as BaseApplication; - --use Jean85\PrettyVersions; -- - use OutOfBoundsException; - - /** -@@ -48,12 +46,7 @@ class Application extends BaseApplicatio - - public function __construct() - { -- try { -- $version = PrettyVersions::getVersion('bartlett/php-compatinfo')->getPrettyVersion(); -- } catch (OutOfBoundsException $e) { -- $version = self::VERSION; -- } -- parent::__construct(self::NAME, $version); -+ parent::__construct(self::NAME, self::VERSION); - } - - /** diff --git a/php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch b/php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch new file mode 100644 index 0000000..6626bdf --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch @@ -0,0 +1,55 @@ +diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo +--- ./bin/phpcompatinfo.rpm 2020-10-01 11:23:52.000000000 +0200 ++++ ./bin/phpcompatinfo 2020-10-02 12:29:00.346660651 +0200 +@@ -5,22 +5,13 @@ if (PHP_SAPI !== 'cli') { + return; + } + +-if (\Phar::running()) { +- $vendorDir = 'phar://phpcompatinfo.phar/vendor'; +-} else { +- $baseDir = dirname(__DIR__); +- $vendorDir = $baseDir . '/vendor'; +- +- if (!file_exists($vendorDir . '/autoload.php')) { +- $vendorDir = dirname(dirname($baseDir)); +- } +-} ++$vendorDir = '/usr/share/php/Bartlett/CompatInfo'; + require_once $vendorDir . '/autoload.php'; + + use Bartlett\CompatInfo\Console\ApplicationInterface; + + /** @var \Symfony\Component\DependencyInjection\ContainerBuilder $container */ +-$container = require dirname(__DIR__) . '/config/container.php'; ++$container = require $vendorDir . '/config/container.php'; + + $app = $container->get(ApplicationInterface::class); + $app->setContainer($container); +diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php +--- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2020-10-02 12:05:49.767768616 +0200 ++++ ./src/Bartlett/CompatInfo/Console/Application.php 2020-10-02 12:10:02.129841590 +0200 +@@ -30,8 +30,6 @@ use Symfony\Component\DependencyInjectio + use Symfony\Component\EventDispatcher\EventDispatcher; + use Symfony\Component\EventDispatcher\EventDispatcherInterface ; + +-use PackageVersions\Versions; +- + use function substr_count; + + /** +@@ -77,14 +75,6 @@ class Application extends BaseApplicatio + $version = self::VERSION; + } elseif (substr_count($version, '.') === 2) { + // release is in X.Y.Z format +- } else { +- // composer or git strategy +- $version = Versions::getVersion('bartlett/php-compatinfo'); +- list($ver, ) = explode('@', $version); +- +- if (strpos($ver, 'dev') === false) { +- $version = $ver; +- } + } + parent::__construct(self::NAME, $version); + diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 7331808..cc82751 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 5b58fb55f2a759f6c134d1649d1e1df1b8cd5cf2 +%global gh_commit 3e79a1ac353774b0a3eedac8f0239dafd3e3eedb %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -26,9 +26,9 @@ %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.3.0 +Version: 5.4.1 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -38,30 +38,35 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit # Script for fedora-review Source1: fedora-review-check -# RPM autoloader -Source2: %{name}-5.1.0-autoload.php - # Autoload and sqlite database path # avoid jean85/pretty-package-versions -Patch0: %{name}-5.3.0-rpm.patch +Patch0: %{name}-5.4.0-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 7.1.3 %if %{with tests} # to run test suite BuildRequires: php-pdo_sqlite -BuildRequires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) -BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 2.0 with php-composer(bartlett/php-compatinfo-db) < 3) -BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) -BuildRequires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) +BuildRequires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) +BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 2.0 with php-composer(bartlett/php-compatinfo-db) < 3) +BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) +BuildRequires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) +BuildRequires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6) +BuildRequires: (php-composer(symfony/console) >= 4.4 with php-composer(symfony/console) < 6) +BuildRequires: (php-composer(symfony/dependency-injection) >= 4.4 with php-composer(symfony/dependency-injection) < 6) +BuildRequires: (php-composer(symfony/event-dispatcher) >= 4.4 with php-composer(symfony/event-dispatcher) < 6) +BuildRequires: (php-composer(symfony/finder) >= 4.4 with php-composer(symfony/finder) < 6) +BuildRequires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6) +BuildRequires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6) +BuildRequires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) %global phpunit %{_bindir}/phpunit8 BuildRequires: %{phpunit} # For our patch / autoloader -BuildRequires: php-composer(fedora/autoloader) +BuildRequires: php-fedora-autoloader-devel %endif # From composer.json, "require" -# "php": "^7.1.3", +# "php": "^7.1.3|^8.0", # "ext-libxml": "*", # "ext-pcre": "*", # "ext-spl": "*", @@ -70,8 +75,12 @@ BuildRequires: php-composer(fedora/autoloader) # "ext-pdo_sqlite": "*", # "bartlett/php-reflect": "^4.4", # "bartlett/php-compatinfo-db": "^2.0", -# "jean85/pretty-package-versions": "^1.5", -# "psr/log": "^1.0" +# "doctrine/collections": "^1.4", +# "composer/package-versions-deprecated": "^1.8", +# "ramsey/uuid": "^3.9|^4.0", +# "symfony/serializer": "^4.4|^5.0", +# "symfony/config": "^4.4|^5.0", +# "symfony/dependency-injection": "^4.4|^5.0" Requires: php(language) >= 7.1.3 Requires: php-cli Requires: php-json @@ -80,11 +89,19 @@ Requires: php-pcre Requires: php-pdo Requires: php-pdo_sqlite Requires: php-spl -Requires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) -Requires: (php-composer(bartlett/php-compatinfo-db) >= 2.0 with php-composer(bartlett/php-compatinfo-db) < 3) -Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) -# Mandatory for our patch -Requires: (php-composer(doctrine/cache) >= 1.3 with php-composer(doctrine/cache) < 2) +Requires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) +Requires: (php-composer(bartlett/php-compatinfo-db) >= 2.0 with php-composer(bartlett/php-compatinfo-db) < 3) +Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) +Requires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) +Requires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6) +Requires: (php-composer(symfony/console) >= 4.4 with php-composer(symfony/console) < 6) +Requires: (php-composer(symfony/dependency-injection) >= 4.4 with php-composer(symfony/dependency-injection) < 6) +Requires: (php-composer(symfony/event-dispatcher) >= 4.4 with php-composer(symfony/event-dispatcher) < 6) +Requires: (php-composer(symfony/finder) >= 4.4 with php-composer(symfony/finder) < 6) +Requires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6) +Requires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6) +Requires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) +# Required by autoloader Requires: php-composer(fedora/autoloader) Provides: phpcompatinfo = %{version} @@ -104,15 +121,56 @@ Documentation: http://php5.laurent-laville.org/compatinfo/manual/current/en/ %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p1 -b .rpm -cp %{SOURCE2} src/Bartlett/CompatInfo/autoload.php + +phpab \ + --template fedora \ + --output src/Bartlett/CompatInfo/autoload.php \ + src/Bartlett/CompatInfo +cat << 'EOF' | tee -a src/Bartlett/CompatInfo/autoload.php + +\Fedora\Autoloader\Dependencies::required([ + '%{_datadir}/php/Bartlett/Reflect/autoload.php', + '%{_datadir}/php/Bartlett/CompatInfoDb/autoload.php', + '%{_datadir}/php/Psr/Log/autoload.php', + '%{_datadir}/php/Ramsey/Uuid/autoload.php', + [ + '%{_datadir}/php/Symfony5/Component/Config/autoload.php', + '%{_datadir}/php/Symfony4/Component/Config/autoload.php', + ], [ + '%{_datadir}/php/Symfony5/Component/Console/autoload.php', + '%{_datadir}/php/Symfony4/Component/Console/autoload.php', + ], [ + '%{_datadir}/php/Symfony5/Component/DependencyInjection/autoload.php', + '%{_datadir}/php/Symfony4/Component/DependencyInjection/autoload.php', + ], [ + '%{_datadir}/php/Symfony5/Component/EventDispatcher/autoload.php', + '%{_datadir}/php/Symfony4/Component/EventDispatcher/autoload.php', + ], [ + '%{_datadir}/php/Symfony5/Component/Finder/autoload.php', + '%{_datadir}/php/Symfony4/Component/Finder/autoload.php', + ], [ + '%{_datadir}/php/Symfony5/Component/Serializer/autoload.php', + '%{_datadir}/php/Symfony4/Component/Serializer/autoload.php', + ], [ + '%{_datadir}/php/Symfony5/Component/Stopwatch/autoload.php', + '%{_datadir}/php/Symfony4/Component/Stopwatch/autoload.php', + ], + '%{_datadir}/php/Doctrine/Common/Collections/autoload.php', +]); +EOF # Cleanup patched files find src -name \*rpm -delete -print +# fix path in configuration +sed -e 's:src/Bartlett/CompatInfo/::' -i config/set/*php +mv config src/Bartlett/CompatInfo/config +# for tests +ln -s src/Bartlett/CompatInfo/config config + # Check package version FILE=src/Bartlett/CompatInfo/Console/Application.php grep " VERSION" $FILE -sed -e '/VERSION/s/5.3.x-dev/%{version}/' -i $FILE grep %{version} $FILE @@ -125,7 +183,6 @@ mkdir -p %{buildroot}%{_datadir}/php cp -pr src/Bartlett %{buildroot}%{_datadir}/php/Bartlett install -D -p -m 755 bin/phpcompatinfo %{buildroot}%{_bindir}/phpcompatinfo -install -D -p -m 644 bin/phpcompatinfo.json.dist %{buildroot}%{_sysconfdir}/phpcompatinfo.json install -D -p -m 644 bin/phpcompatinfo.1 %{buildroot}%{_mandir}/man1/phpcompatinfo.1 install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora-review-check @@ -134,15 +191,18 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name} %if %{with tests} %check mkdir vendor -ln -s %{buildroot}%{_datadir}/php/Bartlett/CompatInfo/autoload.php vendor/ - +cat << 'EOF' | tee vendor/autoload.php + - 5.4.1-1 +- update to 5.4.1 +- switch to phpunit9 +- add dependency on ramsey/uuid +- add dependency on symfony components: config, console, dependency-injection, + event-dispatcher, finder, serializer and stopwatch +- add dependency on doctrine/collections +- drop dependency on doctrine/cache +- switch to classmap autoloader +- drop configuration file (no more supported) + * Tue Jul 28 2020 Fedora Release Engineering - 5.3.0-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 563b875..604e03b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.3.0-5b58fb5.tar.gz) = 84cd9c248a037f263ffdcce41bc9102b208a6faf5654cae554da71f5891a77d9915ba5d32f182a0fe76bd139554867a9ca634557ad73b1d267ae647c93bb056c +SHA512 (php-bartlett-PHP-CompatInfo-5.4.1-3e79a1a.tar.gz) = 79d6465e4215be0a73201d2c19530ba72b50b14f6b0a556174d92da5c4090eac6d64d68f8c2841d4c09b6338fb27af10f81a705d4bfc2eba774c5eafb13069ad From 8f11b552f00263c4e93c97613da21125926a6b99 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 23 Nov 2020 09:38:45 +0100 Subject: [PATCH 12/64] v5.4.2 --- .gitignore | 1 + ...hp-bartlett-PHP-CompatInfo-5.4.2-rpm.patch | 48 +++++++++++++------ php-bartlett-PHP-CompatInfo.spec | 18 +++++-- sources | 2 +- 4 files changed, 48 insertions(+), 21 deletions(-) rename php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch => php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch (54%) diff --git a/.gitignore b/.gitignore index d8ff591..890f63b 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ clog /php-bartlett-PHP-CompatInfo-5.2.3-ec29a4e.tar.gz /php-bartlett-PHP-CompatInfo-5.3.0-5b58fb5.tar.gz /php-bartlett-PHP-CompatInfo-5.4.1-3e79a1a.tar.gz +/php-bartlett-PHP-CompatInfo-5.4.2-456308c.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch b/php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch similarity index 54% rename from php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch rename to php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch index 6626bdf..d77f69b 100644 --- a/php-bartlett-PHP-CompatInfo-5.4.0-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch @@ -1,22 +1,40 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2020-10-01 11:23:52.000000000 +0200 -+++ ./bin/phpcompatinfo 2020-10-02 12:29:00.346660651 +0200 -@@ -5,22 +5,13 @@ if (PHP_SAPI !== 'cli') { - return; - } +--- ./bin/phpcompatinfo.rpm 2020-11-23 09:20:15.949928560 +0100 ++++ ./bin/phpcompatinfo 2020-11-23 09:23:44.418075703 +0100 +@@ -8,39 +8,13 @@ if (PHP_SAPI !== 'cli') { + + gc_disable(); // performance boost -if (\Phar::running()) { -- $vendorDir = 'phar://phpcompatinfo.phar/vendor'; +- $possibleAutoloadPaths = [ +- 'phar://phpcompatinfo.phar/vendor/autoload.php' +- ]; -} else { -- $baseDir = dirname(__DIR__); -- $vendorDir = $baseDir . '/vendor'; +- $possibleAutoloadPaths = [ +- // local dev repository +- __DIR__ . '/../vendor/autoload.php', +- // dependency +- __DIR__ . '/../../../../vendor/autoload.php', +- ]; +-} - -- if (!file_exists($vendorDir . '/autoload.php')) { -- $vendorDir = dirname(dirname($baseDir)); +-$isAutoloadFound = false; +-foreach ($possibleAutoloadPaths as $possibleAutoloadPath) { +- if (file_exists($possibleAutoloadPath)) { +- require_once $possibleAutoloadPath; +- $isAutoloadFound = true; +- break; - } -} +- +-if ($isAutoloadFound === false) { +- throw new RuntimeException(sprintf( +- 'Unable to find "vendor/autoload.php" in "%s" paths.', +- implode('", "', $possibleAutoloadPaths) +- )); +-} +$vendorDir = '/usr/share/php/Bartlett/CompatInfo'; - require_once $vendorDir . '/autoload.php'; ++require_once $vendorDir . '/autoload.php'; use Bartlett\CompatInfo\Console\ApplicationInterface; @@ -27,18 +45,18 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo $app = $container->get(ApplicationInterface::class); $app->setContainer($container); diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php ---- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2020-10-02 12:05:49.767768616 +0200 -+++ ./src/Bartlett/CompatInfo/Console/Application.php 2020-10-02 12:10:02.129841590 +0200 +--- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2020-11-20 13:00:53.000000000 +0100 ++++ ./src/Bartlett/CompatInfo/Console/Application.php 2020-11-23 09:21:14.242121292 +0100 @@ -30,8 +30,6 @@ use Symfony\Component\DependencyInjectio use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface ; -use PackageVersions\Versions; - + use Phar; use function substr_count; - /** -@@ -77,14 +75,6 @@ class Application extends BaseApplicatio +@@ -78,14 +76,6 @@ class Application extends BaseApplicatio $version = self::VERSION; } elseif (substr_count($version, '.') === 2) { // release is in X.Y.Z format diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index cc82751..5862466 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 3e79a1ac353774b0a3eedac8f0239dafd3e3eedb +%global gh_commit 456308cc09f2c78903195bbbf09886314950a083 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -26,7 +26,7 @@ %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.4.1 +Version: 5.4.2 %global specrel 1 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run @@ -40,7 +40,7 @@ Source1: fedora-review-check # Autoload and sqlite database path # avoid jean85/pretty-package-versions -Patch0: %{name}-5.4.0-rpm.patch +Patch0: %{name}-5.4.2-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 7.1.3 @@ -77,10 +77,15 @@ BuildRequires: php-fedora-autoloader-devel # "bartlett/php-compatinfo-db": "^2.0", # "doctrine/collections": "^1.4", # "composer/package-versions-deprecated": "^1.8", +# "psr/log": "^1.0", # "ramsey/uuid": "^3.9|^4.0", -# "symfony/serializer": "^4.4|^5.0", # "symfony/config": "^4.4|^5.0", -# "symfony/dependency-injection": "^4.4|^5.0" +# "symfony/console": "^4.4|^5.0", +# "symfony/event-dispatcher": "^4.4|^5.0", +# "symfony/finder": "^4.4|^5.0", +# "symfony/dependency-injection": "^4.4|^5.0", +# "symfony/serializer": "^4.4|^5.0", +# "symfony/stopwatch": "^4.4|^5.0" Requires: php(language) >= 7.1.3 Requires: php-cli Requires: php-json @@ -226,6 +231,9 @@ fi %changelog +* Mon Nov 23 2020 Remi Collet - 5.4.2-1 +- update to 5.4.2 + * Tue Oct 6 2020 Remi Collet - 5.4.1-1 - update to 5.4.1 - switch to phpunit9 diff --git a/sources b/sources index 604e03b..5ad4082 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.4.1-3e79a1a.tar.gz) = 79d6465e4215be0a73201d2c19530ba72b50b14f6b0a556174d92da5c4090eac6d64d68f8c2841d4c09b6338fb27af10f81a705d4bfc2eba774c5eafb13069ad +SHA512 (php-bartlett-PHP-CompatInfo-5.4.2-456308c.tar.gz) = d44aa858c4a7d5ac8581056ea772f745e7a3c395c575f2d77a4130412935645cb06dd7135e196ceec1ca249bcd0c546e55f3126a75d83160ee2cb2cf094303a1 From ff4dbf8c1472ce4087c9844898efb7f5d25ac1f5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 06:24:04 +0000 Subject: [PATCH 13/64] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 5862466..485ed15 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -28,7 +28,7 @@ Name: php-bartlett-PHP-CompatInfo Version: 5.4.2 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -231,6 +231,9 @@ fi %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 5.4.2-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Mon Nov 23 2020 Remi Collet - 5.4.2-1 - update to 5.4.2 From 4ea39816fe14be29778231ca0b417acfd3b3e4be Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 15 Feb 2021 11:57:25 +0100 Subject: [PATCH 14/64] v5.4.3 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 890f63b..69ddb24 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ clog /php-bartlett-PHP-CompatInfo-5.3.0-5b58fb5.tar.gz /php-bartlett-PHP-CompatInfo-5.4.1-3e79a1a.tar.gz /php-bartlett-PHP-CompatInfo-5.4.2-456308c.tar.gz +/php-bartlett-PHP-CompatInfo-5.4.3-e4f9846.tar.gz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 485ed15..aad6aa3 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 456308cc09f2c78903195bbbf09886314950a083 +%global gh_commit e4f9846a409a53b4b095c39386c9c9dbbc903519 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -26,9 +26,9 @@ %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.4.2 +Version: 5.4.3 %global specrel 1 -Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}.1 +Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -231,6 +231,9 @@ fi %changelog +* Mon Feb 15 2021 Remi Collet - 5.4.3-1 +- update to 5.4.3 + * Wed Jan 27 2021 Fedora Release Engineering - 5.4.2-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 5ad4082..166e7f3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.4.2-456308c.tar.gz) = d44aa858c4a7d5ac8581056ea772f745e7a3c395c575f2d77a4130412935645cb06dd7135e196ceec1ca249bcd0c546e55f3126a75d83160ee2cb2cf094303a1 +SHA512 (php-bartlett-PHP-CompatInfo-5.4.3-e4f9846.tar.gz) = 8092c6dd1e18e73dfae52438275943c71e798b7793fb78ac7c0231d1744f24d7c609c6c1c4ae97067dc47a540f36b44ca88016657601489d012d70560cadbeb1 From aa87996bbcbd69b492f8eabb39bf7e90871e628b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 22 Feb 2021 11:42:34 +0100 Subject: [PATCH 15/64] v5.4.4 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 69ddb24..35cd823 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ clog /php-bartlett-PHP-CompatInfo-5.4.1-3e79a1a.tar.gz /php-bartlett-PHP-CompatInfo-5.4.2-456308c.tar.gz /php-bartlett-PHP-CompatInfo-5.4.3-e4f9846.tar.gz +/php-bartlett-PHP-CompatInfo-5.4.4-85f8a27.tar.gz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index aad6aa3..e32dd00 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # -# Copyright (c) 2011-2020 Remi Collet +# Copyright (c) 2011-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit e4f9846a409a53b4b095c39386c9c9dbbc903519 +%global gh_commit 85f8a27a74c88e38895c65f6e5250030a97a9b4b %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -26,7 +26,7 @@ %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.4.3 +Version: 5.4.4 %global specrel 1 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run @@ -231,6 +231,9 @@ fi %changelog +* Mon Feb 22 2021 Remi Collet - 5.4.4-1 +- update to 5.4.4 (no change) + * Mon Feb 15 2021 Remi Collet - 5.4.3-1 - update to 5.4.3 diff --git a/sources b/sources index 166e7f3..c9df186 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.4.3-e4f9846.tar.gz) = 8092c6dd1e18e73dfae52438275943c71e798b7793fb78ac7c0231d1744f24d7c609c6c1c4ae97067dc47a540f36b44ca88016657601489d012d70560cadbeb1 +SHA512 (php-bartlett-PHP-CompatInfo-5.4.4-85f8a27.tar.gz) = 53297baef08b35902989cea689b254dfd4a5e94b52cc36ff09ceeaf2088c119ee29f7b9ea92148daea9bdd6d1b63a6774e8f85be525482640d4ae7f01d636dc4 From a950b4e8ad6a2fd7601df42180ae5ef4fc076acd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 Mar 2021 07:46:52 +0100 Subject: [PATCH 16/64] update to 5.5.1 raise dependency on PHP 7.2 raise dependency on bartlett/php-compatinfo-db 3.4 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch | 73 -------------- php-bartlett-PHP-CompatInfo-5.5-rpm.patch | 105 ++++++++++++++++++++ php-bartlett-PHP-CompatInfo.spec | 55 +++++----- sources | 2 +- 5 files changed, 135 insertions(+), 101 deletions(-) delete mode 100644 php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch create mode 100644 php-bartlett-PHP-CompatInfo-5.5-rpm.patch diff --git a/.gitignore b/.gitignore index 35cd823..fe85675 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ clog /php-bartlett-PHP-CompatInfo-5.4.2-456308c.tar.gz /php-bartlett-PHP-CompatInfo-5.4.3-e4f9846.tar.gz /php-bartlett-PHP-CompatInfo-5.4.4-85f8a27.tar.gz +/php-bartlett-PHP-CompatInfo-5.5.1-3829490.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch b/php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch deleted file mode 100644 index d77f69b..0000000 --- a/php-bartlett-PHP-CompatInfo-5.4.2-rpm.patch +++ /dev/null @@ -1,73 +0,0 @@ -diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2020-11-23 09:20:15.949928560 +0100 -+++ ./bin/phpcompatinfo 2020-11-23 09:23:44.418075703 +0100 -@@ -8,39 +8,13 @@ if (PHP_SAPI !== 'cli') { - - gc_disable(); // performance boost - --if (\Phar::running()) { -- $possibleAutoloadPaths = [ -- 'phar://phpcompatinfo.phar/vendor/autoload.php' -- ]; --} else { -- $possibleAutoloadPaths = [ -- // local dev repository -- __DIR__ . '/../vendor/autoload.php', -- // dependency -- __DIR__ . '/../../../../vendor/autoload.php', -- ]; --} -- --$isAutoloadFound = false; --foreach ($possibleAutoloadPaths as $possibleAutoloadPath) { -- if (file_exists($possibleAutoloadPath)) { -- require_once $possibleAutoloadPath; -- $isAutoloadFound = true; -- break; -- } --} -- --if ($isAutoloadFound === false) { -- throw new RuntimeException(sprintf( -- 'Unable to find "vendor/autoload.php" in "%s" paths.', -- implode('", "', $possibleAutoloadPaths) -- )); --} -+$vendorDir = '/usr/share/php/Bartlett/CompatInfo'; -+require_once $vendorDir . '/autoload.php'; - - use Bartlett\CompatInfo\Console\ApplicationInterface; - - /** @var \Symfony\Component\DependencyInjection\ContainerBuilder $container */ --$container = require dirname(__DIR__) . '/config/container.php'; -+$container = require $vendorDir . '/config/container.php'; - - $app = $container->get(ApplicationInterface::class); - $app->setContainer($container); -diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php ---- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2020-11-20 13:00:53.000000000 +0100 -+++ ./src/Bartlett/CompatInfo/Console/Application.php 2020-11-23 09:21:14.242121292 +0100 -@@ -30,8 +30,6 @@ use Symfony\Component\DependencyInjectio - use Symfony\Component\EventDispatcher\EventDispatcher; - use Symfony\Component\EventDispatcher\EventDispatcherInterface ; - --use PackageVersions\Versions; -- - use Phar; - use function substr_count; - -@@ -78,14 +76,6 @@ class Application extends BaseApplicatio - $version = self::VERSION; - } elseif (substr_count($version, '.') === 2) { - // release is in X.Y.Z format -- } else { -- // composer or git strategy -- $version = Versions::getVersion('bartlett/php-compatinfo'); -- list($ver, ) = explode('@', $version); -- -- if (strpos($ver, 'dev') === false) { -- $version = $ver; -- } - } - parent::__construct(self::NAME, $version); - diff --git a/php-bartlett-PHP-CompatInfo-5.5-rpm.patch b/php-bartlett-PHP-CompatInfo-5.5-rpm.patch new file mode 100644 index 0000000..f84d1bb --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-5.5-rpm.patch @@ -0,0 +1,105 @@ +diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo +--- ./bin/phpcompatinfo.rpm 2021-03-15 08:24:33.926051485 +0100 ++++ ./bin/phpcompatinfo 2021-03-15 08:27:12.457422097 +0100 +@@ -8,12 +8,12 @@ if (PHP_SAPI !== 'cli') { + + gc_disable(); // performance boost + +-require_once dirname(__DIR__) . '/config/bootstrap.php'; ++require_once '/usr/share/php/Bartlett/CompatInfo/config/bootstrap.php'; + + use Bartlett\CompatInfo\Console\ApplicationInterface; + + /** @var \Symfony\Component\DependencyInjection\ContainerBuilder $container */ +-$container = require dirname(__DIR__) . '/config/container.php'; ++$container = require '/usr/share/php/Bartlett/CompatInfo/config/container.php'; + + $app = $container->get(ApplicationInterface::class); + $app->setContainer($container); +diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php +--- ./config/bootstrap.php.rpm 2021-03-15 08:25:20.386867027 +0100 ++++ ./config/bootstrap.php 2021-03-15 08:26:06.587683611 +0100 +@@ -6,6 +6,8 @@ if (\Phar::running()) { + ]; + } else { + $possibleAutoloadPaths = [ ++ // RPM ++ __DIR__ . '/../autoload.php', + // local dev repository + __DIR__ . '/../vendor/autoload.php', + // dependency +diff -up ./config/set/default.php.rpm ./config/set/default.php +--- ./config/set/default.php.rpm 2021-03-13 11:18:56.000000000 +0100 ++++ ./config/set/default.php 2021-03-15 08:24:33.926051485 +0100 +@@ -33,7 +33,7 @@ use function Symfony\Component\Dependenc + */ + return static function (ContainerConfigurator $containerConfigurator): void + { +- $containerConfigurator->import(dirname(__DIR__,2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php'); ++ $containerConfigurator->import('/usr/share/php/Bartlett/CompatInfoDb/config/set/default.php'); + $containerConfigurator->import(__DIR__ . '/common.php'); + + $parameters = $containerConfigurator->parameters(); +diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php +--- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2021-03-13 11:18:56.000000000 +0100 ++++ ./src/Bartlett/CompatInfo/Console/Application.php 2021-03-15 08:24:33.926051485 +0100 +@@ -30,8 +30,6 @@ use Symfony\Component\DependencyInjectio + use Symfony\Component\EventDispatcher\EventDispatcher; + use Symfony\Component\EventDispatcher\EventDispatcherInterface ; + +-use PackageVersions\Versions; +- + use Phar; + use function substr_count; + +@@ -78,14 +76,6 @@ class Application extends BaseApplicatio + $version = self::VERSION; + } elseif (substr_count($version, '.') === 2) { + // release is in X.Y.Z format +- } else { +- // composer or git strategy +- $version = Versions::getVersion('bartlett/php-compatinfo'); +- list($ver, ) = explode('@', $version); +- +- if (strpos($ver, 'dev') === false) { +- $version = $ver; +- } + } + parent::__construct(self::NAME, $version); + +diff -up ./tests/Reference/ParameterTest.php.rpm ./tests/Reference/ParameterTest.php +--- ./tests/Reference/ParameterTest.php.rpm 2021-03-15 08:33:56.677816772 +0100 ++++ ./tests/Reference/ParameterTest.php 2021-03-15 08:35:06.718538322 +0100 +@@ -42,7 +42,7 @@ final class ParameterTest extends SniffT + */ + public function functionProvider() + { +- $container = require __DIR__ . '/../../config/container.php'; ++ $container = require '@BUILDPATH@/config/container.php'; + $repository = $container->get(FunctionRepository::class); + $functions = []; + foreach ($repository->getAll() as $function) { +diff -up ./tests/Sniffs/SniffTestCase.php.rpm ./tests/Sniffs/SniffTestCase.php +--- ./tests/Sniffs/SniffTestCase.php.rpm 2021-03-15 08:33:50.789840180 +0100 ++++ ./tests/Sniffs/SniffTestCase.php 2021-03-15 08:34:48.304611521 +0100 +@@ -21,7 +21,7 @@ abstract class SniffTestCase extends Tes + + self::$fixtures .= 'sniffs' . DIRECTORY_SEPARATOR; + +- $container = require __DIR__ . '/../../config/container.php'; ++ $container = require '@BUILDPATH@/config/container.php'; + self::$sniffs = $container->get(SniffCollection::class); + } + } +diff -up ./tests/TestCase.php.rpm ./tests/TestCase.php +--- ./tests/TestCase.php.rpm 2021-03-15 08:33:45.726860307 +0100 ++++ ./tests/TestCase.php 2021-03-15 08:34:30.666681640 +0100 +@@ -38,7 +38,7 @@ abstract class TestCase extends \PHPUnit + // request for a Bartlett\CompatInfo\Api\Analyser + self::$api = $client->api('analyser'); + +- $container = require __DIR__ . '/../config/container.php'; ++ $container = require '@BUILDPATH@/config/container.php'; + self::$references = $container->get(ReferenceCollectionInterface::class); + } + diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index e32dd00..81e2956 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 85f8a27a74c88e38895c65f6e5250030a97a9b4b +%global gh_commit 38294902ae898ae4d29b300a516474330670f33f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -19,16 +19,12 @@ #global prever RC2 %bcond_without tests -%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -%global sym_prefix php-symfony3 -%else -%global sym_prefix php-symfony -%endif +%global upstream_version 5.5.1 +#global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo -Version: 5.4.4 -%global specrel 1 -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: Find out version and the extensions required for a piece of code to run License: BSD @@ -38,17 +34,17 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit # Script for fedora-review Source1: fedora-review-check -# Autoload and sqlite database path +# Autoload and config path # avoid jean85/pretty-package-versions -Patch0: %{name}-5.4.2-rpm.patch +Patch0: %{name}-5.5-rpm.patch BuildArch: noarch -BuildRequires: php(language) >= 7.1.3 +BuildRequires: php(language) >= 7.2 %if %{with tests} # to run test suite BuildRequires: php-pdo_sqlite BuildRequires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) -BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 2.0 with php-composer(bartlett/php-compatinfo-db) < 3) +BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 3.4 with php-composer(bartlett/php-compatinfo-db) < 4) BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) BuildRequires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) BuildRequires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6) @@ -59,14 +55,14 @@ BuildRequires: (php-composer(symfony/finder) >= 4.4 with php-comp BuildRequires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6) BuildRequires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6) BuildRequires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) -%global phpunit %{_bindir}/phpunit8 +%global phpunit %{_bindir}/phpunit9 BuildRequires: %{phpunit} # For our patch / autoloader BuildRequires: php-fedora-autoloader-devel %endif # From composer.json, "require" -# "php": "^7.1.3|^8.0", +# "php": "^7.2|^8.0", # "ext-libxml": "*", # "ext-pcre": "*", # "ext-spl": "*", @@ -74,7 +70,7 @@ BuildRequires: php-fedora-autoloader-devel # "ext-pdo": "*", # "ext-pdo_sqlite": "*", # "bartlett/php-reflect": "^4.4", -# "bartlett/php-compatinfo-db": "^2.0", +# "bartlett/php-compatinfo-db": "^3.4", # "doctrine/collections": "^1.4", # "composer/package-versions-deprecated": "^1.8", # "psr/log": "^1.0", @@ -86,7 +82,7 @@ BuildRequires: php-fedora-autoloader-devel # "symfony/dependency-injection": "^4.4|^5.0", # "symfony/serializer": "^4.4|^5.0", # "symfony/stopwatch": "^4.4|^5.0" -Requires: php(language) >= 7.1.3 +Requires: php(language) >= 7.2 Requires: php-cli Requires: php-json Requires: php-libxml @@ -95,7 +91,7 @@ Requires: php-pdo Requires: php-pdo_sqlite Requires: php-spl Requires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) -Requires: (php-composer(bartlett/php-compatinfo-db) >= 2.0 with php-composer(bartlett/php-compatinfo-db) < 3) +Requires: (php-composer(bartlett/php-compatinfo-db) >= 3.4 with php-composer(bartlett/php-compatinfo-db) < 4) Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) Requires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) Requires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6) @@ -105,7 +101,7 @@ Requires: (php-composer(symfony/event-dispatcher) >= 4.4 with php-comp Requires: (php-composer(symfony/finder) >= 4.4 with php-composer(symfony/finder) < 6) Requires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6) Requires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6) -Requires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) +Requires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) # Required by autoloader Requires: php-composer(fedora/autoloader) @@ -170,8 +166,6 @@ find src -name \*rpm -delete -print # fix path in configuration sed -e 's:src/Bartlett/CompatInfo/::' -i config/set/*php mv config src/Bartlett/CompatInfo/config -# for tests -ln -s src/Bartlett/CompatInfo/config config # Check package version FILE=src/Bartlett/CompatInfo/Console/Application.php @@ -195,19 +189,21 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name} %if %{with tests} %check -mkdir vendor -cat << 'EOF' | tee vendor/autoload.php +mkdir config +cat << 'EOF' | tee config/bootstrap.php - 5.5.1-1 +- update to 5.5.1 +- raise dependency on PHP 7.2 +- raise dependency on bartlett/php-compatinfo-db 3.4 + * Mon Feb 22 2021 Remi Collet - 5.4.4-1 - update to 5.4.4 (no change) diff --git a/sources b/sources index c9df186..cce85f2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.4.4-85f8a27.tar.gz) = 53297baef08b35902989cea689b254dfd4a5e94b52cc36ff09ceeaf2088c119ee29f7b9ea92148daea9bdd6d1b63a6774e8f85be525482640d4ae7f01d636dc4 +SHA512 (php-bartlett-PHP-CompatInfo-5.5.1-3829490.tar.gz) = e9e06c73068388acaf8f2f2f5c2e62fae5b07b01c051e31dcc11be77cded72953577e8f4d6d2c540db99454a14911943dc4a23aae1d9720b9996b38774618785 From 6b4ad234dcdaa688ed212bfa5bb049806a7aad49 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 13 Apr 2021 10:49:56 +0200 Subject: [PATCH 17/64] v5.5.2 --- .gitignore | 1 + ...hp-bartlett-PHP-CompatInfo-5.5.2-rpm.patch | 48 +++++++------------ php-bartlett-PHP-CompatInfo.spec | 10 ++-- sources | 2 +- 4 files changed, 27 insertions(+), 34 deletions(-) rename php-bartlett-PHP-CompatInfo-5.5-rpm.patch => php-bartlett-PHP-CompatInfo-5.5.2-rpm.patch (66%) diff --git a/.gitignore b/.gitignore index fe85675..481e978 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ clog /php-bartlett-PHP-CompatInfo-5.4.3-e4f9846.tar.gz /php-bartlett-PHP-CompatInfo-5.4.4-85f8a27.tar.gz /php-bartlett-PHP-CompatInfo-5.5.1-3829490.tar.gz +/php-bartlett-PHP-CompatInfo-5.5.2-547803e.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.5-rpm.patch b/php-bartlett-PHP-CompatInfo-5.5.2-rpm.patch similarity index 66% rename from php-bartlett-PHP-CompatInfo-5.5-rpm.patch rename to php-bartlett-PHP-CompatInfo-5.5.2-rpm.patch index f84d1bb..0ada6f5 100644 --- a/php-bartlett-PHP-CompatInfo-5.5-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-5.5.2-rpm.patch @@ -1,6 +1,6 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2021-03-15 08:24:33.926051485 +0100 -+++ ./bin/phpcompatinfo 2021-03-15 08:27:12.457422097 +0100 +--- ./bin/phpcompatinfo.rpm 2021-04-12 09:54:09.000000000 +0200 ++++ ./bin/phpcompatinfo 2021-04-13 10:41:27.780928446 +0200 @@ -8,12 +8,12 @@ if (PHP_SAPI !== 'cli') { gc_disable(); // performance boost @@ -17,8 +17,8 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo $app = $container->get(ApplicationInterface::class); $app->setContainer($container); diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php ---- ./config/bootstrap.php.rpm 2021-03-15 08:25:20.386867027 +0100 -+++ ./config/bootstrap.php 2021-03-15 08:26:06.587683611 +0100 +--- ./config/bootstrap.php.rpm 2021-04-12 09:54:09.000000000 +0200 ++++ ./config/bootstrap.php 2021-04-13 10:41:27.780928446 +0200 @@ -6,6 +6,8 @@ if (\Phar::running()) { ]; } else { @@ -29,8 +29,8 @@ diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php __DIR__ . '/../vendor/autoload.php', // dependency diff -up ./config/set/default.php.rpm ./config/set/default.php ---- ./config/set/default.php.rpm 2021-03-13 11:18:56.000000000 +0100 -+++ ./config/set/default.php 2021-03-15 08:24:33.926051485 +0100 +--- ./config/set/default.php.rpm 2021-04-12 09:54:09.000000000 +0200 ++++ ./config/set/default.php 2021-04-13 10:41:27.780928446 +0200 @@ -33,7 +33,7 @@ use function Symfony\Component\Dependenc */ return static function (ContainerConfigurator $containerConfigurator): void @@ -41,8 +41,8 @@ diff -up ./config/set/default.php.rpm ./config/set/default.php $parameters = $containerConfigurator->parameters(); diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php ---- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2021-03-13 11:18:56.000000000 +0100 -+++ ./src/Bartlett/CompatInfo/Console/Application.php 2021-03-15 08:24:33.926051485 +0100 +--- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2021-04-12 09:54:09.000000000 +0200 ++++ ./src/Bartlett/CompatInfo/Console/Application.php 2021-04-13 10:41:27.780928446 +0200 @@ -30,8 +30,6 @@ use Symfony\Component\DependencyInjectio use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface ; @@ -68,8 +68,8 @@ diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/Co parent::__construct(self::NAME, $version); diff -up ./tests/Reference/ParameterTest.php.rpm ./tests/Reference/ParameterTest.php ---- ./tests/Reference/ParameterTest.php.rpm 2021-03-15 08:33:56.677816772 +0100 -+++ ./tests/Reference/ParameterTest.php 2021-03-15 08:35:06.718538322 +0100 +--- ./tests/Reference/ParameterTest.php.rpm 2021-04-12 09:54:09.000000000 +0200 ++++ ./tests/Reference/ParameterTest.php 2021-04-13 10:41:27.780928446 +0200 @@ -42,7 +42,7 @@ final class ParameterTest extends SniffT */ public function functionProvider() @@ -79,27 +79,15 @@ diff -up ./tests/Reference/ParameterTest.php.rpm ./tests/Reference/ParameterTest $repository = $container->get(FunctionRepository::class); $functions = []; foreach ($repository->getAll() as $function) { -diff -up ./tests/Sniffs/SniffTestCase.php.rpm ./tests/Sniffs/SniffTestCase.php ---- ./tests/Sniffs/SniffTestCase.php.rpm 2021-03-15 08:33:50.789840180 +0100 -+++ ./tests/Sniffs/SniffTestCase.php 2021-03-15 08:34:48.304611521 +0100 -@@ -21,7 +21,7 @@ abstract class SniffTestCase extends Tes - - self::$fixtures .= 'sniffs' . DIRECTORY_SEPARATOR; - -- $container = require __DIR__ . '/../../config/container.php'; -+ $container = require '@BUILDPATH@/config/container.php'; - self::$sniffs = $container->get(SniffCollection::class); - } - } diff -up ./tests/TestCase.php.rpm ./tests/TestCase.php ---- ./tests/TestCase.php.rpm 2021-03-15 08:33:45.726860307 +0100 -+++ ./tests/TestCase.php 2021-03-15 08:34:30.666681640 +0100 -@@ -38,7 +38,7 @@ abstract class TestCase extends \PHPUnit - // request for a Bartlett\CompatInfo\Api\Analyser - self::$api = $client->api('analyser'); - +--- ./tests/TestCase.php.rpm 2021-04-13 10:41:27.780928446 +0200 ++++ ./tests/TestCase.php 2021-04-13 10:43:04.778512016 +0200 +@@ -46,7 +46,7 @@ abstract class TestCase extends \PHPUnit + */ + protected function executeAnalysis(string $dataSource): array + { - $container = require __DIR__ . '/../config/container.php'; + $container = require '@BUILDPATH@/config/container.php'; - self::$references = $container->get(ReferenceCollectionInterface::class); - } + $references = $container->get(ReferenceCollectionInterface::class); + $sniffs = $container->get(SniffCollection::class); diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 81e2956..e029aef 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 38294902ae898ae4d29b300a516474330670f33f +%global gh_commit 547803ee1bd9e160bbb99f58273177b497790636 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -19,7 +19,7 @@ #global prever RC2 %bcond_without tests -%global upstream_version 5.5.1 +%global upstream_version 5.5.2 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -36,7 +36,7 @@ Source1: fedora-review-check # Autoload and config path # avoid jean85/pretty-package-versions -Patch0: %{name}-5.5-rpm.patch +Patch0: %{name}-5.5.2-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 7.2 @@ -169,6 +169,7 @@ mv config src/Bartlett/CompatInfo/config # Check package version FILE=src/Bartlett/CompatInfo/Console/Application.php +sed -e 's/5.5.1/%{version}/' -i $FILE grep " VERSION" $FILE grep %{version} $FILE @@ -227,6 +228,9 @@ fi %changelog +* Tue Apr 13 2021 Remi Collet - 5.5.2-1 +- update to 5.5.2 + * Mon Mar 15 2021 Remi Collet - 5.5.1-1 - update to 5.5.1 - raise dependency on PHP 7.2 diff --git a/sources b/sources index cce85f2..22ac5bb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.5.1-3829490.tar.gz) = e9e06c73068388acaf8f2f2f5c2e62fae5b07b01c051e31dcc11be77cded72953577e8f4d6d2c540db99454a14911943dc4a23aae1d9720b9996b38774618785 +SHA512 (php-bartlett-PHP-CompatInfo-5.5.2-547803e.tar.gz) = 9962e17cbeb8334f985ad586aef000b15d98bed72fdcd5a1598cc7ebada3aea935477ba13fca7b0bc5974b5a3cd43231f25fbc4b3ffb213dbe5101a22cf9926b From f424718294632dab5d7f8cf83d6a0bf8b39d888c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 3 May 2021 09:20:07 +0200 Subject: [PATCH 18/64] v5.5.3 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 481e978..4d8593e 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ clog /php-bartlett-PHP-CompatInfo-5.4.4-85f8a27.tar.gz /php-bartlett-PHP-CompatInfo-5.5.1-3829490.tar.gz /php-bartlett-PHP-CompatInfo-5.5.2-547803e.tar.gz +/php-bartlett-PHP-CompatInfo-5.5.3-7353738.tar.gz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index e029aef..2a29053 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 547803ee1bd9e160bbb99f58273177b497790636 +%global gh_commit 7353738b51e38b0763e2bf154d05c55ad2fdc105 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -19,7 +19,7 @@ #global prever RC2 %bcond_without tests -%global upstream_version 5.5.2 +%global upstream_version 5.5.3 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -228,6 +228,9 @@ fi %changelog +* Mon May 3 2021 Remi Collet - 5.5.3-1 +- update to 5.5.3 + * Tue Apr 13 2021 Remi Collet - 5.5.2-1 - update to 5.5.2 diff --git a/sources b/sources index 22ac5bb..054f865 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.5.2-547803e.tar.gz) = 9962e17cbeb8334f985ad586aef000b15d98bed72fdcd5a1598cc7ebada3aea935477ba13fca7b0bc5974b5a3cd43231f25fbc4b3ffb213dbe5101a22cf9926b +SHA512 (php-bartlett-PHP-CompatInfo-5.5.3-7353738.tar.gz) = ae0d12353505763a55594d98a9856a277f4badd5f654a031c156f3da45f81de7b05920d076f7d3ebcd396050514d57a8ed3655ebe79a54558af81e6c28a91973 From fe4fe9aaf02f451bc9129bc4817b5ba45fbd9304 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 01:35:59 +0000 Subject: [PATCH 19/64] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 2a29053..3a09fe7 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -24,7 +24,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -228,6 +228,9 @@ fi %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 5.5.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Mon May 3 2021 Remi Collet - 5.5.3-1 - update to 5.5.3 From 177421242b037925bf7e7e863b815e769433fcd9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 13 Dec 2021 09:31:25 +0100 Subject: [PATCH 20/64] update to 5.5.4 raise dependency on bartlett/php-compatinfo-db 3.6 --- .gitignore | 1 + ...hp-bartlett-PHP-CompatInfo-5.5.4-rpm.patch | 32 +++++++++---------- php-bartlett-PHP-CompatInfo.spec | 24 ++++++++------ sources | 2 +- 4 files changed, 32 insertions(+), 27 deletions(-) rename php-bartlett-PHP-CompatInfo-5.5.2-rpm.patch => php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch (75%) diff --git a/.gitignore b/.gitignore index 4d8593e..b0b1258 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ clog /php-bartlett-PHP-CompatInfo-5.5.1-3829490.tar.gz /php-bartlett-PHP-CompatInfo-5.5.2-547803e.tar.gz /php-bartlett-PHP-CompatInfo-5.5.3-7353738.tar.gz +/php-bartlett-PHP-CompatInfo-5.5.4-e3b0129.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.5.2-rpm.patch b/php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch similarity index 75% rename from php-bartlett-PHP-CompatInfo-5.5.2-rpm.patch rename to php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch index 0ada6f5..80e3196 100644 --- a/php-bartlett-PHP-CompatInfo-5.5.2-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch @@ -1,6 +1,6 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2021-04-12 09:54:09.000000000 +0200 -+++ ./bin/phpcompatinfo 2021-04-13 10:41:27.780928446 +0200 +--- ./bin/phpcompatinfo.rpm 2021-12-10 15:36:22.000000000 +0100 ++++ ./bin/phpcompatinfo 2021-12-10 16:26:30.756115071 +0100 @@ -8,12 +8,12 @@ if (PHP_SAPI !== 'cli') { gc_disable(); // performance boost @@ -17,8 +17,8 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo $app = $container->get(ApplicationInterface::class); $app->setContainer($container); diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php ---- ./config/bootstrap.php.rpm 2021-04-12 09:54:09.000000000 +0200 -+++ ./config/bootstrap.php 2021-04-13 10:41:27.780928446 +0200 +--- ./config/bootstrap.php.rpm 2021-12-10 15:36:22.000000000 +0100 ++++ ./config/bootstrap.php 2021-12-10 16:26:30.757115067 +0100 @@ -6,6 +6,8 @@ if (\Phar::running()) { ]; } else { @@ -29,20 +29,20 @@ diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php __DIR__ . '/../vendor/autoload.php', // dependency diff -up ./config/set/default.php.rpm ./config/set/default.php ---- ./config/set/default.php.rpm 2021-04-12 09:54:09.000000000 +0200 -+++ ./config/set/default.php 2021-04-13 10:41:27.780928446 +0200 -@@ -33,7 +33,7 @@ use function Symfony\Component\Dependenc +--- ./config/set/default.php.rpm 2021-12-10 16:26:30.757115067 +0100 ++++ ./config/set/default.php 2021-12-10 16:28:22.196710654 +0100 +@@ -32,7 +32,7 @@ use function Symfony\Component\Dependenc + * @return void */ - return static function (ContainerConfigurator $containerConfigurator): void - { -- $containerConfigurator->import(dirname(__DIR__,2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php'); + return static function (ContainerConfigurator $containerConfigurator): void { +- $containerConfigurator->import(dirname(__DIR__, 2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php'); + $containerConfigurator->import('/usr/share/php/Bartlett/CompatInfoDb/config/set/default.php'); $containerConfigurator->import(__DIR__ . '/common.php'); $parameters = $containerConfigurator->parameters(); diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php ---- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2021-04-12 09:54:09.000000000 +0200 -+++ ./src/Bartlett/CompatInfo/Console/Application.php 2021-04-13 10:41:27.780928446 +0200 +--- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2021-12-10 15:36:22.000000000 +0100 ++++ ./src/Bartlett/CompatInfo/Console/Application.php 2021-12-10 16:26:30.757115067 +0100 @@ -30,8 +30,6 @@ use Symfony\Component\DependencyInjectio use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface ; @@ -68,8 +68,8 @@ diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/Co parent::__construct(self::NAME, $version); diff -up ./tests/Reference/ParameterTest.php.rpm ./tests/Reference/ParameterTest.php ---- ./tests/Reference/ParameterTest.php.rpm 2021-04-12 09:54:09.000000000 +0200 -+++ ./tests/Reference/ParameterTest.php 2021-04-13 10:41:27.780928446 +0200 +--- ./tests/Reference/ParameterTest.php.rpm 2021-12-10 15:36:22.000000000 +0100 ++++ ./tests/Reference/ParameterTest.php 2021-12-10 16:26:30.757115067 +0100 @@ -42,7 +42,7 @@ final class ParameterTest extends SniffT */ public function functionProvider() @@ -80,8 +80,8 @@ diff -up ./tests/Reference/ParameterTest.php.rpm ./tests/Reference/ParameterTest $functions = []; foreach ($repository->getAll() as $function) { diff -up ./tests/TestCase.php.rpm ./tests/TestCase.php ---- ./tests/TestCase.php.rpm 2021-04-13 10:41:27.780928446 +0200 -+++ ./tests/TestCase.php 2021-04-13 10:43:04.778512016 +0200 +--- ./tests/TestCase.php.rpm 2021-12-10 15:36:22.000000000 +0100 ++++ ./tests/TestCase.php 2021-12-10 16:26:30.757115067 +0100 @@ -46,7 +46,7 @@ abstract class TestCase extends \PHPUnit */ protected function executeAnalysis(string $dataSource): array diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 3a09fe7..1fde510 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,20 +11,20 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 7353738b51e38b0763e2bf154d05c55ad2fdc105 +%global gh_commit e3b01295c0c46c3b751ef4a01dc41ad696815bc6 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville -%global gh_project php-compat-info +%global gh_project php-compatinfo #global prever RC2 %bcond_without tests -%global upstream_version 5.5.3 +%global upstream_version 5.5.4 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist} +Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD @@ -36,7 +36,7 @@ Source1: fedora-review-check # Autoload and config path # avoid jean85/pretty-package-versions -Patch0: %{name}-5.5.2-rpm.patch +Patch0: %{name}-5.5.4-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 7.2 @@ -44,7 +44,7 @@ BuildRequires: php(language) >= 7.2 # to run test suite BuildRequires: php-pdo_sqlite BuildRequires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) -BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 3.4 with php-composer(bartlett/php-compatinfo-db) < 4) +BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 3.6 with php-composer(bartlett/php-compatinfo-db) < 4) BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) BuildRequires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) BuildRequires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6) @@ -70,7 +70,7 @@ BuildRequires: php-fedora-autoloader-devel # "ext-pdo": "*", # "ext-pdo_sqlite": "*", # "bartlett/php-reflect": "^4.4", -# "bartlett/php-compatinfo-db": "^3.4", +# "bartlett/php-compatinfo-db": "^3.6", # "doctrine/collections": "^1.4", # "composer/package-versions-deprecated": "^1.8", # "psr/log": "^1.0", @@ -91,7 +91,7 @@ Requires: php-pdo Requires: php-pdo_sqlite Requires: php-spl Requires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) -Requires: (php-composer(bartlett/php-compatinfo-db) >= 3.4 with php-composer(bartlett/php-compatinfo-db) < 4) +Requires: (php-composer(bartlett/php-compatinfo-db) >= 3.6 with php-composer(bartlett/php-compatinfo-db) < 4) Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) Requires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) Requires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6) @@ -169,7 +169,7 @@ mv config src/Bartlett/CompatInfo/config # Check package version FILE=src/Bartlett/CompatInfo/Console/Application.php -sed -e 's/5.5.1/%{version}/' -i $FILE +#sed -e 's/5.5.1/#{version}/' -i $FILE grep " VERSION" $FILE grep %{version} $FILE @@ -201,7 +201,7 @@ sed -e 's:@BUILDPATH@:%{buildroot}%{_datadir}/php/Bartlett/CompatInfo:' \ -i tests/TestCase.php tests/Sniffs/SniffTestCase.php tests/Reference/ParameterTest.php ret=0 -for cmdarg in "php %{phpunit}" php73 php74 php80; do +for cmdarg in "php %{phpunit}" php74 php80 php81; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit9} --verbose || ret=1 @@ -228,6 +228,10 @@ fi %changelog +* Fri Dec 10 2021 Remi Collet - 5.5.4-1 +- update to 5.5.4 +- raise dependency on bartlett/php-compatinfo-db 3.6 + * Fri Jul 23 2021 Fedora Release Engineering - 5.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 054f865..9c4421a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.5.3-7353738.tar.gz) = ae0d12353505763a55594d98a9856a277f4badd5f654a031c156f3da45f81de7b05920d076f7d3ebcd396050514d57a8ed3655ebe79a54558af81e6c28a91973 +SHA512 (php-bartlett-PHP-CompatInfo-5.5.4-e3b0129.tar.gz) = 5f46a4b4444bae3a9804d022c37f9b664b03f38e54b9412746112a4bee85383673a1134cdc54b1dc8c02edd207697b1a006afee260743b58385adc9d78715412 From 48611e0b170ac78f4526c9fa3a16456fef3e1185 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 13 Dec 2021 15:04:38 +0100 Subject: [PATCH 21/64] update to 6.0.1 raise dependency on PHP 7.4 drop dependency on bartlett/php-reflect add dependency on nikic/php-parser --- .gitignore | 1 + php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch | 93 --------------------- php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch | 86 +++++++++++++++++++ php-bartlett-PHP-CompatInfo.spec | 49 ++++++----- sources | 2 +- 5 files changed, 115 insertions(+), 116 deletions(-) delete mode 100644 php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch create mode 100644 php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch diff --git a/.gitignore b/.gitignore index b0b1258..b990b54 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ clog /php-bartlett-PHP-CompatInfo-5.5.2-547803e.tar.gz /php-bartlett-PHP-CompatInfo-5.5.3-7353738.tar.gz /php-bartlett-PHP-CompatInfo-5.5.4-e3b0129.tar.gz +/php-bartlett-PHP-CompatInfo-6.0.1-5978aea.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch b/php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch deleted file mode 100644 index 80e3196..0000000 --- a/php-bartlett-PHP-CompatInfo-5.5.4-rpm.patch +++ /dev/null @@ -1,93 +0,0 @@ -diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2021-12-10 15:36:22.000000000 +0100 -+++ ./bin/phpcompatinfo 2021-12-10 16:26:30.756115071 +0100 -@@ -8,12 +8,12 @@ if (PHP_SAPI !== 'cli') { - - gc_disable(); // performance boost - --require_once dirname(__DIR__) . '/config/bootstrap.php'; -+require_once '/usr/share/php/Bartlett/CompatInfo/config/bootstrap.php'; - - use Bartlett\CompatInfo\Console\ApplicationInterface; - - /** @var \Symfony\Component\DependencyInjection\ContainerBuilder $container */ --$container = require dirname(__DIR__) . '/config/container.php'; -+$container = require '/usr/share/php/Bartlett/CompatInfo/config/container.php'; - - $app = $container->get(ApplicationInterface::class); - $app->setContainer($container); -diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php ---- ./config/bootstrap.php.rpm 2021-12-10 15:36:22.000000000 +0100 -+++ ./config/bootstrap.php 2021-12-10 16:26:30.757115067 +0100 -@@ -6,6 +6,8 @@ if (\Phar::running()) { - ]; - } else { - $possibleAutoloadPaths = [ -+ // RPM -+ __DIR__ . '/../autoload.php', - // local dev repository - __DIR__ . '/../vendor/autoload.php', - // dependency -diff -up ./config/set/default.php.rpm ./config/set/default.php ---- ./config/set/default.php.rpm 2021-12-10 16:26:30.757115067 +0100 -+++ ./config/set/default.php 2021-12-10 16:28:22.196710654 +0100 -@@ -32,7 +32,7 @@ use function Symfony\Component\Dependenc - * @return void - */ - return static function (ContainerConfigurator $containerConfigurator): void { -- $containerConfigurator->import(dirname(__DIR__, 2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php'); -+ $containerConfigurator->import('/usr/share/php/Bartlett/CompatInfoDb/config/set/default.php'); - $containerConfigurator->import(__DIR__ . '/common.php'); - - $parameters = $containerConfigurator->parameters(); -diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php ---- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2021-12-10 15:36:22.000000000 +0100 -+++ ./src/Bartlett/CompatInfo/Console/Application.php 2021-12-10 16:26:30.757115067 +0100 -@@ -30,8 +30,6 @@ use Symfony\Component\DependencyInjectio - use Symfony\Component\EventDispatcher\EventDispatcher; - use Symfony\Component\EventDispatcher\EventDispatcherInterface ; - --use PackageVersions\Versions; -- - use Phar; - use function substr_count; - -@@ -78,14 +76,6 @@ class Application extends BaseApplicatio - $version = self::VERSION; - } elseif (substr_count($version, '.') === 2) { - // release is in X.Y.Z format -- } else { -- // composer or git strategy -- $version = Versions::getVersion('bartlett/php-compatinfo'); -- list($ver, ) = explode('@', $version); -- -- if (strpos($ver, 'dev') === false) { -- $version = $ver; -- } - } - parent::__construct(self::NAME, $version); - -diff -up ./tests/Reference/ParameterTest.php.rpm ./tests/Reference/ParameterTest.php ---- ./tests/Reference/ParameterTest.php.rpm 2021-12-10 15:36:22.000000000 +0100 -+++ ./tests/Reference/ParameterTest.php 2021-12-10 16:26:30.757115067 +0100 -@@ -42,7 +42,7 @@ final class ParameterTest extends SniffT - */ - public function functionProvider() - { -- $container = require __DIR__ . '/../../config/container.php'; -+ $container = require '@BUILDPATH@/config/container.php'; - $repository = $container->get(FunctionRepository::class); - $functions = []; - foreach ($repository->getAll() as $function) { -diff -up ./tests/TestCase.php.rpm ./tests/TestCase.php ---- ./tests/TestCase.php.rpm 2021-12-10 15:36:22.000000000 +0100 -+++ ./tests/TestCase.php 2021-12-10 16:26:30.757115067 +0100 -@@ -46,7 +46,7 @@ abstract class TestCase extends \PHPUnit - */ - protected function executeAnalysis(string $dataSource): array - { -- $container = require __DIR__ . '/../config/container.php'; -+ $container = require '@BUILDPATH@/config/container.php'; - $references = $container->get(ReferenceCollectionInterface::class); - $sniffs = $container->get(SniffCollection::class); - diff --git a/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch b/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch new file mode 100644 index 0000000..e511f63 --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch @@ -0,0 +1,86 @@ +diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo +--- ./bin/phpcompatinfo.rpm 2021-12-13 14:10:12.445234956 +0100 ++++ ./bin/phpcompatinfo 2021-12-13 14:11:01.438091460 +0100 +@@ -8,7 +8,7 @@ if (PHP_SAPI !== 'cli') { + + gc_disable(); // performance boost + +-require_once dirname(__DIR__) . '/config/bootstrap.php'; ++require_once '/usr/share/php/Bartlett/CompatInfo/config/bootstrap.php'; + + use Bartlett\CompatInfo\Infrastructure\Framework\Symfony\DependencyInjection\ContainerFactory; + use Bartlett\CompatInfo\Presentation\Console\ApplicationInterface; +diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php +--- ./config/bootstrap.php.rpm 2021-12-13 13:15:10.000000000 +0100 ++++ ./config/bootstrap.php 2021-12-13 14:10:12.445234956 +0100 +@@ -6,6 +6,8 @@ if (\Phar::running()) { + ]; + } else { + $possibleAutoloadPaths = [ ++ // RPM ++ __DIR__ . '/../autoload.php', + // local dev repository + __DIR__ . '/../vendor/autoload.php', + // dependency +diff -up ./config/set/default.php.rpm ./config/set/default.php +--- ./config/set/default.php.rpm 2021-12-13 14:10:12.445234956 +0100 ++++ ./config/set/default.php 2021-12-13 14:14:41.830445824 +0100 +@@ -32,7 +32,7 @@ use function Symfony\Component\Dependenc + * @return void + */ + return static function (ContainerConfigurator $containerConfigurator): void { +- $containerConfigurator->import(dirname(__DIR__, 2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php'); ++ $containerConfigurator->import('/usr/share/php/Bartlett/CompatInfoDb/config/set/default.php'); + $containerConfigurator->import(__DIR__ . '/common.php'); + $containerConfigurator->import(__DIR__ . '/../packages/messenger.php'); + +@@ -88,7 +88,9 @@ return static function (ContainerConfigu + ->tag('phpcompatinfo.sniff') + ; + +- $services->load('Bartlett\CompatInfo\\', __DIR__ . '/../../src'); ++ $services->load('Bartlett\CompatInfo\\Application\\', __DIR__ . '/../../Application'); ++ $services->load('Bartlett\CompatInfo\\Infrastructure\\', __DIR__ . '/../../Infrastructure'); ++ $services->load('Bartlett\CompatInfo\\Presentation\\', __DIR__ . '/../../Presentation'); + + // @link https://symfony.com/doc/current/service_container/tags.html#reference-tagged-services + $services->set(SniffCollectionInterface::class, SniffCollection::class) +diff -up ./src/Presentation/Console/Application.php.rpm ./src/Presentation/Console/Application.php +--- ./src/Presentation/Console/Application.php.rpm 2021-12-13 14:16:35.187113793 +0100 ++++ ./src/Presentation/Console/Application.php 2021-12-13 14:16:46.822079705 +0100 +@@ -13,8 +13,6 @@ + + namespace Bartlett\CompatInfo\Presentation\Console; + +-use PackageVersions\Versions; +- + use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException; + use Symfony\Component\Config\FileLocator; + use Symfony\Component\Console\Application as SymfonyApplication; +@@ -71,14 +69,6 @@ class Application extends SymfonyApplica + $version = self::VERSION; + } elseif (substr_count($version, '.') === 2) { + // release is in X.Y.Z format +- } else { +- // composer or git strategy +- $version = Versions::getVersion('bartlett/php-compatinfo'); +- list($ver, ) = explode('@', $version); +- +- if (strpos($ver, 'dev') === false) { +- $version = $ver; +- } + } + parent::__construct(self::NAME, $version); + } +diff -up ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php.rpm ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php +--- ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php.rpm 2021-12-13 14:26:26.391380450 +0100 ++++ ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php 2021-12-13 14:26:32.148363508 +0100 +@@ -23,7 +23,7 @@ class ContainerFactory + $containerBuilder = new ContainerBuilder(); + $containerBuilder->addCompilerPass(new MessengerPass()); + +- $loader = new PhpFileLoader($containerBuilder, new FileLocator(dirname(__DIR__, 5) . '/config/set')); ++ $loader = new PhpFileLoader($containerBuilder, new FileLocator(dirname(__DIR__, 4) . '/config/set')); + $loader->load($set . '.php'); + $containerBuilder->compile(); // mandatory or the sniffCollection won't be populated + return $containerBuilder; diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 1fde510..6cfb832 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit e3b01295c0c46c3b751ef4a01dc41ad696815bc6 +%global gh_commit 5978aea8eb937157c72b8217dcaac148e6f5ae7d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -19,7 +19,7 @@ #global prever RC2 %bcond_without tests -%global upstream_version 5.5.4 +%global upstream_version 6.0.1 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -36,14 +36,13 @@ Source1: fedora-review-check # Autoload and config path # avoid jean85/pretty-package-versions -Patch0: %{name}-5.5.4-rpm.patch +Patch0: %{name}-6.0.0-rpm.patch BuildArch: noarch -BuildRequires: php(language) >= 7.2 +BuildRequires: php(language) >= 7.4 %if %{with tests} # to run test suite BuildRequires: php-pdo_sqlite -BuildRequires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 3.6 with php-composer(bartlett/php-compatinfo-db) < 4) BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) BuildRequires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) @@ -55,6 +54,7 @@ BuildRequires: (php-composer(symfony/finder) >= 4.4 with php-comp BuildRequires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6) BuildRequires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6) BuildRequires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) +BuildRequires: (php-composer(nikic/php-parser) >= 4.10 with php-composer(nikic/php-parser) < 5) %global phpunit %{_bindir}/phpunit9 BuildRequires: %{phpunit} # For our patch / autoloader @@ -62,16 +62,15 @@ BuildRequires: php-fedora-autoloader-devel %endif # From composer.json, "require" -# "php": "^7.2|^8.0", +# "php": "^7.4|^8.0", +# "ext-json": "*", # "ext-libxml": "*", # "ext-pcre": "*", # "ext-spl": "*", -# "ext-json": "*", -# "ext-pdo": "*", -# "ext-pdo_sqlite": "*", # "bartlett/php-reflect": "^4.4", # "bartlett/php-compatinfo-db": "^3.6", # "doctrine/collections": "^1.4", +# "nikic/php-parser": "^4.10", # "composer/package-versions-deprecated": "^1.8", # "psr/log": "^1.0", # "ramsey/uuid": "^3.9|^4.0", @@ -82,15 +81,13 @@ BuildRequires: php-fedora-autoloader-devel # "symfony/dependency-injection": "^4.4|^5.0", # "symfony/serializer": "^4.4|^5.0", # "symfony/stopwatch": "^4.4|^5.0" -Requires: php(language) >= 7.2 +Requires: php(language) >= 7.4 Requires: php-cli Requires: php-json Requires: php-libxml Requires: php-pcre -Requires: php-pdo Requires: php-pdo_sqlite Requires: php-spl -Requires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5) Requires: (php-composer(bartlett/php-compatinfo-db) >= 3.6 with php-composer(bartlett/php-compatinfo-db) < 4) Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) Requires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) @@ -102,6 +99,7 @@ Requires: (php-composer(symfony/finder) >= 4.4 with php-comp Requires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6) Requires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6) Requires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) +Requires: (php-composer(nikic/php-parser) >= 4.10 with php-composer(nikic/php-parser) < 5) # Required by autoloader Requires: php-composer(fedora/autoloader) @@ -125,12 +123,12 @@ Documentation: http://php5.laurent-laville.org/compatinfo/manual/current/en/ phpab \ --template fedora \ - --output src/Bartlett/CompatInfo/autoload.php \ - src/Bartlett/CompatInfo -cat << 'EOF' | tee -a src/Bartlett/CompatInfo/autoload.php + --output src/autoload.php \ + src +cat << 'EOF' | tee -a src/autoload.php \Fedora\Autoloader\Dependencies::required([ - '%{_datadir}/php/Bartlett/Reflect/autoload.php', + '%{_datadir}/php/PhpParser4/autoload.php', '%{_datadir}/php/Bartlett/CompatInfoDb/autoload.php', '%{_datadir}/php/Psr/Log/autoload.php', '%{_datadir}/php/Ramsey/Uuid/autoload.php', @@ -157,6 +155,7 @@ cat << 'EOF' | tee -a src/Bartlett/CompatInfo/autoload.php '%{_datadir}/php/Symfony4/Component/Stopwatch/autoload.php', ], '%{_datadir}/php/Doctrine/Common/Collections/autoload.php', + __DIR__ . '/Infrastructure/Framework/Symfony/Polyfill.php', ]); EOF @@ -164,11 +163,11 @@ EOF find src -name \*rpm -delete -print # fix path in configuration -sed -e 's:src/Bartlett/CompatInfo/::' -i config/set/*php -mv config src/Bartlett/CompatInfo/config +sed -e 's:/src::' -i config/set/*php +mv config src/config # Check package version -FILE=src/Bartlett/CompatInfo/Console/Application.php +FILE=src/Presentation/Console/ApplicationInterface.php #sed -e 's/5.5.1/#{version}/' -i $FILE grep " VERSION" $FILE grep %{version} $FILE @@ -179,8 +178,8 @@ grep %{version} $FILE %install -mkdir -p %{buildroot}%{_datadir}/php -cp -pr src/Bartlett %{buildroot}%{_datadir}/php/Bartlett +mkdir -p %{buildroot}%{_datadir}/php/Bartlett +cp -pr src %{buildroot}%{_datadir}/php/Bartlett/CompatInfo install -D -p -m 755 bin/phpcompatinfo %{buildroot}%{_bindir}/phpcompatinfo install -D -p -m 644 bin/phpcompatinfo.1 %{buildroot}%{_mandir}/man1/phpcompatinfo.1 @@ -194,7 +193,7 @@ mkdir config cat << 'EOF' | tee config/bootstrap.php - 6.0.1-1 +- update to 6.0.1 +- raise dependency on PHP 7.4 +- drop dependency on bartlett/php-reflect +- add dependency on nikic/php-parser + * Fri Dec 10 2021 Remi Collet - 5.5.4-1 - update to 5.5.4 - raise dependency on bartlett/php-compatinfo-db 3.6 diff --git a/sources b/sources index 9c4421a..4bd81eb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-5.5.4-e3b0129.tar.gz) = 5f46a4b4444bae3a9804d022c37f9b664b03f38e54b9412746112a4bee85383673a1134cdc54b1dc8c02edd207697b1a006afee260743b58385adc9d78715412 +SHA512 (php-bartlett-PHP-CompatInfo-6.0.1-5978aea.tar.gz) = abc4a036ed0d3775980219343eb84bb6fd2e6761137fb37151ecab92ff9ab260d98c0406b32104ef3247d89a4bef62268d325d35a61d7bf41f7b2a088e9733b7 From c3435b8afbbf1b0a34856a44e499c54d547d7e3b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 3 Jan 2022 12:41:36 +0100 Subject: [PATCH 22/64] update to 6.0.2 open https://github.com/llaville/php-compatinfo/issues/316 regression, compatibility with Symfony 4 --- .gitignore | 1 + ...hp-bartlett-PHP-CompatInfo-6.0.2-rpm.patch | 54 ++++++++++--------- php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch | 36 +++++++++++++ php-bartlett-PHP-CompatInfo.spec | 19 +++++-- sources | 2 +- 5 files changed, 81 insertions(+), 31 deletions(-) rename php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch => php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch (74%) create mode 100644 php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch diff --git a/.gitignore b/.gitignore index b990b54..7155f85 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ clog /php-bartlett-PHP-CompatInfo-5.5.3-7353738.tar.gz /php-bartlett-PHP-CompatInfo-5.5.4-e3b0129.tar.gz /php-bartlett-PHP-CompatInfo-6.0.1-5978aea.tar.gz +/php-bartlett-PHP-CompatInfo-6.0.2-4beab5e.tar.gz diff --git a/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch b/php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch similarity index 74% rename from php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch rename to php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch index e511f63..8ef71b1 100644 --- a/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch @@ -1,6 +1,6 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2021-12-13 14:10:12.445234956 +0100 -+++ ./bin/phpcompatinfo 2021-12-13 14:11:01.438091460 +0100 +--- ./bin/phpcompatinfo.rpm 2021-12-27 16:34:16.000000000 +0100 ++++ ./bin/phpcompatinfo 2022-01-03 07:54:38.530643005 +0100 @@ -8,7 +8,7 @@ if (PHP_SAPI !== 'cli') { gc_disable(); // performance boost @@ -11,8 +11,8 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo use Bartlett\CompatInfo\Infrastructure\Framework\Symfony\DependencyInjection\ContainerFactory; use Bartlett\CompatInfo\Presentation\Console\ApplicationInterface; diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php ---- ./config/bootstrap.php.rpm 2021-12-13 13:15:10.000000000 +0100 -+++ ./config/bootstrap.php 2021-12-13 14:10:12.445234956 +0100 +--- ./config/bootstrap.php.rpm 2021-12-27 16:34:16.000000000 +0100 ++++ ./config/bootstrap.php 2022-01-03 07:54:38.530643005 +0100 @@ -6,6 +6,8 @@ if (\Phar::running()) { ]; } else { @@ -23,18 +23,22 @@ diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php __DIR__ . '/../vendor/autoload.php', // dependency diff -up ./config/set/default.php.rpm ./config/set/default.php ---- ./config/set/default.php.rpm 2021-12-13 14:10:12.445234956 +0100 -+++ ./config/set/default.php 2021-12-13 14:14:41.830445824 +0100 -@@ -32,7 +32,7 @@ use function Symfony\Component\Dependenc +--- ./config/set/default.php.rpm 2021-12-27 16:34:16.000000000 +0100 ++++ ./config/set/default.php 2022-01-03 07:56:00.619428733 +0100 +@@ -32,11 +32,7 @@ use function Symfony\Component\Dependenc * @return void */ return static function (ContainerConfigurator $containerConfigurator): void { -- $containerConfigurator->import(dirname(__DIR__, 2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php'); -+ $containerConfigurator->import('/usr/share/php/Bartlett/CompatInfoDb/config/set/default.php'); +- if (file_exists(dirname(__DIR__, 2) . '/vendor')) { +- $configSet = dirname(__DIR__, 2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php'; +- } else { +- $configSet = dirname(__DIR__, 3) . '/php-compatinfo-db/config/set/default.php'; +- } ++ $configSet = '/usr/share/php/Bartlett/CompatInfoDb/config/set/default.php'; + $containerConfigurator->import($configSet); $containerConfigurator->import(__DIR__ . '/common.php'); $containerConfigurator->import(__DIR__ . '/../packages/messenger.php'); - -@@ -88,7 +88,9 @@ return static function (ContainerConfigu +@@ -93,7 +89,9 @@ return static function (ContainerConfigu ->tag('phpcompatinfo.sniff') ; @@ -45,9 +49,21 @@ diff -up ./config/set/default.php.rpm ./config/set/default.php // @link https://symfony.com/doc/current/service_container/tags.html#reference-tagged-services $services->set(SniffCollectionInterface::class, SniffCollection::class) +diff -up ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php.rpm ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php +--- ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php.rpm 2021-12-27 16:34:16.000000000 +0100 ++++ ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php 2022-01-03 07:54:38.530643005 +0100 +@@ -23,7 +23,7 @@ class ContainerFactory + $containerBuilder = new ContainerBuilder(); + $containerBuilder->addCompilerPass(new MessengerPass()); + +- $loader = new PhpFileLoader($containerBuilder, new FileLocator(dirname(__DIR__, 5) . '/config/set')); ++ $loader = new PhpFileLoader($containerBuilder, new FileLocator(dirname(__DIR__, 4) . '/config/set')); + $loader->load($set . '.php'); + $containerBuilder->compile(); // mandatory or the sniffCollection won't be populated + return $containerBuilder; diff -up ./src/Presentation/Console/Application.php.rpm ./src/Presentation/Console/Application.php ---- ./src/Presentation/Console/Application.php.rpm 2021-12-13 14:16:35.187113793 +0100 -+++ ./src/Presentation/Console/Application.php 2021-12-13 14:16:46.822079705 +0100 +--- ./src/Presentation/Console/Application.php.rpm 2021-12-27 16:34:16.000000000 +0100 ++++ ./src/Presentation/Console/Application.php 2022-01-03 07:54:38.530643005 +0100 @@ -13,8 +13,6 @@ namespace Bartlett\CompatInfo\Presentation\Console; @@ -72,15 +88,3 @@ diff -up ./src/Presentation/Console/Application.php.rpm ./src/Presentation/Conso } parent::__construct(self::NAME, $version); } -diff -up ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php.rpm ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php ---- ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php.rpm 2021-12-13 14:26:26.391380450 +0100 -+++ ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php 2021-12-13 14:26:32.148363508 +0100 -@@ -23,7 +23,7 @@ class ContainerFactory - $containerBuilder = new ContainerBuilder(); - $containerBuilder->addCompilerPass(new MessengerPass()); - -- $loader = new PhpFileLoader($containerBuilder, new FileLocator(dirname(__DIR__, 5) . '/config/set')); -+ $loader = new PhpFileLoader($containerBuilder, new FileLocator(dirname(__DIR__, 4) . '/config/set')); - $loader->load($set . '.php'); - $containerBuilder->compile(); // mandatory or the sniffCollection won't be populated - return $containerBuilder; diff --git a/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch b/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch new file mode 100644 index 0000000..298dc70 --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch @@ -0,0 +1,36 @@ +From b110f1e6cebf3e9e0a946ecb64ba2eebb085589f Mon Sep 17 00:00:00 2001 +From: Laurent Laville +Date: Mon, 13 Dec 2021 12:25:26 +0100 +Subject: [PATCH] fix Symfony 4 compatibility (see issue #310) (#311) + +--- + src/Application/Event/Dispatcher/EventDispatcher.php | 2 +- + src/Presentation/Console/Style.php | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Application/Event/Dispatcher/EventDispatcher.php b/src/Application/Event/Dispatcher/EventDispatcher.php +index 2353e2b8..e6558d03 100644 +--- a/src/Application/Event/Dispatcher/EventDispatcher.php ++++ b/src/Application/Event/Dispatcher/EventDispatcher.php +@@ -75,7 +75,7 @@ public function __construct( + /** + * {@inheritDoc} + */ +- public function dispatch(object $event, string $eventName = null): object ++ public function dispatch($event, string $eventName = null): object + { + $triggered = false; + foreach ($this->extensionLoader->getNames() as $extensionName) { +diff --git a/src/Presentation/Console/Style.php b/src/Presentation/Console/Style.php +index 89bafcd2..14e6c427 100644 +--- a/src/Presentation/Console/Style.php ++++ b/src/Presentation/Console/Style.php +@@ -13,7 +13,7 @@ final class Style extends SymfonyStyle implements StyleInterface + /** + * {@inheritDoc} + */ +- public function createProgressBar(int $max = 0) ++ public function createProgressBar($max = 0) + { + $progressBar = parent::createProgressBar($max); + diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 6cfb832..8328892 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # -# Copyright (c) 2011-2021 Remi Collet +# Copyright (c) 2011-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 5978aea8eb937157c72b8217dcaac148e6f5ae7d +%global gh_commit 4beab5e0a5c27fb81a3ba0b262b3ed85a19500be %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -19,7 +19,7 @@ #global prever RC2 %bcond_without tests -%global upstream_version 6.0.1 +%global upstream_version 6.0.2 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -36,7 +36,9 @@ Source1: fedora-review-check # Autoload and config path # avoid jean85/pretty-package-versions -Patch0: %{name}-6.0.0-rpm.patch +Patch0: %{name}-6.0.2-rpm.patch +# upstream patch for Symfony 4 +Patch1: %{name}-6.0.2-sf4.patch BuildArch: noarch BuildRequires: php(language) >= 7.4 @@ -120,6 +122,7 @@ Documentation: http://php5.laurent-laville.org/compatinfo/manual/current/en/ %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p1 -b .rpm +%patch1 -p1 -b .sf4 phpab \ --template fedora \ @@ -160,7 +163,8 @@ cat << 'EOF' | tee -a src/autoload.php EOF # Cleanup patched files -find src -name \*rpm -delete -print +find src -name \*.rpm -delete -print +find src -name \*.sf4 -delete -print # fix path in configuration sed -e 's:/src::' -i config/set/*php @@ -227,6 +231,11 @@ fi %changelog +* Mon Jan 3 2022 Remi Collet - 6.0.2-1 +- update to 6.0.2 +- open https://github.com/llaville/php-compatinfo/issues/316 + regression, compatibility with Symfony 4 + * Mon Dec 13 2021 Remi Collet - 6.0.1-1 - update to 6.0.1 - raise dependency on PHP 7.4 diff --git a/sources b/sources index 4bd81eb..ffdf529 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.0.1-5978aea.tar.gz) = abc4a036ed0d3775980219343eb84bb6fd2e6761137fb37151ecab92ff9ab260d98c0406b32104ef3247d89a4bef62268d325d35a61d7bf41f7b2a088e9733b7 +SHA512 (php-bartlett-PHP-CompatInfo-6.0.2-4beab5e.tar.gz) = 039ef2635cfc05f841b48c9479752ce586117cadfdd75686cdd513de447bf77b6e28ee7ca0d32e3f9d353d200b17f71bda863609bde585289c8648cb35090ed9 From 245fd80bc6dca911403647d1f33a0341d4231ae9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 5 Jan 2022 15:55:33 +0100 Subject: [PATCH 23/64] update to 6.0.3 use all PHP bundled libraries instead of system ones --- .gitignore | 1 + makesrc.sh | 50 ++++ php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch | 14 + php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch | 90 ------- php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch | 36 --- php-bartlett-PHP-CompatInfo.spec | 269 ++++++++------------ sources | 2 +- 7 files changed, 175 insertions(+), 287 deletions(-) create mode 100755 makesrc.sh create mode 100644 php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch delete mode 100644 php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch delete mode 100644 php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch diff --git a/.gitignore b/.gitignore index 7155f85..3a672bd 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ clog /php-bartlett-PHP-CompatInfo-5.5.4-e3b0129.tar.gz /php-bartlett-PHP-CompatInfo-6.0.1-5978aea.tar.gz /php-bartlett-PHP-CompatInfo-6.0.2-4beab5e.tar.gz +/php-bartlett-PHP-CompatInfo-6.0.3-7f878c7.tgz diff --git a/makesrc.sh b/makesrc.sh new file mode 100755 index 0000000..c0e118c --- /dev/null +++ b/makesrc.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +NAME=$(basename $PWD) +OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec) +PROJECT=$(sed -n '/^%global gh_project/{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, Commit=$COMMIT\n" + +echo "Cloning..." +git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT + +echo "Getting commit..." + pushd $PROJECT-$COMMIT + git checkout $COMMIT || exit 1 + + cp composer.json vendor/composer/installed.json ../ + sed -e 's/"config": {/"config": {"platform": {"php": "7.4.0"},/' -i composer.json + + composer install --no-dev --optimize-autoloader + + mkdir data + cp ${HOME}/.cache/bartlett/compatinfo-db.sqlite data + + php -r ' + $pkgs = file_get_contents("vendor/composer/installed.json"); + $pkgs = json_decode($pkgs, true); + if (!is_array($pkgs) || !isset($pkgs["packages"])) { + echo "cant decode json file\n"; + exit(3); + } + $lic = []; + foreach($pkgs["packages"] as $pkg) { + printf("Provides: bundled(php-%s) = %s\n", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); + $lic = array_merge($lic, $pkg["license"]); + } + sort($lic); + printf("\nLicense: %s\n", implode(" and ", array_unique($lic)));' + popd + +echo "Archiving..." +tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs $PROJECT-$COMMIT + +echo "Cleaning..." +rm -rf $PROJECT-$COMMIT + +echo "Done." + diff --git a/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch b/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch new file mode 100644 index 0000000..92cebab --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch @@ -0,0 +1,14 @@ +diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo +--- ./bin/phpcompatinfo.rpm 2021-12-13 12:09:12.000000000 +0100 ++++ ./bin/phpcompatinfo 2021-12-13 12:12:30.838533965 +0100 +@@ -6,6 +6,10 @@ if (PHP_SAPI !== 'cli') { + return; + } + ++if (!getenv("DATABASE_URL")) { ++ putenv("DATABASE_URL=sqlite:///" . dirname(__DIR__) . "/data/compatinfo-db.sqlite"); ++} ++ + gc_disable(); // performance boost + + require_once dirname(__DIR__) . '/config/bootstrap.php'; diff --git a/php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch b/php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch deleted file mode 100644 index 8ef71b1..0000000 --- a/php-bartlett-PHP-CompatInfo-6.0.2-rpm.patch +++ /dev/null @@ -1,90 +0,0 @@ -diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2021-12-27 16:34:16.000000000 +0100 -+++ ./bin/phpcompatinfo 2022-01-03 07:54:38.530643005 +0100 -@@ -8,7 +8,7 @@ if (PHP_SAPI !== 'cli') { - - gc_disable(); // performance boost - --require_once dirname(__DIR__) . '/config/bootstrap.php'; -+require_once '/usr/share/php/Bartlett/CompatInfo/config/bootstrap.php'; - - use Bartlett\CompatInfo\Infrastructure\Framework\Symfony\DependencyInjection\ContainerFactory; - use Bartlett\CompatInfo\Presentation\Console\ApplicationInterface; -diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php ---- ./config/bootstrap.php.rpm 2021-12-27 16:34:16.000000000 +0100 -+++ ./config/bootstrap.php 2022-01-03 07:54:38.530643005 +0100 -@@ -6,6 +6,8 @@ if (\Phar::running()) { - ]; - } else { - $possibleAutoloadPaths = [ -+ // RPM -+ __DIR__ . '/../autoload.php', - // local dev repository - __DIR__ . '/../vendor/autoload.php', - // dependency -diff -up ./config/set/default.php.rpm ./config/set/default.php ---- ./config/set/default.php.rpm 2021-12-27 16:34:16.000000000 +0100 -+++ ./config/set/default.php 2022-01-03 07:56:00.619428733 +0100 -@@ -32,11 +32,7 @@ use function Symfony\Component\Dependenc - * @return void - */ - return static function (ContainerConfigurator $containerConfigurator): void { -- if (file_exists(dirname(__DIR__, 2) . '/vendor')) { -- $configSet = dirname(__DIR__, 2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php'; -- } else { -- $configSet = dirname(__DIR__, 3) . '/php-compatinfo-db/config/set/default.php'; -- } -+ $configSet = '/usr/share/php/Bartlett/CompatInfoDb/config/set/default.php'; - $containerConfigurator->import($configSet); - $containerConfigurator->import(__DIR__ . '/common.php'); - $containerConfigurator->import(__DIR__ . '/../packages/messenger.php'); -@@ -93,7 +89,9 @@ return static function (ContainerConfigu - ->tag('phpcompatinfo.sniff') - ; - -- $services->load('Bartlett\CompatInfo\\', __DIR__ . '/../../src'); -+ $services->load('Bartlett\CompatInfo\\Application\\', __DIR__ . '/../../Application'); -+ $services->load('Bartlett\CompatInfo\\Infrastructure\\', __DIR__ . '/../../Infrastructure'); -+ $services->load('Bartlett\CompatInfo\\Presentation\\', __DIR__ . '/../../Presentation'); - - // @link https://symfony.com/doc/current/service_container/tags.html#reference-tagged-services - $services->set(SniffCollectionInterface::class, SniffCollection::class) -diff -up ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php.rpm ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php ---- ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php.rpm 2021-12-27 16:34:16.000000000 +0100 -+++ ./src/Infrastructure/Framework/Symfony/DependencyInjection/ContainerFactory.php 2022-01-03 07:54:38.530643005 +0100 -@@ -23,7 +23,7 @@ class ContainerFactory - $containerBuilder = new ContainerBuilder(); - $containerBuilder->addCompilerPass(new MessengerPass()); - -- $loader = new PhpFileLoader($containerBuilder, new FileLocator(dirname(__DIR__, 5) . '/config/set')); -+ $loader = new PhpFileLoader($containerBuilder, new FileLocator(dirname(__DIR__, 4) . '/config/set')); - $loader->load($set . '.php'); - $containerBuilder->compile(); // mandatory or the sniffCollection won't be populated - return $containerBuilder; -diff -up ./src/Presentation/Console/Application.php.rpm ./src/Presentation/Console/Application.php ---- ./src/Presentation/Console/Application.php.rpm 2021-12-27 16:34:16.000000000 +0100 -+++ ./src/Presentation/Console/Application.php 2022-01-03 07:54:38.530643005 +0100 -@@ -13,8 +13,6 @@ - - namespace Bartlett\CompatInfo\Presentation\Console; - --use PackageVersions\Versions; -- - use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException; - use Symfony\Component\Config\FileLocator; - use Symfony\Component\Console\Application as SymfonyApplication; -@@ -71,14 +69,6 @@ class Application extends SymfonyApplica - $version = self::VERSION; - } elseif (substr_count($version, '.') === 2) { - // release is in X.Y.Z format -- } else { -- // composer or git strategy -- $version = Versions::getVersion('bartlett/php-compatinfo'); -- list($ver, ) = explode('@', $version); -- -- if (strpos($ver, 'dev') === false) { -- $version = $ver; -- } - } - parent::__construct(self::NAME, $version); - } diff --git a/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch b/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch deleted file mode 100644 index 298dc70..0000000 --- a/php-bartlett-PHP-CompatInfo-6.0.2-sf4.patch +++ /dev/null @@ -1,36 +0,0 @@ -From b110f1e6cebf3e9e0a946ecb64ba2eebb085589f Mon Sep 17 00:00:00 2001 -From: Laurent Laville -Date: Mon, 13 Dec 2021 12:25:26 +0100 -Subject: [PATCH] fix Symfony 4 compatibility (see issue #310) (#311) - ---- - src/Application/Event/Dispatcher/EventDispatcher.php | 2 +- - src/Presentation/Console/Style.php | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/Application/Event/Dispatcher/EventDispatcher.php b/src/Application/Event/Dispatcher/EventDispatcher.php -index 2353e2b8..e6558d03 100644 ---- a/src/Application/Event/Dispatcher/EventDispatcher.php -+++ b/src/Application/Event/Dispatcher/EventDispatcher.php -@@ -75,7 +75,7 @@ public function __construct( - /** - * {@inheritDoc} - */ -- public function dispatch(object $event, string $eventName = null): object -+ public function dispatch($event, string $eventName = null): object - { - $triggered = false; - foreach ($this->extensionLoader->getNames() as $extensionName) { -diff --git a/src/Presentation/Console/Style.php b/src/Presentation/Console/Style.php -index 89bafcd2..14e6c427 100644 ---- a/src/Presentation/Console/Style.php -+++ b/src/Presentation/Console/Style.php -@@ -13,7 +13,7 @@ final class Style extends SymfonyStyle implements StyleInterface - /** - * {@inheritDoc} - */ -- public function createProgressBar(int $max = 0) -+ public function createProgressBar($max = 0) - { - $progressBar = parent::createProgressBar($max); - diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 8328892..7500ca9 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,15 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 4beab5e0a5c27fb81a3ba0b262b3ed85a19500be +%global gh_commit 7f878c7b534f3c4bb4d2200267678d53324b5d08 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -#global prever RC2 -%bcond_without tests -%global upstream_version 6.0.2 +%global upstream_version 6.0.3 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -27,86 +25,100 @@ Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run -License: BSD -URL: http://php5.laurent-laville.org/compatinfo/ -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}%{?prever}-%{gh_short}.tar.gz - +License: BSD and MIT +URL: https://github.com/llaville/php-compatinfo +Source0: %{name}-%{version}-%{gh_short}.tgz # Script for fedora-review Source1: fedora-review-check +# Generate the archive will all dependencies +Source9: makesrc.sh -# Autoload and config path -# avoid jean85/pretty-package-versions -Patch0: %{name}-6.0.2-rpm.patch -# upstream patch for Symfony 4 -Patch1: %{name}-6.0.2-sf4.patch +# Relocate the database +Patch0: %{name}-6.0.0-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 7.4 -%if %{with tests} -# to run test suite +BuildRequires: php-cli +BuildRequires: php-dom +BuildRequires: php-json +BuildRequires: php-libxml +BuildRequires: php-pcre +BuildRequires: php-phar +BuildRequires: php-pdo BuildRequires: php-pdo_sqlite -BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 3.6 with php-composer(bartlett/php-compatinfo-db) < 4) -BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) -BuildRequires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) -BuildRequires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6) -BuildRequires: (php-composer(symfony/console) >= 4.4 with php-composer(symfony/console) < 6) -BuildRequires: (php-composer(symfony/dependency-injection) >= 4.4 with php-composer(symfony/dependency-injection) < 6) -BuildRequires: (php-composer(symfony/event-dispatcher) >= 4.4 with php-composer(symfony/event-dispatcher) < 6) -BuildRequires: (php-composer(symfony/finder) >= 4.4 with php-composer(symfony/finder) < 6) -BuildRequires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6) -BuildRequires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6) -BuildRequires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) -BuildRequires: (php-composer(nikic/php-parser) >= 4.10 with php-composer(nikic/php-parser) < 5) -%global phpunit %{_bindir}/phpunit9 -BuildRequires: %{phpunit} -# For our patch / autoloader -BuildRequires: php-fedora-autoloader-devel -%endif +BuildRequires: php-simplexml +BuildRequires: php-spl +BuildRequires: php-xmlreader -# From composer.json, "require" -# "php": "^7.4|^8.0", -# "ext-json": "*", -# "ext-libxml": "*", -# "ext-pcre": "*", -# "ext-spl": "*", -# "bartlett/php-reflect": "^4.4", -# "bartlett/php-compatinfo-db": "^3.6", -# "doctrine/collections": "^1.4", -# "nikic/php-parser": "^4.10", -# "composer/package-versions-deprecated": "^1.8", -# "psr/log": "^1.0", -# "ramsey/uuid": "^3.9|^4.0", -# "symfony/config": "^4.4|^5.0", -# "symfony/console": "^4.4|^5.0", -# "symfony/event-dispatcher": "^4.4|^5.0", -# "symfony/finder": "^4.4|^5.0", -# "symfony/dependency-injection": "^4.4|^5.0", -# "symfony/serializer": "^4.4|^5.0", -# "symfony/stopwatch": "^4.4|^5.0" Requires: php(language) >= 7.4 Requires: php-cli +Requires: php-dom Requires: php-json Requires: php-libxml Requires: php-pcre +Requires: php-phar +Requires: php-pdo Requires: php-pdo_sqlite +Requires: php-simplexml Requires: php-spl -Requires: (php-composer(bartlett/php-compatinfo-db) >= 3.6 with php-composer(bartlett/php-compatinfo-db) < 4) -Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) -Requires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5) -Requires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6) -Requires: (php-composer(symfony/console) >= 4.4 with php-composer(symfony/console) < 6) -Requires: (php-composer(symfony/dependency-injection) >= 4.4 with php-composer(symfony/dependency-injection) < 6) -Requires: (php-composer(symfony/event-dispatcher) >= 4.4 with php-composer(symfony/event-dispatcher) < 6) -Requires: (php-composer(symfony/finder) >= 4.4 with php-composer(symfony/finder) < 6) -Requires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6) -Requires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6) -Requires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2) -Requires: (php-composer(nikic/php-parser) >= 4.10 with php-composer(nikic/php-parser) < 5) -# Required by autoloader -Requires: php-composer(fedora/autoloader) +Requires: php-xmlreader -Provides: phpcompatinfo = %{version} -Provides: php-composer(bartlett/php-compatinfo) = %{version} +# Bundled libraries +Provides: bundled(php-bartlett-php-compatinfo-db) = 3.16.1 +Provides: bundled(php-brick-math) = 0.9.3 +Provides: bundled(php-composer-package-versions-deprecated) = 1.11.99.4 +Provides: bundled(php-composer-semver) = 3.2.7 +Provides: bundled(php-doctrine-annotations) = 1.13.2 +Provides: bundled(php-doctrine-cache) = 2.1.1 +Provides: bundled(php-doctrine-collections) = 1.6.8 +Provides: bundled(php-doctrine-common) = 3.2.1 +Provides: bundled(php-doctrine-dbal) = 3.2.0 +Provides: bundled(php-doctrine-deprecations) = v0.5.3 +Provides: bundled(php-doctrine-event-manager) = 1.1.1 +Provides: bundled(php-doctrine-inflector) = 2.0.4 +Provides: bundled(php-doctrine-instantiator) = 1.4.0 +Provides: bundled(php-doctrine-lexer) = 1.2.1 +Provides: bundled(php-doctrine-orm) = 2.10.4 +Provides: bundled(php-doctrine-persistence) = 2.2.3 +Provides: bundled(php-nikic-php-parser) = v4.13.2 +Provides: bundled(php-psr-cache) = 2.0.0 +Provides: bundled(php-psr-container) = 1.1.2 +Provides: bundled(php-psr-event-dispatcher) = 1.0.0 +Provides: bundled(php-psr-log) = 1.1.4 +Provides: bundled(php-ramsey-collection) = 1.2.2 +Provides: bundled(php-ramsey-uuid) = 4.2.3 +Provides: bundled(php-symfony-amqp-messenger) = v5.4.0 +Provides: bundled(php-symfony-cache) = v5.4.2 +Provides: bundled(php-symfony-cache-contracts) = v2.5.0 +Provides: bundled(php-symfony-config) = v5.4.2 +Provides: bundled(php-symfony-console) = v5.4.2 +Provides: bundled(php-symfony-dependency-injection) = v5.4.2 +Provides: bundled(php-symfony-deprecation-contracts) = v3.0.0 +Provides: bundled(php-symfony-doctrine-messenger) = v6.0.2 +Provides: bundled(php-symfony-event-dispatcher) = v5.4.0 +Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.0.0 +Provides: bundled(php-symfony-filesystem) = v6.0.0 +Provides: bundled(php-symfony-finder) = v5.4.2 +Provides: bundled(php-symfony-messenger) = v5.4.2 +Provides: bundled(php-symfony-polyfill-ctype) = v1.24.0 +Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.24.0 +Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.24.0 +Provides: bundled(php-symfony-polyfill-mbstring) = v1.24.0 +Provides: bundled(php-symfony-polyfill-php72) = v1.24.0 +Provides: bundled(php-symfony-polyfill-php73) = v1.24.0 +Provides: bundled(php-symfony-polyfill-php80) = v1.24.0 +Provides: bundled(php-symfony-polyfill-php81) = v1.24.0 +Provides: bundled(php-symfony-process) = v5.4.2 +Provides: bundled(php-symfony-redis-messenger) = v6.0.2 +Provides: bundled(php-symfony-requirements-checker) = v2.0.1 +Provides: bundled(php-symfony-serializer) = v5.4.2 +Provides: bundled(php-symfony-service-contracts) = v2.4.1 +Provides: bundled(php-symfony-stopwatch) = v5.4.0 +Provides: bundled(php-symfony-string) = v6.0.2 +Provides: bundled(php-symfony-var-exporter) = v6.0.0 + +Provides: phpcompatinfo = %{version} +Provides: php-composer(bartlett/php-compatinfo) = %{version} %description @@ -115,122 +127,59 @@ version and extensions required for it to run. CLI version has many reports (extension, interface, class, function, constant) to display and ability to show content of dictionary references. -Documentation: http://php5.laurent-laville.org/compatinfo/manual/current/en/ - %prep %setup -q -n %{gh_project}-%{gh_commit} - %patch0 -p1 -b .rpm -%patch1 -p1 -b .sf4 - -phpab \ - --template fedora \ - --output src/autoload.php \ - src -cat << 'EOF' | tee -a src/autoload.php - -\Fedora\Autoloader\Dependencies::required([ - '%{_datadir}/php/PhpParser4/autoload.php', - '%{_datadir}/php/Bartlett/CompatInfoDb/autoload.php', - '%{_datadir}/php/Psr/Log/autoload.php', - '%{_datadir}/php/Ramsey/Uuid/autoload.php', - [ - '%{_datadir}/php/Symfony5/Component/Config/autoload.php', - '%{_datadir}/php/Symfony4/Component/Config/autoload.php', - ], [ - '%{_datadir}/php/Symfony5/Component/Console/autoload.php', - '%{_datadir}/php/Symfony4/Component/Console/autoload.php', - ], [ - '%{_datadir}/php/Symfony5/Component/DependencyInjection/autoload.php', - '%{_datadir}/php/Symfony4/Component/DependencyInjection/autoload.php', - ], [ - '%{_datadir}/php/Symfony5/Component/EventDispatcher/autoload.php', - '%{_datadir}/php/Symfony4/Component/EventDispatcher/autoload.php', - ], [ - '%{_datadir}/php/Symfony5/Component/Finder/autoload.php', - '%{_datadir}/php/Symfony4/Component/Finder/autoload.php', - ], [ - '%{_datadir}/php/Symfony5/Component/Serializer/autoload.php', - '%{_datadir}/php/Symfony4/Component/Serializer/autoload.php', - ], [ - '%{_datadir}/php/Symfony5/Component/Stopwatch/autoload.php', - '%{_datadir}/php/Symfony4/Component/Stopwatch/autoload.php', - ], - '%{_datadir}/php/Doctrine/Common/Collections/autoload.php', - __DIR__ . '/Infrastructure/Framework/Symfony/Polyfill.php', -]); -EOF - -# Cleanup patched files -find src -name \*.rpm -delete -print -find src -name \*.sf4 -delete -print - -# fix path in configuration -sed -e 's:/src::' -i config/set/*php -mv config src/config - -# Check package version -FILE=src/Presentation/Console/ApplicationInterface.php -#sed -e 's/5.5.1/#{version}/' -i $FILE -grep " VERSION" $FILE -grep %{version} $FILE +# Gather all license files and cleanup tests +mv vendor/composer/LICENSE composer_LICENSE +for vendor in $(ls vendor) +do + for proj in $(ls vendor/$vendor) + do + [ -d vendor/$vendor/$proj/tests ] && rm -r vendor/$vendor/$proj/tests + [ -f vendor/$vendor/$proj/LICENSE ] && mv vendor/$vendor/$proj/LICENSE ${vendor}_${proj}_LICENSE + done +done +rm -r tests %build # Nothing %install -mkdir -p %{buildroot}%{_datadir}/php/Bartlett -cp -pr src %{buildroot}%{_datadir}/php/Bartlett/CompatInfo +mkdir -p %{buildroot}%{_datadir} +cp -pr . %{buildroot}%{_datadir}/%{name} +rm %{buildroot}%{_datadir}/%{name}/*LICENSE -install -D -p -m 755 bin/phpcompatinfo %{buildroot}%{_bindir}/phpcompatinfo -install -D -p -m 644 bin/phpcompatinfo.1 %{buildroot}%{_mandir}/man1/phpcompatinfo.1 +mkdir -p %{buildroot}%{_bindir} +ln -s ../share/%{name}/bin/phpcompatinfo %{buildroot}%{_bindir}/phpcompatinfo -install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora-review-check +mkdir -p %{buildroot}%{_mandir}/man1 +mv %{buildroot}%{_datadir}/%{name}/bin/phpcompatinfo.1 \ + %{buildroot}%{_mandir}/man1/phpcompatinfo.1 + +install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora-review-check -%if %{with tests} %check -mkdir config -cat << 'EOF' | tee config/bootstrap.php -/dev/null || : -fi +%{buildroot}%{_bindir}/phpcompatinfo --version || grep %{version} %files -%license LICENSE -%doc composer.json README.* +%license *LICENSE +%doc README.* %{_bindir}/phpcompatinfo -%{_datadir}/php/Bartlett/CompatInfo -%{_mandir}/man1/phpcompatinfo.1* %{_datadir}/%{name} +%{_mandir}/man1/phpcompatinfo.1* %changelog +* Wed Jan 5 2022 Remi Collet - 6.0.3-1 +- update to 6.0.3 +- use all PHP bundled libraries instead of system ones + * Mon Jan 3 2022 Remi Collet - 6.0.2-1 - update to 6.0.2 - open https://github.com/llaville/php-compatinfo/issues/316 diff --git a/sources b/sources index ffdf529..2b2503c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.0.2-4beab5e.tar.gz) = 039ef2635cfc05f841b48c9479752ce586117cadfdd75686cdd513de447bf77b6e28ee7ca0d32e3f9d353d200b17f71bda863609bde585289c8648cb35090ed9 +SHA512 (php-bartlett-PHP-CompatInfo-6.0.3-7f878c7.tgz) = 025435331c9a804d477902e78aa1e36b4b7a76d273a5bf546dc12d5ce22fc6b9a9ef954e59bbad8bf6edc2d5a6df99e2cc032f4131cccc27fe9ee07c0600ed54 From 5591debf191249507b4b8e404a7d824617cc1ecc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 6 Jan 2022 12:05:41 +0100 Subject: [PATCH 24/64] v6.1.0 --- .gitignore | 1 + makesrc.sh | 2 -- php-bartlett-PHP-CompatInfo.spec | 30 +++++++++++++++++------------- sources | 2 +- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 3a672bd..40c59b5 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,4 @@ clog /php-bartlett-PHP-CompatInfo-6.0.1-5978aea.tar.gz /php-bartlett-PHP-CompatInfo-6.0.2-4beab5e.tar.gz /php-bartlett-PHP-CompatInfo-6.0.3-7f878c7.tgz +/php-bartlett-PHP-CompatInfo-6.1.0-e40303a.tgz diff --git a/makesrc.sh b/makesrc.sh index c0e118c..f912313 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -17,8 +17,6 @@ echo "Getting commit..." git checkout $COMMIT || exit 1 cp composer.json vendor/composer/installed.json ../ - sed -e 's/"config": {/"config": {"platform": {"php": "7.4.0"},/' -i composer.json - composer install --no-dev --optimize-autoloader mkdir data diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 7500ca9..8502ffa 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 7f878c7b534f3c4bb4d2200267678d53324b5d08 +%global gh_commit e40303a34d7657a92c82cc7cc61c50b5a1f095bd %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.0.3 +%global upstream_version 6.1.0 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -64,7 +64,8 @@ Requires: php-spl Requires: php-xmlreader # Bundled libraries -Provides: bundled(php-bartlett-php-compatinfo-db) = 3.16.1 +Provides: bundled(php-bartlett-php-compatinfo-db) = 3.17.0 +Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 Provides: bundled(php-composer-package-versions-deprecated) = 1.11.99.4 Provides: bundled(php-composer-semver) = 3.2.7 @@ -72,7 +73,7 @@ Provides: bundled(php-doctrine-annotations) = 1.13.2 Provides: bundled(php-doctrine-cache) = 2.1.1 Provides: bundled(php-doctrine-collections) = 1.6.8 Provides: bundled(php-doctrine-common) = 3.2.1 -Provides: bundled(php-doctrine-dbal) = 3.2.0 +Provides: bundled(php-doctrine-dbal) = 3.2.1 Provides: bundled(php-doctrine-deprecations) = v0.5.3 Provides: bundled(php-doctrine-event-manager) = 1.1.1 Provides: bundled(php-doctrine-inflector) = 2.0.4 @@ -81,7 +82,7 @@ Provides: bundled(php-doctrine-lexer) = 1.2.1 Provides: bundled(php-doctrine-orm) = 2.10.4 Provides: bundled(php-doctrine-persistence) = 2.2.3 Provides: bundled(php-nikic-php-parser) = v4.13.2 -Provides: bundled(php-psr-cache) = 2.0.0 +Provides: bundled(php-psr-cache) = 1.0.1 Provides: bundled(php-psr-container) = 1.1.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 1.1.4 @@ -93,11 +94,11 @@ Provides: bundled(php-symfony-cache-contracts) = v2.5.0 Provides: bundled(php-symfony-config) = v5.4.2 Provides: bundled(php-symfony-console) = v5.4.2 Provides: bundled(php-symfony-dependency-injection) = v5.4.2 -Provides: bundled(php-symfony-deprecation-contracts) = v3.0.0 -Provides: bundled(php-symfony-doctrine-messenger) = v6.0.2 +Provides: bundled(php-symfony-deprecation-contracts) = v2.5.0 +Provides: bundled(php-symfony-doctrine-messenger) = v5.4.0 Provides: bundled(php-symfony-event-dispatcher) = v5.4.0 -Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.0.0 -Provides: bundled(php-symfony-filesystem) = v6.0.0 +Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.0 +Provides: bundled(php-symfony-filesystem) = v5.4.0 Provides: bundled(php-symfony-finder) = v5.4.2 Provides: bundled(php-symfony-messenger) = v5.4.2 Provides: bundled(php-symfony-polyfill-ctype) = v1.24.0 @@ -109,13 +110,13 @@ Provides: bundled(php-symfony-polyfill-php73) = v1.24.0 Provides: bundled(php-symfony-polyfill-php80) = v1.24.0 Provides: bundled(php-symfony-polyfill-php81) = v1.24.0 Provides: bundled(php-symfony-process) = v5.4.2 -Provides: bundled(php-symfony-redis-messenger) = v6.0.2 +Provides: bundled(php-symfony-redis-messenger) = v5.4.2 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 Provides: bundled(php-symfony-serializer) = v5.4.2 -Provides: bundled(php-symfony-service-contracts) = v2.4.1 +Provides: bundled(php-symfony-service-contracts) = v2.5.0 Provides: bundled(php-symfony-stopwatch) = v5.4.0 -Provides: bundled(php-symfony-string) = v6.0.2 -Provides: bundled(php-symfony-var-exporter) = v6.0.0 +Provides: bundled(php-symfony-string) = v5.4.2 +Provides: bundled(php-symfony-var-exporter) = v5.4.2 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -176,6 +177,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Thu Jan 6 2022 Remi Collet - 6.1.0-1 +- update to 6.1.0 + * Wed Jan 5 2022 Remi Collet - 6.0.3-1 - update to 6.0.3 - use all PHP bundled libraries instead of system ones diff --git a/sources b/sources index 2b2503c..1166c21 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.0.3-7f878c7.tgz) = 025435331c9a804d477902e78aa1e36b4b7a76d273a5bf546dc12d5ce22fc6b9a9ef954e59bbad8bf6edc2d5a6df99e2cc032f4131cccc27fe9ee07c0600ed54 +SHA512 (php-bartlett-PHP-CompatInfo-6.1.0-e40303a.tgz) = 8b0f5c6277540d3b2d3babb2f5cca5fb876729b7cebc4674e1be56a35be0fd3e1d75d69aecc9dc7dab29d920c066d2d5bcdff5c5bccb46302f52d782ee3a8d65 From df1867d39476514bb8730c65952fc559d0e3104d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 18 Jan 2022 11:44:53 +0100 Subject: [PATCH 25/64] update to 6.1.1 update bundled bartlett/php-compatinfo-db 3.17.1 --- .gitignore | 1 + makesrc.sh | 20 ++----------- php-bartlett-PHP-CompatInfo.spec | 49 ++++++++++++++++++++------------ sources | 2 +- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.gitignore b/.gitignore index 40c59b5..280ada2 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,4 @@ clog /php-bartlett-PHP-CompatInfo-6.0.2-4beab5e.tar.gz /php-bartlett-PHP-CompatInfo-6.0.3-7f878c7.tgz /php-bartlett-PHP-CompatInfo-6.1.0-e40303a.tgz +/php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz diff --git a/makesrc.sh b/makesrc.sh index f912313..048f267 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -16,26 +16,12 @@ echo "Getting commit..." pushd $PROJECT-$COMMIT git checkout $COMMIT || exit 1 - cp composer.json vendor/composer/installed.json ../ - composer install --no-dev --optimize-autoloader + cp composer.json ../ + composer install --no-interaction --no-progress --no-dev --optimize-autoloader + cp vendor/composer/installed.json ../ mkdir data cp ${HOME}/.cache/bartlett/compatinfo-db.sqlite data - - php -r ' - $pkgs = file_get_contents("vendor/composer/installed.json"); - $pkgs = json_decode($pkgs, true); - if (!is_array($pkgs) || !isset($pkgs["packages"])) { - echo "cant decode json file\n"; - exit(3); - } - $lic = []; - foreach($pkgs["packages"] as $pkg) { - printf("Provides: bundled(php-%s) = %s\n", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); - $lic = array_merge($lic, $pkg["license"]); - } - sort($lic); - printf("\nLicense: %s\n", implode(" and ", array_unique($lic)));' popd echo "Archiving..." diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 8502ffa..e3a2966 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit e40303a34d7657a92c82cc7cc61c50b5a1f095bd +%global gh_commit 553a953cf4e823700aff8660a4cf6d354fc4aafd %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.1.0 +%global upstream_version 6.1.1 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -39,16 +39,7 @@ Patch0: %{name}-6.0.0-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 7.4 BuildRequires: php-cli -BuildRequires: php-dom BuildRequires: php-json -BuildRequires: php-libxml -BuildRequires: php-pcre -BuildRequires: php-phar -BuildRequires: php-pdo -BuildRequires: php-pdo_sqlite -BuildRequires: php-simplexml -BuildRequires: php-spl -BuildRequires: php-xmlreader Requires: php(language) >= 7.4 Requires: php-cli @@ -64,23 +55,22 @@ Requires: php-spl Requires: php-xmlreader # Bundled libraries -Provides: bundled(php-bartlett-php-compatinfo-db) = 3.17.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 3.17.1 Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 -Provides: bundled(php-composer-package-versions-deprecated) = 1.11.99.4 Provides: bundled(php-composer-semver) = 3.2.7 Provides: bundled(php-doctrine-annotations) = 1.13.2 Provides: bundled(php-doctrine-cache) = 2.1.1 Provides: bundled(php-doctrine-collections) = 1.6.8 Provides: bundled(php-doctrine-common) = 3.2.1 -Provides: bundled(php-doctrine-dbal) = 3.2.1 +Provides: bundled(php-doctrine-dbal) = 3.3.0 Provides: bundled(php-doctrine-deprecations) = v0.5.3 Provides: bundled(php-doctrine-event-manager) = 1.1.1 Provides: bundled(php-doctrine-inflector) = 2.0.4 Provides: bundled(php-doctrine-instantiator) = 1.4.0 -Provides: bundled(php-doctrine-lexer) = 1.2.1 -Provides: bundled(php-doctrine-orm) = 2.10.4 -Provides: bundled(php-doctrine-persistence) = 2.2.3 +Provides: bundled(php-doctrine-lexer) = 1.2.2 +Provides: bundled(php-doctrine-orm) = 2.11.0 +Provides: bundled(php-doctrine-persistence) = 2.3.0 Provides: bundled(php-nikic-php-parser) = v4.13.2 Provides: bundled(php-psr-cache) = 1.0.1 Provides: bundled(php-psr-container) = 1.1.2 @@ -133,7 +123,7 @@ show content of dictionary references. %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p1 -b .rpm -# Gather all license files and cleanup tests +: Gather all license files and cleanup tests mv vendor/composer/LICENSE composer_LICENSE for vendor in $(ls vendor) do @@ -145,6 +135,23 @@ do done rm -r tests +: List bundled libraries and Licenses +php -r ' + $pkgs = file_get_contents("vendor/composer/installed.json"); + $pkgs = json_decode($pkgs, true); + if (!is_array($pkgs) || !isset($pkgs["packages"])) { + echo "cant decode json file\n"; + exit(3); + } + $lic = []; + foreach($pkgs["packages"] as $pkg) { + printf("Provides: bundled(php-%s) = %s\n", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); + $lic = array_merge($lic, $pkg["license"]); + } + sort($lic); + printf("\nLicense: %s\n", implode(" and ", array_unique($lic)));' + + %build # Nothing @@ -171,12 +178,18 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %files %license *LICENSE %doc README.* +%doc composer.json +%doc vendor/composer/installed.json %{_bindir}/phpcompatinfo %{_datadir}/%{name} %{_mandir}/man1/phpcompatinfo.1* %changelog +* Tue Jan 18 2022 Remi Collet - 6.1.1-1 +- update to 6.1.1 +- update bundled bartlett/php-compatinfo-db 3.17.1 + * Thu Jan 6 2022 Remi Collet - 6.1.0-1 - update to 6.1.0 diff --git a/sources b/sources index 1166c21..f67ee57 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.1.0-e40303a.tgz) = 8b0f5c6277540d3b2d3babb2f5cca5fb876729b7cebc4674e1be56a35be0fd3e1d75d69aecc9dc7dab29d920c066d2d5bcdff5c5bccb46302f52d782ee3a8d65 +SHA512 (php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz) = aea64d7008e75e586d0f2c19310fc24b44a4fe20101efe08834205ef891278d162fada342b4119f5d89d51de135b6c9473514c4171e5a0754a0d99e2d15f7e02 From 76fb3e2584360a458d6b9c12952ed5ec17cf5a80 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 07:18:51 +0000 Subject: [PATCH 26/64] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index e3a2966..68f96e8 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD and MIT @@ -186,6 +186,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 6.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Tue Jan 18 2022 Remi Collet - 6.1.1-1 - update to 6.1.1 - update bundled bartlett/php-compatinfo-db 3.17.1 From 8f8a46629c3377c7eaa0d817ea6596d8ee51ad80 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 27 Jan 2022 10:39:58 +0100 Subject: [PATCH 27/64] update bundled bartlett/php-compatinfo-db 3.18.0 use better process to create the database, as discussed on https://github.com/llaville/php-compatinfo-db/issues/113 silent touch on read only database, reported as https://github.com/llaville/php-compatinfo-db/issues/112 --- makesrc.sh | 7 +++++-- php-bartlett-PHP-CompatInfo.spec | 14 ++++++++++++-- sources | 2 +- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/makesrc.sh b/makesrc.sh index 048f267..0d03210 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -20,8 +20,11 @@ echo "Getting commit..." composer install --no-interaction --no-progress --no-dev --optimize-autoloader cp vendor/composer/installed.json ../ - mkdir data - cp ${HOME}/.cache/bartlett/compatinfo-db.sqlite data + export DATABASE_URL=sqlite:///$PWD/data/compatinfo-db.sqlite + mkdir data + bin/phpcompatinfo db:create + bin/phpcompatinfo diag + bin/phpcompatinfo db:list popd echo "Archiving..." diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 68f96e8..e02cc77 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist} +Release: 5%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD and MIT @@ -55,7 +55,7 @@ Requires: php-spl Requires: php-xmlreader # Bundled libraries -Provides: bundled(php-bartlett-php-compatinfo-db) = 3.17.1 +Provides: bundled(php-bartlett-php-compatinfo-db) = 3.18.0 Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 Provides: bundled(php-composer-semver) = 3.2.7 @@ -123,6 +123,9 @@ show content of dictionary references. %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p1 -b .rpm +# https://github.com/llaville/php-compatinfo-db/issues/112 +sed -e 's/touch/@touch/' -i vendor/bartlett/php-compatinfo-db/config/set/default.php + : Gather all license files and cleanup tests mv vendor/composer/LICENSE composer_LICENSE for vendor in $(ls vendor) @@ -186,6 +189,13 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Thu Jan 27 2022 Remi Collet - 6.1.1-5 +- update bundled bartlett/php-compatinfo-db 3.18.0 +- use better process to create the database, as discussed on + https://github.com/llaville/php-compatinfo-db/issues/113 +- silent touch on read only database, reported as + https://github.com/llaville/php-compatinfo-db/issues/112 + * Fri Jan 21 2022 Fedora Release Engineering - 6.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index f67ee57..8680cc4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz) = aea64d7008e75e586d0f2c19310fc24b44a4fe20101efe08834205ef891278d162fada342b4119f5d89d51de135b6c9473514c4171e5a0754a0d99e2d15f7e02 +SHA512 (php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz) = e5a3f750382da6f0486bfa20e52ed4a86eee2c931e636bcf134ef9d70139edf612a635f962fbec25a91c003b5d8bf5323ded394cfc2f4a38d858609ee1e22262 From 2c685a276c4704e654929c4b2aa06186125481f3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 28 Jan 2022 10:13:25 +0100 Subject: [PATCH 28/64] v6.1.2 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 280ada2..76c8f53 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ clog /php-bartlett-PHP-CompatInfo-6.0.3-7f878c7.tgz /php-bartlett-PHP-CompatInfo-6.1.0-e40303a.tgz /php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz +/php-bartlett-PHP-CompatInfo-6.1.2-df38ea6.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index e02cc77..443e5e5 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,18 +11,18 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 553a953cf4e823700aff8660a4cf6d354fc4aafd +%global gh_commit df38ea655bde34affa35d10cbc176428b1812b35 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.1.1 +%global upstream_version 6.1.2 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 5%{?dist} +Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD and MIT @@ -189,6 +189,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Fri Jan 28 2022 Remi Collet - 6.1.2-1 +- update to 6.1.2 + * Thu Jan 27 2022 Remi Collet - 6.1.1-5 - update bundled bartlett/php-compatinfo-db 3.18.0 - use better process to create the database, as discussed on diff --git a/sources b/sources index 8680cc4..5b0212a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz) = e5a3f750382da6f0486bfa20e52ed4a86eee2c931e636bcf134ef9d70139edf612a635f962fbec25a91c003b5d8bf5323ded394cfc2f4a38d858609ee1e22262 +SHA512 (php-bartlett-PHP-CompatInfo-6.1.2-df38ea6.tgz) = dd1f9360e5a40efa5d9e4b98b450d686d4f57ad9373e4f984be1701b1b709c987824f777372e25a8af983fb19609f5b8532667ef908580253e24e5009422f359 From 13cb37357e15883bf67ed888ad8c1de9c6bd58e2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 7 Feb 2022 11:00:46 +0100 Subject: [PATCH 29/64] update to 6.2.0 update bundled bartlett/php-compatinfo-db to 4.0.0 --- .gitignore | 1 + makesrc.sh | 2 +- php-bartlett-PHP-CompatInfo.spec | 50 +++++++++++++++++--------------- sources | 2 +- 4 files changed, 30 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 76c8f53..fbd6a66 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,4 @@ clog /php-bartlett-PHP-CompatInfo-6.1.0-e40303a.tgz /php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz /php-bartlett-PHP-CompatInfo-6.1.2-df38ea6.tgz +/php-bartlett-PHP-CompatInfo-6.2.0-dcb0d52.tgz diff --git a/makesrc.sh b/makesrc.sh index 0d03210..cfb4a17 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -23,8 +23,8 @@ echo "Getting commit..." export DATABASE_URL=sqlite:///$PWD/data/compatinfo-db.sqlite mkdir data bin/phpcompatinfo db:create + bin/phpcompatinfo db:init bin/phpcompatinfo diag - bin/phpcompatinfo db:list popd echo "Archiving..." diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 443e5e5..a610a1e 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit df38ea655bde34affa35d10cbc176428b1812b35 +%global gh_commit dcb0d522b1916933a5d5a00ca64dbb6d5ae34041 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.1.2 +%global upstream_version 6.2.0 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -55,21 +55,21 @@ Requires: php-spl Requires: php-xmlreader # Bundled libraries -Provides: bundled(php-bartlett-php-compatinfo-db) = 3.18.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 4.0.0 Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 -Provides: bundled(php-composer-semver) = 3.2.7 +Provides: bundled(php-composer-semver) = 3.2.9 Provides: bundled(php-doctrine-annotations) = 1.13.2 Provides: bundled(php-doctrine-cache) = 2.1.1 Provides: bundled(php-doctrine-collections) = 1.6.8 -Provides: bundled(php-doctrine-common) = 3.2.1 -Provides: bundled(php-doctrine-dbal) = 3.3.0 +Provides: bundled(php-doctrine-common) = 3.2.2 +Provides: bundled(php-doctrine-dbal) = 3.3.2 Provides: bundled(php-doctrine-deprecations) = v0.5.3 Provides: bundled(php-doctrine-event-manager) = 1.1.1 Provides: bundled(php-doctrine-inflector) = 2.0.4 Provides: bundled(php-doctrine-instantiator) = 1.4.0 Provides: bundled(php-doctrine-lexer) = 1.2.2 -Provides: bundled(php-doctrine-orm) = 2.11.0 +Provides: bundled(php-doctrine-orm) = 2.11.1 Provides: bundled(php-doctrine-persistence) = 2.3.0 Provides: bundled(php-nikic-php-parser) = v4.13.2 Provides: bundled(php-psr-cache) = 1.0.1 @@ -78,19 +78,19 @@ Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 1.1.4 Provides: bundled(php-ramsey-collection) = 1.2.2 Provides: bundled(php-ramsey-uuid) = 4.2.3 -Provides: bundled(php-symfony-amqp-messenger) = v5.4.0 -Provides: bundled(php-symfony-cache) = v5.4.2 +Provides: bundled(php-symfony-amqp-messenger) = v5.4.3 +Provides: bundled(php-symfony-cache) = v5.4.3 Provides: bundled(php-symfony-cache-contracts) = v2.5.0 -Provides: bundled(php-symfony-config) = v5.4.2 -Provides: bundled(php-symfony-console) = v5.4.2 -Provides: bundled(php-symfony-dependency-injection) = v5.4.2 +Provides: bundled(php-symfony-config) = v5.4.3 +Provides: bundled(php-symfony-console) = v5.4.3 +Provides: bundled(php-symfony-dependency-injection) = v5.4.3 Provides: bundled(php-symfony-deprecation-contracts) = v2.5.0 -Provides: bundled(php-symfony-doctrine-messenger) = v5.4.0 -Provides: bundled(php-symfony-event-dispatcher) = v5.4.0 +Provides: bundled(php-symfony-doctrine-messenger) = v5.4.3 +Provides: bundled(php-symfony-event-dispatcher) = v5.4.3 Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.0 -Provides: bundled(php-symfony-filesystem) = v5.4.0 -Provides: bundled(php-symfony-finder) = v5.4.2 -Provides: bundled(php-symfony-messenger) = v5.4.2 +Provides: bundled(php-symfony-filesystem) = v5.4.3 +Provides: bundled(php-symfony-finder) = v5.4.3 +Provides: bundled(php-symfony-messenger) = v5.4.3 Provides: bundled(php-symfony-polyfill-ctype) = v1.24.0 Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.24.0 Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.24.0 @@ -99,14 +99,14 @@ Provides: bundled(php-symfony-polyfill-php72) = v1.24.0 Provides: bundled(php-symfony-polyfill-php73) = v1.24.0 Provides: bundled(php-symfony-polyfill-php80) = v1.24.0 Provides: bundled(php-symfony-polyfill-php81) = v1.24.0 -Provides: bundled(php-symfony-process) = v5.4.2 -Provides: bundled(php-symfony-redis-messenger) = v5.4.2 +Provides: bundled(php-symfony-process) = v5.4.3 +Provides: bundled(php-symfony-redis-messenger) = v5.4.3 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v5.4.2 +Provides: bundled(php-symfony-serializer) = v5.4.3 Provides: bundled(php-symfony-service-contracts) = v2.5.0 -Provides: bundled(php-symfony-stopwatch) = v5.4.0 -Provides: bundled(php-symfony-string) = v5.4.2 -Provides: bundled(php-symfony-var-exporter) = v5.4.2 +Provides: bundled(php-symfony-stopwatch) = v5.4.3 +Provides: bundled(php-symfony-string) = v5.4.3 +Provides: bundled(php-symfony-var-exporter) = v5.4.3 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -189,6 +189,10 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Mon Feb 7 2022 Remi Collet - 6.2.0-1 +- update to 6.2.0 +- update bundled bartlett/php-compatinfo-db to 4.0.0 + * Fri Jan 28 2022 Remi Collet - 6.1.2-1 - update to 6.1.2 diff --git a/sources b/sources index 5b0212a..a8c72b5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.1.2-df38ea6.tgz) = dd1f9360e5a40efa5d9e4b98b450d686d4f57ad9373e4f984be1701b1b709c987824f777372e25a8af983fb19609f5b8532667ef908580253e24e5009422f359 +SHA512 (php-bartlett-PHP-CompatInfo-6.2.0-dcb0d52.tgz) = d2441a3bd51a5b062043d9e19c1d325f98528b7e5776815baedbf632598f1579f77cc03d3fce46b483eabf7f3341dd3fa10aedd741baf145790dcfafad85e196 From a9a219dc9e41c019b7927a96ab551dc327142f9b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 7 Mar 2022 10:10:53 +0100 Subject: [PATCH 30/64] update to 6.3.0 update bundled bartlett/php-compatinfo-db to 4.1.0 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 50 +++++++++++++++++--------------- sources | 2 +- 3 files changed, 29 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index fbd6a66..76efb80 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,4 @@ clog /php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz /php-bartlett-PHP-CompatInfo-6.1.2-df38ea6.tgz /php-bartlett-PHP-CompatInfo-6.2.0-dcb0d52.tgz +/php-bartlett-PHP-CompatInfo-6.3.0-2b7c3f9.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index a610a1e..2aae408 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit dcb0d522b1916933a5d5a00ca64dbb6d5ae34041 +%global gh_commit 2b7c3f9b9819f26882667c612d8882132381ca1e %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.2.0 +%global upstream_version 6.3.0 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -55,7 +55,7 @@ Requires: php-spl Requires: php-xmlreader # Bundled libraries -Provides: bundled(php-bartlett-php-compatinfo-db) = 4.0.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 4.1.0 Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 Provides: bundled(php-composer-semver) = 3.2.9 @@ -67,8 +67,8 @@ Provides: bundled(php-doctrine-dbal) = 3.3.2 Provides: bundled(php-doctrine-deprecations) = v0.5.3 Provides: bundled(php-doctrine-event-manager) = 1.1.1 Provides: bundled(php-doctrine-inflector) = 2.0.4 -Provides: bundled(php-doctrine-instantiator) = 1.4.0 -Provides: bundled(php-doctrine-lexer) = 1.2.2 +Provides: bundled(php-doctrine-instantiator) = 1.4.1 +Provides: bundled(php-doctrine-lexer) = 1.2.3 Provides: bundled(php-doctrine-orm) = 2.11.1 Provides: bundled(php-doctrine-persistence) = 2.3.0 Provides: bundled(php-nikic-php-parser) = v4.13.2 @@ -78,35 +78,35 @@ Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 1.1.4 Provides: bundled(php-ramsey-collection) = 1.2.2 Provides: bundled(php-ramsey-uuid) = 4.2.3 -Provides: bundled(php-symfony-amqp-messenger) = v5.4.3 -Provides: bundled(php-symfony-cache) = v5.4.3 +Provides: bundled(php-symfony-amqp-messenger) = v5.4.5 +Provides: bundled(php-symfony-cache) = v5.4.6 Provides: bundled(php-symfony-cache-contracts) = v2.5.0 Provides: bundled(php-symfony-config) = v5.4.3 -Provides: bundled(php-symfony-console) = v5.4.3 -Provides: bundled(php-symfony-dependency-injection) = v5.4.3 +Provides: bundled(php-symfony-console) = v5.4.5 +Provides: bundled(php-symfony-dependency-injection) = v5.4.6 Provides: bundled(php-symfony-deprecation-contracts) = v2.5.0 Provides: bundled(php-symfony-doctrine-messenger) = v5.4.3 Provides: bundled(php-symfony-event-dispatcher) = v5.4.3 Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.0 -Provides: bundled(php-symfony-filesystem) = v5.4.3 +Provides: bundled(php-symfony-filesystem) = v5.4.6 Provides: bundled(php-symfony-finder) = v5.4.3 Provides: bundled(php-symfony-messenger) = v5.4.3 -Provides: bundled(php-symfony-polyfill-ctype) = v1.24.0 -Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.24.0 -Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.24.0 -Provides: bundled(php-symfony-polyfill-mbstring) = v1.24.0 -Provides: bundled(php-symfony-polyfill-php72) = v1.24.0 -Provides: bundled(php-symfony-polyfill-php73) = v1.24.0 -Provides: bundled(php-symfony-polyfill-php80) = v1.24.0 -Provides: bundled(php-symfony-polyfill-php81) = v1.24.0 -Provides: bundled(php-symfony-process) = v5.4.3 -Provides: bundled(php-symfony-redis-messenger) = v5.4.3 +Provides: bundled(php-symfony-polyfill-ctype) = v1.25.0 +Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.25.0 +Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.25.0 +Provides: bundled(php-symfony-polyfill-mbstring) = v1.25.0 +Provides: bundled(php-symfony-polyfill-php72) = v1.25.0 +Provides: bundled(php-symfony-polyfill-php73) = v1.25.0 +Provides: bundled(php-symfony-polyfill-php80) = v1.25.0 +Provides: bundled(php-symfony-polyfill-php81) = v1.25.0 +Provides: bundled(php-symfony-process) = v5.4.5 +Provides: bundled(php-symfony-redis-messenger) = v5.4.6 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v5.4.3 +Provides: bundled(php-symfony-serializer) = v5.4.6 Provides: bundled(php-symfony-service-contracts) = v2.5.0 -Provides: bundled(php-symfony-stopwatch) = v5.4.3 +Provides: bundled(php-symfony-stopwatch) = v5.4.5 Provides: bundled(php-symfony-string) = v5.4.3 -Provides: bundled(php-symfony-var-exporter) = v5.4.3 +Provides: bundled(php-symfony-var-exporter) = v5.4.6 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -189,6 +189,10 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Mon Mar 7 2022 Remi Collet - 6.3.0-1 +- update to 6.3.0 +- update bundled bartlett/php-compatinfo-db to 4.1.0 + * Mon Feb 7 2022 Remi Collet - 6.2.0-1 - update to 6.2.0 - update bundled bartlett/php-compatinfo-db to 4.0.0 diff --git a/sources b/sources index a8c72b5..a3fecb2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.2.0-dcb0d52.tgz) = d2441a3bd51a5b062043d9e19c1d325f98528b7e5776815baedbf632598f1579f77cc03d3fce46b483eabf7f3341dd3fa10aedd741baf145790dcfafad85e196 +SHA512 (php-bartlett-PHP-CompatInfo-6.3.0-2b7c3f9.tgz) = 19df98da80753ef8e86f9838280afcbd4622ab5be1e94d0c1249b842558471cdcaee56404fe5c1e7ae3ab77a5bebc430999190a7db6fd7d9275a088adaf41dc6 From caa29e20e470d9e763e27f638436d6bcdd83d4ff Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 6 Apr 2022 14:07:33 +0200 Subject: [PATCH 31/64] update to 6.4.0 update bundled bartlett/php-compatinfo-db to 4.2.0 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 46 ++++++++++++++++++-------------- sources | 2 +- 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 76efb80..f2b370d 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,4 @@ clog /php-bartlett-PHP-CompatInfo-6.1.2-df38ea6.tgz /php-bartlett-PHP-CompatInfo-6.2.0-dcb0d52.tgz /php-bartlett-PHP-CompatInfo-6.3.0-2b7c3f9.tgz +/php-bartlett-PHP-CompatInfo-6.4.0-3e23268.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 2aae408..bb5614e 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 2b7c3f9b9819f26882667c612d8882132381ca1e +%global gh_commit 3e23268c2c486c8ea1a6e63694c77ade7715c397 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.3.0 +%global upstream_version 6.4.0 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -55,22 +55,22 @@ Requires: php-spl Requires: php-xmlreader # Bundled libraries -Provides: bundled(php-bartlett-php-compatinfo-db) = 4.1.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 4.2.0 Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 -Provides: bundled(php-composer-semver) = 3.2.9 +Provides: bundled(php-composer-semver) = 3.3.2 Provides: bundled(php-doctrine-annotations) = 1.13.2 Provides: bundled(php-doctrine-cache) = 2.1.1 Provides: bundled(php-doctrine-collections) = 1.6.8 Provides: bundled(php-doctrine-common) = 3.2.2 -Provides: bundled(php-doctrine-dbal) = 3.3.2 +Provides: bundled(php-doctrine-dbal) = 3.3.5 Provides: bundled(php-doctrine-deprecations) = v0.5.3 Provides: bundled(php-doctrine-event-manager) = 1.1.1 Provides: bundled(php-doctrine-inflector) = 2.0.4 Provides: bundled(php-doctrine-instantiator) = 1.4.1 Provides: bundled(php-doctrine-lexer) = 1.2.3 -Provides: bundled(php-doctrine-orm) = 2.11.1 -Provides: bundled(php-doctrine-persistence) = 2.3.0 +Provides: bundled(php-doctrine-orm) = 2.11.2 +Provides: bundled(php-doctrine-persistence) = 2.4.1 Provides: bundled(php-nikic-php-parser) = v4.13.2 Provides: bundled(php-psr-cache) = 1.0.1 Provides: bundled(php-psr-container) = 1.1.2 @@ -79,17 +79,19 @@ Provides: bundled(php-psr-log) = 1.1.4 Provides: bundled(php-ramsey-collection) = 1.2.2 Provides: bundled(php-ramsey-uuid) = 4.2.3 Provides: bundled(php-symfony-amqp-messenger) = v5.4.5 -Provides: bundled(php-symfony-cache) = v5.4.6 -Provides: bundled(php-symfony-cache-contracts) = v2.5.0 -Provides: bundled(php-symfony-config) = v5.4.3 -Provides: bundled(php-symfony-console) = v5.4.5 -Provides: bundled(php-symfony-dependency-injection) = v5.4.6 -Provides: bundled(php-symfony-deprecation-contracts) = v2.5.0 -Provides: bundled(php-symfony-doctrine-messenger) = v5.4.3 +Provides: bundled(php-symfony-cache) = v5.4.7 +Provides: bundled(php-symfony-cache-contracts) = v2.5.1 +Provides: bundled(php-symfony-config) = v5.4.7 +Provides: bundled(php-symfony-console) = v5.4.7 +Provides: bundled(php-symfony-dependency-injection) = v5.4.7 +Provides: bundled(php-symfony-deprecation-contracts) = v2.5.1 +Provides: bundled(php-symfony-doctrine-messenger) = v5.4.7 Provides: bundled(php-symfony-event-dispatcher) = v5.4.3 -Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.0 -Provides: bundled(php-symfony-filesystem) = v5.4.6 +Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.1 +Provides: bundled(php-symfony-filesystem) = v5.4.7 Provides: bundled(php-symfony-finder) = v5.4.3 +Provides: bundled(php-symfony-http-client) = v5.4.7 +Provides: bundled(php-symfony-http-client-contracts) = v2.5.1 Provides: bundled(php-symfony-messenger) = v5.4.3 Provides: bundled(php-symfony-polyfill-ctype) = v1.25.0 Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.25.0 @@ -99,14 +101,14 @@ Provides: bundled(php-symfony-polyfill-php72) = v1.25.0 Provides: bundled(php-symfony-polyfill-php73) = v1.25.0 Provides: bundled(php-symfony-polyfill-php80) = v1.25.0 Provides: bundled(php-symfony-polyfill-php81) = v1.25.0 -Provides: bundled(php-symfony-process) = v5.4.5 +Provides: bundled(php-symfony-process) = v5.4.7 Provides: bundled(php-symfony-redis-messenger) = v5.4.6 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v5.4.6 -Provides: bundled(php-symfony-service-contracts) = v2.5.0 +Provides: bundled(php-symfony-serializer) = v5.4.7 +Provides: bundled(php-symfony-service-contracts) = v2.5.1 Provides: bundled(php-symfony-stopwatch) = v5.4.5 Provides: bundled(php-symfony-string) = v5.4.3 -Provides: bundled(php-symfony-var-exporter) = v5.4.6 +Provides: bundled(php-symfony-var-exporter) = v5.4.7 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -189,6 +191,10 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Wed Apr 6 2022 Remi Collet - 6.4.0-1 +- update to 6.4.0 +- update bundled bartlett/php-compatinfo-db to 4.2.0 + * Mon Mar 7 2022 Remi Collet - 6.3.0-1 - update to 6.3.0 - update bundled bartlett/php-compatinfo-db to 4.1.0 diff --git a/sources b/sources index a3fecb2..1a20bd1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.3.0-2b7c3f9.tgz) = 19df98da80753ef8e86f9838280afcbd4622ab5be1e94d0c1249b842558471cdcaee56404fe5c1e7ae3ab77a5bebc430999190a7db6fd7d9275a088adaf41dc6 +SHA512 (php-bartlett-PHP-CompatInfo-6.4.0-3e23268.tgz) = f38e260ff844fc2cfa8faf59b16970b90c5c7bec5a0539b99486265ac402842e52533ae177c25f5256d889d61eb854941cb1126136667c3c57855364d56519d3 From 66422b4e3a690ac5faadb86fedfe00bf4645d365 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 7 Apr 2022 13:57:27 +0200 Subject: [PATCH 32/64] v6.4.1 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f2b370d..d9be001 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ clog /php-bartlett-PHP-CompatInfo-6.2.0-dcb0d52.tgz /php-bartlett-PHP-CompatInfo-6.3.0-2b7c3f9.tgz /php-bartlett-PHP-CompatInfo-6.4.0-3e23268.tgz +/php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index bb5614e..77488e7 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 3e23268c2c486c8ea1a6e63694c77ade7715c397 +%global gh_commit 07bb648c3b0e853bac78e8e4b946a3aafa0271ac %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.4.0 +%global upstream_version 6.4.1 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -191,6 +191,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Thu Apr 7 2022 Remi Collet - 6.4.1-1 +- update to 6.4.1 + * Wed Apr 6 2022 Remi Collet - 6.4.0-1 - update to 6.4.0 - update bundled bartlett/php-compatinfo-db to 4.2.0 diff --git a/sources b/sources index 1a20bd1..9156559 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.4.0-3e23268.tgz) = f38e260ff844fc2cfa8faf59b16970b90c5c7bec5a0539b99486265ac402842e52533ae177c25f5256d889d61eb854941cb1126136667c3c57855364d56519d3 +SHA512 (php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz) = a607426fcd25494e41ded618917f9645b4054ba959505b48551c2d8d3bff5486c6ce6ce3670eef0874d6cdbafc39dbf410756bc6c3b4541da1ef3f8e99de7916 From e1e8d17107507e8797b216fa219a95b4ee876333 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 20 Apr 2022 14:43:50 +0200 Subject: [PATCH 33/64] update bundled bartlett/php-compatinfo-db to 4.2.0 --- php-bartlett-PHP-CompatInfo.spec | 32 ++++++++++++++++++++------------ sources | 2 +- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 77488e7..7070813 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD and MIT @@ -55,23 +55,25 @@ Requires: php-spl Requires: php-xmlreader # Bundled libraries -Provides: bundled(php-bartlett-php-compatinfo-db) = 4.2.0 +# License BSD-3-Clause +Provides: bundled(php-bartlett-php-compatinfo-db) = 4.3.0 +Provides: bundled(php-nikic-php-parser) = v4.13.2 +# License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 Provides: bundled(php-composer-semver) = 3.3.2 Provides: bundled(php-doctrine-annotations) = 1.13.2 Provides: bundled(php-doctrine-cache) = 2.1.1 Provides: bundled(php-doctrine-collections) = 1.6.8 -Provides: bundled(php-doctrine-common) = 3.2.2 +Provides: bundled(php-doctrine-common) = 3.3.0 Provides: bundled(php-doctrine-dbal) = 3.3.5 Provides: bundled(php-doctrine-deprecations) = v0.5.3 Provides: bundled(php-doctrine-event-manager) = 1.1.1 Provides: bundled(php-doctrine-inflector) = 2.0.4 Provides: bundled(php-doctrine-instantiator) = 1.4.1 Provides: bundled(php-doctrine-lexer) = 1.2.3 -Provides: bundled(php-doctrine-orm) = 2.11.2 -Provides: bundled(php-doctrine-persistence) = 2.4.1 -Provides: bundled(php-nikic-php-parser) = v4.13.2 +Provides: bundled(php-doctrine-orm) = 2.12.0 +Provides: bundled(php-doctrine-persistence) = 3.0.0 Provides: bundled(php-psr-cache) = 1.0.1 Provides: bundled(php-psr-container) = 1.1.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 @@ -148,14 +150,17 @@ php -r ' echo "cant decode json file\n"; exit(3); } - $lic = []; + $res = []; foreach($pkgs["packages"] as $pkg) { - printf("Provides: bundled(php-%s) = %s\n", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); - $lic = array_merge($lic, $pkg["license"]); + $lic = implode(" and ", $pkg["license"]); + if (!isset($res[$lic])) $res[$lic] = []; + $res[$lic][] = sprintf("Provides: bundled(php-%s) = %s", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); } - sort($lic); - printf("\nLicense: %s\n", implode(" and ", array_unique($lic)));' - + foreach($res as $lic => $lib) { + sort($lib); + printf("# License %s\n%s\n", $lic, implode("\n", $lib)); + } +' %build # Nothing @@ -191,6 +196,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Wed Apr 20 2022 Remi Collet - 6.4.1-2 +- update bundled bartlett/php-compatinfo-db to 4.2.0 + * Thu Apr 7 2022 Remi Collet - 6.4.1-1 - update to 6.4.1 diff --git a/sources b/sources index 9156559..f8ef389 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz) = a607426fcd25494e41ded618917f9645b4054ba959505b48551c2d8d3bff5486c6ce6ce3670eef0874d6cdbafc39dbf410756bc6c3b4541da1ef3f8e99de7916 +SHA512 (php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz) = ca1ba8be6c116418bbf1cbb97178877eb4fa62d260688ebab90e69f644d17a3958d2dce3b42984fdbf4014c81e2dfb8dfb568fc49d6e794da800af8cf20745dd From 074c086621bada50bee5c1fc8fef08fd0fe09934 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 13:12:31 +0000 Subject: [PATCH 34/64] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 7070813..360ca44 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD and MIT @@ -196,6 +196,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 6.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Wed Apr 20 2022 Remi Collet - 6.4.1-2 - update bundled bartlett/php-compatinfo-db to 4.2.0 From ae4eb7b26503e79783a842d4720358c2960e7102 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 28 Sep 2022 17:25:14 +0200 Subject: [PATCH 35/64] v6.4.2 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 87 +++++++++++++++++--------------- sources | 2 +- 3 files changed, 47 insertions(+), 43 deletions(-) diff --git a/.gitignore b/.gitignore index d9be001..75aa10d 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,4 @@ clog /php-bartlett-PHP-CompatInfo-6.3.0-2b7c3f9.tgz /php-bartlett-PHP-CompatInfo-6.4.0-3e23268.tgz /php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz +/php-bartlett-PHP-CompatInfo-6.4.2-0413526.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 360ca44..d807baf 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,18 +11,18 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 07bb648c3b0e853bac78e8e4b946a3aafa0271ac +%global gh_commit 041352673a390b3e0822fc4b0e295ac6267dffbf %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.4.1 +%global upstream_version 6.4.2 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 3%{?dist} +Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run License: BSD and MIT @@ -57,60 +57,60 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause Provides: bundled(php-bartlett-php-compatinfo-db) = 4.3.0 -Provides: bundled(php-nikic-php-parser) = v4.13.2 +Provides: bundled(php-nikic-php-parser) = v4.15.1 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 Provides: bundled(php-composer-semver) = 3.3.2 -Provides: bundled(php-doctrine-annotations) = 1.13.2 -Provides: bundled(php-doctrine-cache) = 2.1.1 -Provides: bundled(php-doctrine-collections) = 1.6.8 -Provides: bundled(php-doctrine-common) = 3.3.0 -Provides: bundled(php-doctrine-dbal) = 3.3.5 -Provides: bundled(php-doctrine-deprecations) = v0.5.3 -Provides: bundled(php-doctrine-event-manager) = 1.1.1 -Provides: bundled(php-doctrine-inflector) = 2.0.4 +Provides: bundled(php-doctrine-annotations) = 1.13.3 +Provides: bundled(php-doctrine-cache) = 2.2.0 +Provides: bundled(php-doctrine-collections) = 1.7.3 +Provides: bundled(php-doctrine-common) = 3.4.1 +Provides: bundled(php-doctrine-dbal) = 3.4.5 +Provides: bundled(php-doctrine-deprecations) = v1.0.0 +Provides: bundled(php-doctrine-event-manager) = 1.1.2 +Provides: bundled(php-doctrine-inflector) = 2.0.5 Provides: bundled(php-doctrine-instantiator) = 1.4.1 Provides: bundled(php-doctrine-lexer) = 1.2.3 -Provides: bundled(php-doctrine-orm) = 2.12.0 -Provides: bundled(php-doctrine-persistence) = 3.0.0 +Provides: bundled(php-doctrine-orm) = 2.13.2 +Provides: bundled(php-doctrine-persistence) = 3.0.3 Provides: bundled(php-psr-cache) = 1.0.1 Provides: bundled(php-psr-container) = 1.1.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 1.1.4 Provides: bundled(php-ramsey-collection) = 1.2.2 Provides: bundled(php-ramsey-uuid) = 4.2.3 -Provides: bundled(php-symfony-amqp-messenger) = v5.4.5 -Provides: bundled(php-symfony-cache) = v5.4.7 -Provides: bundled(php-symfony-cache-contracts) = v2.5.1 -Provides: bundled(php-symfony-config) = v5.4.7 -Provides: bundled(php-symfony-console) = v5.4.7 -Provides: bundled(php-symfony-dependency-injection) = v5.4.7 -Provides: bundled(php-symfony-deprecation-contracts) = v2.5.1 -Provides: bundled(php-symfony-doctrine-messenger) = v5.4.7 -Provides: bundled(php-symfony-event-dispatcher) = v5.4.3 -Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.1 -Provides: bundled(php-symfony-filesystem) = v5.4.7 -Provides: bundled(php-symfony-finder) = v5.4.3 -Provides: bundled(php-symfony-http-client) = v5.4.7 -Provides: bundled(php-symfony-http-client-contracts) = v2.5.1 -Provides: bundled(php-symfony-messenger) = v5.4.3 -Provides: bundled(php-symfony-polyfill-ctype) = v1.25.0 -Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.25.0 -Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.25.0 -Provides: bundled(php-symfony-polyfill-mbstring) = v1.25.0 -Provides: bundled(php-symfony-polyfill-php72) = v1.25.0 -Provides: bundled(php-symfony-polyfill-php73) = v1.25.0 -Provides: bundled(php-symfony-polyfill-php80) = v1.25.0 -Provides: bundled(php-symfony-polyfill-php81) = v1.25.0 -Provides: bundled(php-symfony-process) = v5.4.7 +Provides: bundled(php-symfony-amqp-messenger) = v5.4.11 +Provides: bundled(php-symfony-cache) = v5.4.11 +Provides: bundled(php-symfony-cache-contracts) = v2.5.2 +Provides: bundled(php-symfony-config) = v5.4.11 +Provides: bundled(php-symfony-console) = v5.4.12 +Provides: bundled(php-symfony-dependency-injection) = v5.4.11 +Provides: bundled(php-symfony-deprecation-contracts) = v2.5.2 +Provides: bundled(php-symfony-doctrine-messenger) = v5.4.12 +Provides: bundled(php-symfony-event-dispatcher) = v5.4.9 +Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.2 +Provides: bundled(php-symfony-filesystem) = v5.4.12 +Provides: bundled(php-symfony-finder) = v5.4.11 +Provides: bundled(php-symfony-http-client) = v5.4.12 +Provides: bundled(php-symfony-http-client-contracts) = v2.5.2 +Provides: bundled(php-symfony-messenger) = v5.4.11 +Provides: bundled(php-symfony-polyfill-ctype) = v1.26.0 +Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.26.0 +Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.26.0 +Provides: bundled(php-symfony-polyfill-mbstring) = v1.26.0 +Provides: bundled(php-symfony-polyfill-php72) = v1.26.0 +Provides: bundled(php-symfony-polyfill-php73) = v1.26.0 +Provides: bundled(php-symfony-polyfill-php80) = v1.26.0 +Provides: bundled(php-symfony-polyfill-php81) = v1.26.0 +Provides: bundled(php-symfony-process) = v5.4.11 Provides: bundled(php-symfony-redis-messenger) = v5.4.6 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v5.4.7 -Provides: bundled(php-symfony-service-contracts) = v2.5.1 +Provides: bundled(php-symfony-serializer) = v5.4.12 +Provides: bundled(php-symfony-service-contracts) = v2.5.2 Provides: bundled(php-symfony-stopwatch) = v5.4.5 -Provides: bundled(php-symfony-string) = v5.4.3 -Provides: bundled(php-symfony-var-exporter) = v5.4.7 +Provides: bundled(php-symfony-string) = v5.4.12 +Provides: bundled(php-symfony-var-exporter) = v5.4.10 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -196,6 +196,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Tue Sep 27 2022 Remi Collet - 6.4.2-1 +- update to 6.4.2 + * Fri Jul 22 2022 Fedora Release Engineering - 6.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index f8ef389..ca100e1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz) = ca1ba8be6c116418bbf1cbb97178877eb4fa62d260688ebab90e69f644d17a3958d2dce3b42984fdbf4014c81e2dfb8dfb568fc49d6e794da800af8cf20745dd +SHA512 (php-bartlett-PHP-CompatInfo-6.4.2-0413526.tgz) = 411f65565bf02a6d298095265bb776b435e97058ec28fabaab9ee77a1cb82d2f64a7b55b668fa24c254bf168e6e34fd4260a35b2682fe6e9cdf0c623a699b72e From 43b731511703788fef75bbe3cd9f536011660c79 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 25 Oct 2022 14:59:30 +0200 Subject: [PATCH 36/64] v6.5.2 --- .gitignore | 1 + makesrc.sh | 2 + php-bartlett-PHP-CompatInfo.spec | 76 +++++++++++++++++--------------- sources | 2 +- 4 files changed, 44 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index 75aa10d..64f9b29 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,4 @@ clog /php-bartlett-PHP-CompatInfo-6.4.0-3e23268.tgz /php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz /php-bartlett-PHP-CompatInfo-6.4.2-0413526.tgz +/php-bartlett-PHP-CompatInfo-6.5.2-832e40e.tgz diff --git a/makesrc.sh b/makesrc.sh index cfb4a17..124d01a 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -10,6 +10,7 @@ SHORT=${COMMIT:0:7} echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Commit=$COMMIT\n" echo "Cloning..." +rm -rf $HOME/.cache/bartlett git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT echo "Getting commit..." @@ -32,6 +33,7 @@ tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs $PROJECT-$COMMIT echo "Cleaning..." rm -rf $PROJECT-$COMMIT +rm -rf $HOME/.cache/bartlett echo "Done." diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index d807baf..6efeea8 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 041352673a390b3e0822fc4b0e295ac6267dffbf +%global gh_commit 832e40edc6e818f10f432803ddd9350b37f07d8f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.4.2 +%global upstream_version 6.5.2 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -25,7 +25,8 @@ Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run -License: BSD and MIT +# see bundled libraries list below +License: BSD-3-Clause and MIT URL: https://github.com/llaville/php-compatinfo Source0: %{name}-%{version}-%{gh_short}.tgz # Script for fedora-review @@ -56,7 +57,7 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 4.3.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 4.6.1 Provides: bundled(php-nikic-php-parser) = v4.15.1 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 @@ -64,37 +65,37 @@ Provides: bundled(php-brick-math) = 0.9.3 Provides: bundled(php-composer-semver) = 3.3.2 Provides: bundled(php-doctrine-annotations) = 1.13.3 Provides: bundled(php-doctrine-cache) = 2.2.0 -Provides: bundled(php-doctrine-collections) = 1.7.3 -Provides: bundled(php-doctrine-common) = 3.4.1 -Provides: bundled(php-doctrine-dbal) = 3.4.5 +Provides: bundled(php-doctrine-collections) = 1.8.0 +Provides: bundled(php-doctrine-common) = 3.4.3 +Provides: bundled(php-doctrine-dbal) = 3.5.1 Provides: bundled(php-doctrine-deprecations) = v1.0.0 -Provides: bundled(php-doctrine-event-manager) = 1.1.2 -Provides: bundled(php-doctrine-inflector) = 2.0.5 +Provides: bundled(php-doctrine-event-manager) = 1.2.0 +Provides: bundled(php-doctrine-inflector) = 2.0.6 Provides: bundled(php-doctrine-instantiator) = 1.4.1 Provides: bundled(php-doctrine-lexer) = 1.2.3 -Provides: bundled(php-doctrine-orm) = 2.13.2 -Provides: bundled(php-doctrine-persistence) = 3.0.3 +Provides: bundled(php-doctrine-orm) = 2.13.3 +Provides: bundled(php-doctrine-persistence) = 3.0.4 Provides: bundled(php-psr-cache) = 1.0.1 Provides: bundled(php-psr-container) = 1.1.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 1.1.4 Provides: bundled(php-ramsey-collection) = 1.2.2 Provides: bundled(php-ramsey-uuid) = 4.2.3 -Provides: bundled(php-symfony-amqp-messenger) = v5.4.11 -Provides: bundled(php-symfony-cache) = v5.4.11 +Provides: bundled(php-symfony-amqp-messenger) = v5.4.13 +Provides: bundled(php-symfony-cache) = v5.4.13 Provides: bundled(php-symfony-cache-contracts) = v2.5.2 Provides: bundled(php-symfony-config) = v5.4.11 -Provides: bundled(php-symfony-console) = v5.4.12 -Provides: bundled(php-symfony-dependency-injection) = v5.4.11 +Provides: bundled(php-symfony-console) = v5.4.14 +Provides: bundled(php-symfony-dependency-injection) = v5.4.13 Provides: bundled(php-symfony-deprecation-contracts) = v2.5.2 Provides: bundled(php-symfony-doctrine-messenger) = v5.4.12 Provides: bundled(php-symfony-event-dispatcher) = v5.4.9 Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.2 -Provides: bundled(php-symfony-filesystem) = v5.4.12 +Provides: bundled(php-symfony-filesystem) = v5.4.13 Provides: bundled(php-symfony-finder) = v5.4.11 -Provides: bundled(php-symfony-http-client) = v5.4.12 +Provides: bundled(php-symfony-http-client) = v5.4.14 Provides: bundled(php-symfony-http-client-contracts) = v2.5.2 -Provides: bundled(php-symfony-messenger) = v5.4.11 +Provides: bundled(php-symfony-messenger) = v5.4.14 Provides: bundled(php-symfony-polyfill-ctype) = v1.26.0 Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.26.0 Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.26.0 @@ -104,12 +105,12 @@ Provides: bundled(php-symfony-polyfill-php73) = v1.26.0 Provides: bundled(php-symfony-polyfill-php80) = v1.26.0 Provides: bundled(php-symfony-polyfill-php81) = v1.26.0 Provides: bundled(php-symfony-process) = v5.4.11 -Provides: bundled(php-symfony-redis-messenger) = v5.4.6 +Provides: bundled(php-symfony-redis-messenger) = v5.4.13 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v5.4.12 +Provides: bundled(php-symfony-serializer) = v5.4.14 Provides: bundled(php-symfony-service-contracts) = v2.5.2 -Provides: bundled(php-symfony-stopwatch) = v5.4.5 -Provides: bundled(php-symfony-string) = v5.4.12 +Provides: bundled(php-symfony-stopwatch) = v5.4.13 +Provides: bundled(php-symfony-string) = v5.4.14 Provides: bundled(php-symfony-var-exporter) = v5.4.10 Provides: phpcompatinfo = %{version} @@ -144,22 +145,22 @@ rm -r tests : List bundled libraries and Licenses php -r ' - $pkgs = file_get_contents("vendor/composer/installed.json"); - $pkgs = json_decode($pkgs, true); - if (!is_array($pkgs) || !isset($pkgs["packages"])) { + $pkgs = file_get_contents("vendor/composer/installed.json"); + $pkgs = json_decode($pkgs, true); + if (!is_array($pkgs) || !isset($pkgs["packages"])) { echo "cant decode json file\n"; - exit(3); - } - $res = []; + exit(3); + } + $res = []; foreach($pkgs["packages"] as $pkg) { - $lic = implode(" and ", $pkg["license"]); - if (!isset($res[$lic])) $res[$lic] = []; - $res[$lic][] = sprintf("Provides: bundled(php-%s) = %s", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); - } - foreach($res as $lic => $lib) { - sort($lib); - printf("# License %s\n%s\n", $lic, implode("\n", $lib)); - } + $lic = implode(" and ", $pkg["license"]); + if (!isset($res[$lic])) $res[$lic] = []; + $res[$lic][] = sprintf("Provides: bundled(php-%s) = %s", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); + } + foreach($res as $lic => $lib) { + sort($lib); + printf("# License %s\n%s\n", $lic, implode("\n", $lib)); + } ' %build @@ -196,6 +197,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Tue Oct 25 2022 Remi Collet - 6.5.2-1 +- update to 6.5.2 + * Tue Sep 27 2022 Remi Collet - 6.4.2-1 - update to 6.4.2 diff --git a/sources b/sources index ca100e1..e841691 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.4.2-0413526.tgz) = 411f65565bf02a6d298095265bb776b435e97058ec28fabaab9ee77a1cb82d2f64a7b55b668fa24c254bf168e6e34fd4260a35b2682fe6e9cdf0c623a699b72e +SHA512 (php-bartlett-PHP-CompatInfo-6.5.2-832e40e.tgz) = feb10b8e9b3f4c72ebb373e9316d7c3d0bd79ad1108e834ae74140907de1ed6e6d0fd1e27a9a03b4a9cc5ae0b66d5f36e8aa923c00ca8e47ef6dc0b567e718a7 From bc6ccaf7f637880a10d06cfe22ed04c7096cd662 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 7 Nov 2022 12:16:50 +0100 Subject: [PATCH 37/64] update to 6.5.3 update bundled bartlett/php-compatinfo-db to 4.8.0 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 26 +++++++++++++++----------- sources | 2 +- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 64f9b29..c01f64c 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ clog /php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz /php-bartlett-PHP-CompatInfo-6.4.2-0413526.tgz /php-bartlett-PHP-CompatInfo-6.5.2-832e40e.tgz +/php-bartlett-PHP-CompatInfo-6.5.3-e2bc72e.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 6efeea8..dec4927 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 832e40edc6e818f10f432803ddd9350b37f07d8f +%global gh_commit e2bc72e017addab11d68e4733d84c77d3ff30b19 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.5.2 +%global upstream_version 6.5.3 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -25,7 +25,7 @@ Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run -# see bundled libraries list below +# SPDX: see bundled libraries list below License: BSD-3-Clause and MIT URL: https://github.com/llaville/php-compatinfo Source0: %{name}-%{version}-%{gh_short}.tgz @@ -57,7 +57,7 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 4.6.1 +Provides: bundled(php-bartlett-php-compatinfo-db) = 4.8.0 Provides: bundled(php-nikic-php-parser) = v4.15.1 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 @@ -81,11 +81,11 @@ Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 1.1.4 Provides: bundled(php-ramsey-collection) = 1.2.2 Provides: bundled(php-ramsey-uuid) = 4.2.3 -Provides: bundled(php-symfony-amqp-messenger) = v5.4.13 -Provides: bundled(php-symfony-cache) = v5.4.13 +Provides: bundled(php-symfony-amqp-messenger) = v5.4.15 +Provides: bundled(php-symfony-cache) = v5.4.15 Provides: bundled(php-symfony-cache-contracts) = v2.5.2 Provides: bundled(php-symfony-config) = v5.4.11 -Provides: bundled(php-symfony-console) = v5.4.14 +Provides: bundled(php-symfony-console) = v5.4.15 Provides: bundled(php-symfony-dependency-injection) = v5.4.13 Provides: bundled(php-symfony-deprecation-contracts) = v2.5.2 Provides: bundled(php-symfony-doctrine-messenger) = v5.4.12 @@ -93,7 +93,7 @@ Provides: bundled(php-symfony-event-dispatcher) = v5.4.9 Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.2 Provides: bundled(php-symfony-filesystem) = v5.4.13 Provides: bundled(php-symfony-finder) = v5.4.11 -Provides: bundled(php-symfony-http-client) = v5.4.14 +Provides: bundled(php-symfony-http-client) = v5.4.15 Provides: bundled(php-symfony-http-client-contracts) = v2.5.2 Provides: bundled(php-symfony-messenger) = v5.4.14 Provides: bundled(php-symfony-polyfill-ctype) = v1.26.0 @@ -105,12 +105,12 @@ Provides: bundled(php-symfony-polyfill-php73) = v1.26.0 Provides: bundled(php-symfony-polyfill-php80) = v1.26.0 Provides: bundled(php-symfony-polyfill-php81) = v1.26.0 Provides: bundled(php-symfony-process) = v5.4.11 -Provides: bundled(php-symfony-redis-messenger) = v5.4.13 +Provides: bundled(php-symfony-redis-messenger) = v5.4.15 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v5.4.14 +Provides: bundled(php-symfony-serializer) = v5.4.15 Provides: bundled(php-symfony-service-contracts) = v2.5.2 Provides: bundled(php-symfony-stopwatch) = v5.4.13 -Provides: bundled(php-symfony-string) = v5.4.14 +Provides: bundled(php-symfony-string) = v5.4.15 Provides: bundled(php-symfony-var-exporter) = v5.4.10 Provides: phpcompatinfo = %{version} @@ -197,6 +197,10 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Mon Nov 7 2022 Remi Collet - 6.5.3-1 +- update to 6.5.3 +- update bundled bartlett/php-compatinfo-db to 4.8.0 + * Tue Oct 25 2022 Remi Collet - 6.5.2-1 - update to 6.5.2 diff --git a/sources b/sources index e841691..b6c064a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.5.2-832e40e.tgz) = feb10b8e9b3f4c72ebb373e9316d7c3d0bd79ad1108e834ae74140907de1ed6e6d0fd1e27a9a03b4a9cc5ae0b66d5f36e8aa923c00ca8e47ef6dc0b567e718a7 +SHA512 (php-bartlett-PHP-CompatInfo-6.5.3-e2bc72e.tgz) = 1a611ceba7ff85e1d2d90617d112347db090e8b51c686087b6e8c56f2a7d76bf2d1c9ec8bf3bc189af07d31e62566d82b3fd9eb04a2d15390eb919966d9105d2 From 5075642278658949171963d603109e9d847c1e37 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 14 Dec 2022 11:17:38 +0100 Subject: [PATCH 38/64] update to 6.5.4 update bundled bartlett/php-compatinfo-db to 4.10.0 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 44 +++++++++++++++++--------------- sources | 2 +- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index c01f64c..6ed0492 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,4 @@ clog /php-bartlett-PHP-CompatInfo-6.4.2-0413526.tgz /php-bartlett-PHP-CompatInfo-6.5.2-832e40e.tgz /php-bartlett-PHP-CompatInfo-6.5.3-e2bc72e.tgz +/php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index dec4927..7f0f98f 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit e2bc72e017addab11d68e4733d84c77d3ff30b19 +%global gh_commit d3e93196393b6efe6f359d128ed3638d40687574 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.5.3 +%global upstream_version 6.5.4 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -57,13 +57,13 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 4.8.0 -Provides: bundled(php-nikic-php-parser) = v4.15.1 +Provides: bundled(php-bartlett-php-compatinfo-db) = 4.10.0 +Provides: bundled(php-nikic-php-parser) = v4.15.2 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 Provides: bundled(php-composer-semver) = 3.3.2 -Provides: bundled(php-doctrine-annotations) = 1.13.3 +Provides: bundled(php-doctrine-annotations) = 1.14.1 Provides: bundled(php-doctrine-cache) = 2.2.0 Provides: bundled(php-doctrine-collections) = 1.8.0 Provides: bundled(php-doctrine-common) = 3.4.3 @@ -73,8 +73,8 @@ Provides: bundled(php-doctrine-event-manager) = 1.2.0 Provides: bundled(php-doctrine-inflector) = 2.0.6 Provides: bundled(php-doctrine-instantiator) = 1.4.1 Provides: bundled(php-doctrine-lexer) = 1.2.3 -Provides: bundled(php-doctrine-orm) = 2.13.3 -Provides: bundled(php-doctrine-persistence) = 3.0.4 +Provides: bundled(php-doctrine-orm) = 2.13.4 +Provides: bundled(php-doctrine-persistence) = 3.1.1 Provides: bundled(php-psr-cache) = 1.0.1 Provides: bundled(php-psr-container) = 1.1.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 @@ -85,25 +85,25 @@ Provides: bundled(php-symfony-amqp-messenger) = v5.4.15 Provides: bundled(php-symfony-cache) = v5.4.15 Provides: bundled(php-symfony-cache-contracts) = v2.5.2 Provides: bundled(php-symfony-config) = v5.4.11 -Provides: bundled(php-symfony-console) = v5.4.15 -Provides: bundled(php-symfony-dependency-injection) = v5.4.13 +Provides: bundled(php-symfony-console) = v5.4.16 +Provides: bundled(php-symfony-dependency-injection) = v5.4.16 Provides: bundled(php-symfony-deprecation-contracts) = v2.5.2 -Provides: bundled(php-symfony-doctrine-messenger) = v5.4.12 +Provides: bundled(php-symfony-doctrine-messenger) = v5.4.16 Provides: bundled(php-symfony-event-dispatcher) = v5.4.9 Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.2 Provides: bundled(php-symfony-filesystem) = v5.4.13 Provides: bundled(php-symfony-finder) = v5.4.11 -Provides: bundled(php-symfony-http-client) = v5.4.15 +Provides: bundled(php-symfony-http-client) = v5.4.16 Provides: bundled(php-symfony-http-client-contracts) = v2.5.2 -Provides: bundled(php-symfony-messenger) = v5.4.14 -Provides: bundled(php-symfony-polyfill-ctype) = v1.26.0 -Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.26.0 -Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.26.0 -Provides: bundled(php-symfony-polyfill-mbstring) = v1.26.0 -Provides: bundled(php-symfony-polyfill-php72) = v1.26.0 -Provides: bundled(php-symfony-polyfill-php73) = v1.26.0 -Provides: bundled(php-symfony-polyfill-php80) = v1.26.0 -Provides: bundled(php-symfony-polyfill-php81) = v1.26.0 +Provides: bundled(php-symfony-messenger) = v5.4.16 +Provides: bundled(php-symfony-polyfill-ctype) = v1.27.0 +Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.27.0 +Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.27.0 +Provides: bundled(php-symfony-polyfill-mbstring) = v1.27.0 +Provides: bundled(php-symfony-polyfill-php72) = v1.27.0 +Provides: bundled(php-symfony-polyfill-php73) = v1.27.0 +Provides: bundled(php-symfony-polyfill-php80) = v1.27.0 +Provides: bundled(php-symfony-polyfill-php81) = v1.27.0 Provides: bundled(php-symfony-process) = v5.4.11 Provides: bundled(php-symfony-redis-messenger) = v5.4.15 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 @@ -197,6 +197,10 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Wed Dec 14 2022 Remi Collet - 6.5.4-1 +- update to 6.5.4 +- update bundled bartlett/php-compatinfo-db to 4.10.0 + * Mon Nov 7 2022 Remi Collet - 6.5.3-1 - update to 6.5.3 - update bundled bartlett/php-compatinfo-db to 4.8.0 diff --git a/sources b/sources index b6c064a..d767ddb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.5.3-e2bc72e.tgz) = 1a611ceba7ff85e1d2d90617d112347db090e8b51c686087b6e8c56f2a7d76bf2d1c9ec8bf3bc189af07d31e62566d82b3fd9eb04a2d15390eb919966d9105d2 +SHA512 (php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz) = 022f503021107acaca67d1f326ff69de0bf4797fc1a9da7bc786b49eceb1d6a5ecdfb069d77701c93e7c1ffa10baca25e9f6d714fad26547816d4cc115b79ec6 From 4da8eb61a8721661b4219521b317b4ae1680013c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 10 Jan 2023 15:14:40 +0100 Subject: [PATCH 39/64] update bundled bartlett/php-compatinfo-db to 4.11.0 --- php-bartlett-PHP-CompatInfo.spec | 45 +++++++++++++++++--------------- sources | 2 +- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 7f0f98f..f964042 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # -# Copyright (c) 2011-2022 Remi Collet +# Copyright (c) 2011-2023 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -57,45 +57,45 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 4.10.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 4.11.0 Provides: bundled(php-nikic-php-parser) = v4.15.2 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.9.3 Provides: bundled(php-composer-semver) = 3.3.2 -Provides: bundled(php-doctrine-annotations) = 1.14.1 +Provides: bundled(php-doctrine-annotations) = 1.14.2 Provides: bundled(php-doctrine-cache) = 2.2.0 Provides: bundled(php-doctrine-collections) = 1.8.0 Provides: bundled(php-doctrine-common) = 3.4.3 -Provides: bundled(php-doctrine-dbal) = 3.5.1 +Provides: bundled(php-doctrine-dbal) = 3.5.2 Provides: bundled(php-doctrine-deprecations) = v1.0.0 Provides: bundled(php-doctrine-event-manager) = 1.2.0 Provides: bundled(php-doctrine-inflector) = 2.0.6 -Provides: bundled(php-doctrine-instantiator) = 1.4.1 -Provides: bundled(php-doctrine-lexer) = 1.2.3 -Provides: bundled(php-doctrine-orm) = 2.13.4 -Provides: bundled(php-doctrine-persistence) = 3.1.1 +Provides: bundled(php-doctrine-instantiator) = 1.5.0 +Provides: bundled(php-doctrine-lexer) = 2.1.0 +Provides: bundled(php-doctrine-orm) = 2.14.0 +Provides: bundled(php-doctrine-persistence) = 3.1.2 Provides: bundled(php-psr-cache) = 1.0.1 Provides: bundled(php-psr-container) = 1.1.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 1.1.4 -Provides: bundled(php-ramsey-collection) = 1.2.2 +Provides: bundled(php-ramsey-collection) = 1.3.0 Provides: bundled(php-ramsey-uuid) = 4.2.3 -Provides: bundled(php-symfony-amqp-messenger) = v5.4.15 -Provides: bundled(php-symfony-cache) = v5.4.15 +Provides: bundled(php-symfony-amqp-messenger) = v5.4.17 +Provides: bundled(php-symfony-cache) = v5.4.18 Provides: bundled(php-symfony-cache-contracts) = v2.5.2 Provides: bundled(php-symfony-config) = v5.4.11 -Provides: bundled(php-symfony-console) = v5.4.16 -Provides: bundled(php-symfony-dependency-injection) = v5.4.16 +Provides: bundled(php-symfony-console) = v5.4.17 +Provides: bundled(php-symfony-dependency-injection) = v5.4.17 Provides: bundled(php-symfony-deprecation-contracts) = v2.5.2 Provides: bundled(php-symfony-doctrine-messenger) = v5.4.16 -Provides: bundled(php-symfony-event-dispatcher) = v5.4.9 +Provides: bundled(php-symfony-event-dispatcher) = v5.4.17 Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.2 Provides: bundled(php-symfony-filesystem) = v5.4.13 -Provides: bundled(php-symfony-finder) = v5.4.11 -Provides: bundled(php-symfony-http-client) = v5.4.16 +Provides: bundled(php-symfony-finder) = v5.4.17 +Provides: bundled(php-symfony-http-client) = v5.4.17 Provides: bundled(php-symfony-http-client-contracts) = v2.5.2 -Provides: bundled(php-symfony-messenger) = v5.4.16 +Provides: bundled(php-symfony-messenger) = v5.4.17 Provides: bundled(php-symfony-polyfill-ctype) = v1.27.0 Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.27.0 Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.27.0 @@ -107,11 +107,11 @@ Provides: bundled(php-symfony-polyfill-php81) = v1.27.0 Provides: bundled(php-symfony-process) = v5.4.11 Provides: bundled(php-symfony-redis-messenger) = v5.4.15 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v5.4.15 +Provides: bundled(php-symfony-serializer) = v5.4.17 Provides: bundled(php-symfony-service-contracts) = v2.5.2 Provides: bundled(php-symfony-stopwatch) = v5.4.13 -Provides: bundled(php-symfony-string) = v5.4.15 -Provides: bundled(php-symfony-var-exporter) = v5.4.10 +Provides: bundled(php-symfony-string) = v5.4.17 +Provides: bundled(php-symfony-var-exporter) = v5.4.17 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -197,6 +197,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Tue Jan 10 2023 Remi Collet - 6.5.4-2 +- update bundled bartlett/php-compatinfo-db to 4.11.0 + * Wed Dec 14 2022 Remi Collet - 6.5.4-1 - update to 6.5.4 - update bundled bartlett/php-compatinfo-db to 4.10.0 diff --git a/sources b/sources index d767ddb..a698cb1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz) = 022f503021107acaca67d1f326ff69de0bf4797fc1a9da7bc786b49eceb1d6a5ecdfb069d77701c93e7c1ffa10baca25e9f6d714fad26547816d4cc115b79ec6 +SHA512 (php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz) = d1a84f8ce0c5eaeb4b596e16b99e1f91554e0cf3dbe0df8950ec5db289d5a59e26b8a050f294c361701744e1a6472aec9c94662e462da3a6c667fc86b50e3bb4 From ed90792fc2507243a26ba2a5016f87a4bf7cc1fc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 08:17:57 +0000 Subject: [PATCH 40/64] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index f964042..be5a595 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -197,6 +197,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 6.5.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Tue Jan 10 2023 Remi Collet - 6.5.4-2 - update bundled bartlett/php-compatinfo-db to 4.11.0 From 564879ef1f8dab95848b560f7cf23d690f996db8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 16 May 2023 11:51:38 +0200 Subject: [PATCH 41/64] update to 7.0.0 raise dependency on PHP 8.0 update bundled bartlett/php-compatinfo-db to 5.5.0 --- .gitignore | 1 + makesrc.sh | 1 + php-bartlett-PHP-CompatInfo.spec | 87 +++++++++++++++++--------------- sources | 2 +- 4 files changed, 49 insertions(+), 42 deletions(-) diff --git a/.gitignore b/.gitignore index 6ed0492..e38ab10 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,4 @@ clog /php-bartlett-PHP-CompatInfo-6.5.2-832e40e.tgz /php-bartlett-PHP-CompatInfo-6.5.3-e2bc72e.tgz /php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz +/php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz diff --git a/makesrc.sh b/makesrc.sh index 124d01a..381e35a 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -18,6 +18,7 @@ echo "Getting commit..." git checkout $COMMIT || exit 1 cp composer.json ../ + composer config platform.php 8.0.99 composer install --no-interaction --no-progress --no-dev --optimize-autoloader cp vendor/composer/installed.json ../ diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index be5a595..9a054d2 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,7 +1,7 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # # Copyright (c) 2011-2023 Remi Collet -# License: CC-BY-SA +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries @@ -11,18 +11,18 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit d3e93196393b6efe6f359d128ed3638d40687574 +%global gh_commit 7b053000a684d1fa3840e0ab3c5833fecdf02dc3 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 6.5.4 +%global upstream_version 7.0.0 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 3%{?dist} +Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -38,11 +38,11 @@ Source9: makesrc.sh Patch0: %{name}-6.0.0-rpm.patch BuildArch: noarch -BuildRequires: php(language) >= 7.4 +BuildRequires: php(language) >= 8.0 BuildRequires: php-cli BuildRequires: php-json -Requires: php(language) >= 7.4 +Requires: php(language) >= 8.0 Requires: php-cli Requires: php-dom Requires: php-json @@ -57,61 +57,57 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 4.11.0 -Provides: bundled(php-nikic-php-parser) = v4.15.2 +Provides: bundled(php-bartlett-php-compatinfo-db) = 5.5.0 +Provides: bundled(php-nikic-php-parser) = v4.15.4 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 -Provides: bundled(php-brick-math) = 0.9.3 +Provides: bundled(php-brick-math) = 0.11.0 Provides: bundled(php-composer-semver) = 3.3.2 -Provides: bundled(php-doctrine-annotations) = 1.14.2 +Provides: bundled(php-doctrine-annotations) = 1.14.3 Provides: bundled(php-doctrine-cache) = 2.2.0 Provides: bundled(php-doctrine-collections) = 1.8.0 Provides: bundled(php-doctrine-common) = 3.4.3 -Provides: bundled(php-doctrine-dbal) = 3.5.2 +Provides: bundled(php-doctrine-dbal) = 3.6.2 Provides: bundled(php-doctrine-deprecations) = v1.0.0 Provides: bundled(php-doctrine-event-manager) = 1.2.0 Provides: bundled(php-doctrine-inflector) = 2.0.6 Provides: bundled(php-doctrine-instantiator) = 1.5.0 Provides: bundled(php-doctrine-lexer) = 2.1.0 -Provides: bundled(php-doctrine-orm) = 2.14.0 -Provides: bundled(php-doctrine-persistence) = 3.1.2 -Provides: bundled(php-psr-cache) = 1.0.1 -Provides: bundled(php-psr-container) = 1.1.2 +Provides: bundled(php-doctrine-orm) = 2.15.1 +Provides: bundled(php-doctrine-persistence) = 3.1.4 +Provides: bundled(php-psr-cache) = 3.0.0 +Provides: bundled(php-psr-container) = 2.0.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 -Provides: bundled(php-psr-log) = 1.1.4 +Provides: bundled(php-psr-log) = 3.0.0 Provides: bundled(php-ramsey-collection) = 1.3.0 -Provides: bundled(php-ramsey-uuid) = 4.2.3 -Provides: bundled(php-symfony-amqp-messenger) = v5.4.17 -Provides: bundled(php-symfony-cache) = v5.4.18 -Provides: bundled(php-symfony-cache-contracts) = v2.5.2 -Provides: bundled(php-symfony-config) = v5.4.11 -Provides: bundled(php-symfony-console) = v5.4.17 -Provides: bundled(php-symfony-dependency-injection) = v5.4.17 -Provides: bundled(php-symfony-deprecation-contracts) = v2.5.2 -Provides: bundled(php-symfony-doctrine-messenger) = v5.4.16 -Provides: bundled(php-symfony-event-dispatcher) = v5.4.17 -Provides: bundled(php-symfony-event-dispatcher-contracts) = v2.5.2 -Provides: bundled(php-symfony-filesystem) = v5.4.13 -Provides: bundled(php-symfony-finder) = v5.4.17 -Provides: bundled(php-symfony-http-client) = v5.4.17 -Provides: bundled(php-symfony-http-client-contracts) = v2.5.2 -Provides: bundled(php-symfony-messenger) = v5.4.17 +Provides: bundled(php-ramsey-uuid) = 4.7.4 +Provides: bundled(php-symfony-cache) = v6.0.19 +Provides: bundled(php-symfony-cache-contracts) = v3.0.2 +Provides: bundled(php-symfony-config) = v6.0.19 +Provides: bundled(php-symfony-console) = v6.0.19 +Provides: bundled(php-symfony-dependency-injection) = v6.0.20 +Provides: bundled(php-symfony-deprecation-contracts) = v3.0.2 +Provides: bundled(php-symfony-event-dispatcher) = v6.0.19 +Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.0.2 +Provides: bundled(php-symfony-filesystem) = v6.0.19 +Provides: bundled(php-symfony-finder) = v6.0.19 +Provides: bundled(php-symfony-http-client) = v6.0.20 +Provides: bundled(php-symfony-http-client-contracts) = v3.0.2 +Provides: bundled(php-symfony-messenger) = v6.0.19 Provides: bundled(php-symfony-polyfill-ctype) = v1.27.0 Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.27.0 Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.27.0 Provides: bundled(php-symfony-polyfill-mbstring) = v1.27.0 Provides: bundled(php-symfony-polyfill-php72) = v1.27.0 -Provides: bundled(php-symfony-polyfill-php73) = v1.27.0 Provides: bundled(php-symfony-polyfill-php80) = v1.27.0 Provides: bundled(php-symfony-polyfill-php81) = v1.27.0 -Provides: bundled(php-symfony-process) = v5.4.11 -Provides: bundled(php-symfony-redis-messenger) = v5.4.15 +Provides: bundled(php-symfony-process) = v6.0.19 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v5.4.17 -Provides: bundled(php-symfony-service-contracts) = v2.5.2 -Provides: bundled(php-symfony-stopwatch) = v5.4.13 -Provides: bundled(php-symfony-string) = v5.4.17 -Provides: bundled(php-symfony-var-exporter) = v5.4.17 +Provides: bundled(php-symfony-serializer) = v6.0.19 +Provides: bundled(php-symfony-service-contracts) = v3.0.2 +Provides: bundled(php-symfony-stopwatch) = v6.0.19 +Provides: bundled(php-symfony-string) = v6.0.19 +Provides: bundled(php-symfony-var-exporter) = v6.0.19 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -126,7 +122,7 @@ show content of dictionary references. %prep %setup -q -n %{gh_project}-%{gh_commit} -%patch0 -p1 -b .rpm +%patch -P0 -p1 -b .rpm # https://github.com/llaville/php-compatinfo-db/issues/112 sed -e 's/touch/@touch/' -i vendor/bartlett/php-compatinfo-db/config/set/default.php @@ -142,6 +138,10 @@ do done done rm -r tests +rm -r .github +rm -r .changes +rm -r vendor/bartlett/*/.github +rm -r vendor/bartlett/*/.changes : List bundled libraries and Licenses php -r ' @@ -197,6 +197,11 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Tue May 16 2023 Remi Collet - 7.0.0-1 +- update to 7.0.0 +- raise dependency on PHP 8.0 +- update bundled bartlett/php-compatinfo-db to 5.5.0 + * Fri Jan 20 2023 Fedora Release Engineering - 6.5.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index a698cb1..bf22db2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz) = d1a84f8ce0c5eaeb4b596e16b99e1f91554e0cf3dbe0df8950ec5db289d5a59e26b8a050f294c361701744e1a6472aec9c94662e462da3a6c667fc86b50e3bb4 +SHA512 (php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz) = 9917308a1e972b846e0daa822656c03d0a3d4e5dffd2db16c2716e195fa07a3abb2bee434f5a6d5e9aa83272c5b99652eedb0a61468c29b87634f0bea369e67b From 1bc9d0e9a15d0c22b88f867c4a036df8ba4aaa8b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 04:05:17 +0000 Subject: [PATCH 42/64] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 9a054d2..89cda5f 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -197,6 +197,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 7.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Tue May 16 2023 Remi Collet - 7.0.0-1 - update to 7.0.0 - raise dependency on PHP 8.0 From e918577e9f6ea82ee1c636a639959ba449467d7c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 13 Nov 2023 12:05:04 +0100 Subject: [PATCH 43/64] update bundled bartlett/php-compatinfo-db to 5.12.0 --- php-bartlett-PHP-CompatInfo.spec | 37 +++++++++++++++++--------------- sources | 2 +- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 89cda5f..67472ab 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -57,30 +57,30 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 5.5.0 -Provides: bundled(php-nikic-php-parser) = v4.15.4 +Provides: bundled(php-bartlett-php-compatinfo-db) = 5.12.0 +Provides: bundled(php-nikic-php-parser) = v4.17.1 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.11.0 -Provides: bundled(php-composer-semver) = 3.3.2 +Provides: bundled(php-composer-semver) = 3.4.0 Provides: bundled(php-doctrine-annotations) = 1.14.3 Provides: bundled(php-doctrine-cache) = 2.2.0 Provides: bundled(php-doctrine-collections) = 1.8.0 Provides: bundled(php-doctrine-common) = 3.4.3 -Provides: bundled(php-doctrine-dbal) = 3.6.2 -Provides: bundled(php-doctrine-deprecations) = v1.0.0 +Provides: bundled(php-doctrine-dbal) = 3.7.1 +Provides: bundled(php-doctrine-deprecations) = 1.1.2 Provides: bundled(php-doctrine-event-manager) = 1.2.0 -Provides: bundled(php-doctrine-inflector) = 2.0.6 +Provides: bundled(php-doctrine-inflector) = 2.0.8 Provides: bundled(php-doctrine-instantiator) = 1.5.0 Provides: bundled(php-doctrine-lexer) = 2.1.0 -Provides: bundled(php-doctrine-orm) = 2.15.1 -Provides: bundled(php-doctrine-persistence) = 3.1.4 +Provides: bundled(php-doctrine-orm) = 2.16.2 +Provides: bundled(php-doctrine-persistence) = 3.2.0 Provides: bundled(php-psr-cache) = 3.0.0 Provides: bundled(php-psr-container) = 2.0.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 3.0.0 Provides: bundled(php-ramsey-collection) = 1.3.0 -Provides: bundled(php-ramsey-uuid) = 4.7.4 +Provides: bundled(php-ramsey-uuid) = 4.7.5 Provides: bundled(php-symfony-cache) = v6.0.19 Provides: bundled(php-symfony-cache-contracts) = v3.0.2 Provides: bundled(php-symfony-config) = v6.0.19 @@ -94,13 +94,13 @@ Provides: bundled(php-symfony-finder) = v6.0.19 Provides: bundled(php-symfony-http-client) = v6.0.20 Provides: bundled(php-symfony-http-client-contracts) = v3.0.2 Provides: bundled(php-symfony-messenger) = v6.0.19 -Provides: bundled(php-symfony-polyfill-ctype) = v1.27.0 -Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.27.0 -Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.27.0 -Provides: bundled(php-symfony-polyfill-mbstring) = v1.27.0 -Provides: bundled(php-symfony-polyfill-php72) = v1.27.0 -Provides: bundled(php-symfony-polyfill-php80) = v1.27.0 -Provides: bundled(php-symfony-polyfill-php81) = v1.27.0 +Provides: bundled(php-symfony-polyfill-ctype) = v1.28.0 +Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.28.0 +Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.28.0 +Provides: bundled(php-symfony-polyfill-mbstring) = v1.28.0 +Provides: bundled(php-symfony-polyfill-php72) = v1.28.0 +Provides: bundled(php-symfony-polyfill-php80) = v1.28.0 +Provides: bundled(php-symfony-polyfill-php81) = v1.28.0 Provides: bundled(php-symfony-process) = v6.0.19 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 Provides: bundled(php-symfony-serializer) = v6.0.19 @@ -197,6 +197,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Mon Nov 13 2023 Remi Collet - 7.0.0-3 +- update bundled bartlett/php-compatinfo-db to 5.12.0 + * Fri Jul 21 2023 Fedora Release Engineering - 7.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index bf22db2..2d0a544 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz) = 9917308a1e972b846e0daa822656c03d0a3d4e5dffd2db16c2716e195fa07a3abb2bee434f5a6d5e9aa83272c5b99652eedb0a61468c29b87634f0bea369e67b +SHA512 (php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz) = d7a67a7f6f9e7568eb079d04b96cdf29f8c53f7b13d76c3886c0f09c779538d4a1437e8b0ad8f1a6d7e59e8b0dab2c7bf853322ec86f6aadb848d72b4ba19e81 From 21c9aaaac548f70ee603484102523f58426d6fa1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 13 Nov 2023 12:13:57 +0100 Subject: [PATCH 44/64] fix check --- php-bartlett-PHP-CompatInfo.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 67472ab..a3719e6 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -183,7 +183,7 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %check -%{buildroot}%{_bindir}/phpcompatinfo --version || grep %{version} +%{buildroot}%{_bindir}/phpcompatinfo --version | grep %{version} && exit 0 %files From 2419c59d4e701ba6f5e8f89806353257e2ea1f17 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 13 Nov 2023 12:29:10 +0100 Subject: [PATCH 45/64] missing file --- php-bartlett-PHP-CompatInfo.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index a3719e6..192c4c7 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -127,6 +127,9 @@ show content of dictionary references. # https://github.com/llaville/php-compatinfo-db/issues/112 sed -e 's/touch/@touch/' -i vendor/bartlett/php-compatinfo-db/config/set/default.php +# https://github.com/llaville/php-compatinfo/issues/364 +[ -f config/set/up-to-php83.php ] || ln -s up-to-php82.php config/set/up-to-php83.php + : Gather all license files and cleanup tests mv vendor/composer/LICENSE composer_LICENSE for vendor in $(ls vendor) From 37b0b9b8b1b1417d7ab8a9fee06dbdcc23a4a02e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 14 Nov 2023 15:46:39 +0100 Subject: [PATCH 46/64] update to 7.0.1 update bundled bartlett/php-compatinfo-db to 5.13.0 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 18 +++++++++++------- sources | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index e38ab10..588d93e 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,4 @@ clog /php-bartlett-PHP-CompatInfo-6.5.3-e2bc72e.tgz /php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz /php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz +/php-bartlett-PHP-CompatInfo-7.0.1-c944914.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 192c4c7..bd7582e 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,18 +11,18 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 7b053000a684d1fa3840e0ab3c5833fecdf02dc3 +%global gh_commit c94491403ade577b5a1d6f0a460339394e039f3c %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.0.0 +%global upstream_version 7.0.1 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 3%{?dist} +Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -36,6 +36,8 @@ Source9: makesrc.sh # Relocate the database Patch0: %{name}-6.0.0-rpm.patch +# Allow PHP 8.3 +Patch1: %{name}-7.0.0-php83.patch BuildArch: noarch BuildRequires: php(language) >= 8.0 @@ -57,7 +59,7 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 5.12.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 5.13.0 Provides: bundled(php-nikic-php-parser) = v4.17.1 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 @@ -123,13 +125,11 @@ show content of dictionary references. %prep %setup -q -n %{gh_project}-%{gh_commit} %patch -P0 -p1 -b .rpm +%patch -P1 -p1 # https://github.com/llaville/php-compatinfo-db/issues/112 sed -e 's/touch/@touch/' -i vendor/bartlett/php-compatinfo-db/config/set/default.php -# https://github.com/llaville/php-compatinfo/issues/364 -[ -f config/set/up-to-php83.php ] || ln -s up-to-php82.php config/set/up-to-php83.php - : Gather all license files and cleanup tests mv vendor/composer/LICENSE composer_LICENSE for vendor in $(ls vendor) @@ -200,6 +200,10 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Tue Nov 14 2023 Remi Collet - 7.0.1-1 +- update to 7.0.1 +- update bundled bartlett/php-compatinfo-db to 5.13.0 + * Mon Nov 13 2023 Remi Collet - 7.0.0-3 - update bundled bartlett/php-compatinfo-db to 5.12.0 diff --git a/sources b/sources index 2d0a544..427f18f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz) = d7a67a7f6f9e7568eb079d04b96cdf29f8c53f7b13d76c3886c0f09c779538d4a1437e8b0ad8f1a6d7e59e8b0dab2c7bf853322ec86f6aadb848d72b4ba19e81 +SHA512 (php-bartlett-PHP-CompatInfo-7.0.1-c944914.tgz) = 1b95489c5fbbaeca81333d63784bddc6dc314515233fd5034752c83558348aeb5564e0aae6687694de4dd8fa17b9f91c951a3387d16cfda6a2684a69ca96f746 From d59205839e06e8c29ad3f5b96d5174136d0ed12b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 14 Nov 2023 16:10:44 +0100 Subject: [PATCH 47/64] missing patch --- php-bartlett-PHP-CompatInfo-7.0.0-php83.patch | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 php-bartlett-PHP-CompatInfo-7.0.0-php83.patch diff --git a/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch b/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch new file mode 100644 index 0000000..eeb3b98 --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch @@ -0,0 +1,70 @@ +From bc069b672d65748fdc257e23c667310946e7837e Mon Sep 17 00:00:00 2001 +From: Laurent Laville +Date: Thu, 2 Nov 2023 06:52:05 +0000 +Subject: [PATCH] initialize PHP 8.3 support + +--- + composer.json | 2 +- + config/set/php83.php | 18 ++++++++++++++++++ + config/set/up-to-php83.php | 14 ++++++++++++++ + 3 files changed, 33 insertions(+), 1 deletion(-) + create mode 100644 config/set/php83.php + create mode 100644 config/set/up-to-php83.php + +diff --git a/composer.json b/composer.json +index 34446906..9afc85cd 100644 +--- a/composer.json ++++ b/composer.json +@@ -70,7 +70,7 @@ + "extra": { + "enable-patching": true, + "branch-alias": { +- "dev-master": "7.0.x-dev" ++ "dev-master": "8.0.x-dev" + } + } + } +diff --git a/config/set/php83.php b/config/set/php83.php +new file mode 100644 +index 00000000..32531fb1 +--- /dev/null ++++ b/config/set/php83.php +@@ -0,0 +1,18 @@ ++import(__DIR__ . '/up-to-php82.php'); ++ $containerConfigurator->import(__DIR__ . '/php83.php'); ++}; From 87a6fa4f3419e29db340648d36f056343228d8a2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 6 Dec 2023 11:47:13 +0100 Subject: [PATCH 48/64] update to 7.0.2 update bundled bartlett/php-compatinfo-db to 6.0.0 open https://github.com/llaville/php-compatinfo/issues/365 8.0 compatibility raise dependency on PHP 8.1 --- .gitignore | 1 + makesrc.sh | 3 +- php-bartlett-PHP-CompatInfo-7.0.0-php83.patch | 13 ---- php-bartlett-PHP-CompatInfo.spec | 69 ++++++++++--------- sources | 2 +- 5 files changed, 42 insertions(+), 46 deletions(-) diff --git a/.gitignore b/.gitignore index 588d93e..c8ff94b 100644 --- a/.gitignore +++ b/.gitignore @@ -56,3 +56,4 @@ clog /php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz /php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz /php-bartlett-PHP-CompatInfo-7.0.1-c944914.tgz +/php-bartlett-PHP-CompatInfo-7.0.2-cff8a7a.tgz diff --git a/makesrc.sh b/makesrc.sh index 381e35a..c3a64e2 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -18,7 +18,8 @@ echo "Getting commit..." git checkout $COMMIT || exit 1 cp composer.json ../ - composer config platform.php 8.0.99 + module load php81 + composer config platform.php 8.1.99 composer install --no-interaction --no-progress --no-dev --optimize-autoloader cp vendor/composer/installed.json ../ diff --git a/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch b/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch index eeb3b98..443555c 100644 --- a/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch +++ b/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch @@ -11,19 +11,6 @@ Subject: [PATCH] initialize PHP 8.3 support create mode 100644 config/set/php83.php create mode 100644 config/set/up-to-php83.php -diff --git a/composer.json b/composer.json -index 34446906..9afc85cd 100644 ---- a/composer.json -+++ b/composer.json -@@ -70,7 +70,7 @@ - "extra": { - "enable-patching": true, - "branch-alias": { -- "dev-master": "7.0.x-dev" -+ "dev-master": "8.0.x-dev" - } - } - } diff --git a/config/set/php83.php b/config/set/php83.php new file mode 100644 index 00000000..32531fb1 diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index bd7582e..6258743 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit c94491403ade577b5a1d6f0a460339394e039f3c +%global gh_commit cff8a7aa5a0fcccb0ef8bcb11dc55480b88538bd %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.0.1 +%global upstream_version 7.0.2 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -40,11 +40,11 @@ Patch0: %{name}-6.0.0-rpm.patch Patch1: %{name}-7.0.0-php83.patch BuildArch: noarch -BuildRequires: php(language) >= 8.0 +BuildRequires: php(language) >= 8.1 BuildRequires: php-cli BuildRequires: php-json -Requires: php(language) >= 8.0 +Requires: php(language) >= 8.1 Requires: php-cli Requires: php-dom Requires: php-json @@ -59,57 +59,58 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 5.13.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 6.0.0 Provides: bundled(php-nikic-php-parser) = v4.17.1 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.11.0 Provides: bundled(php-composer-semver) = 3.4.0 -Provides: bundled(php-doctrine-annotations) = 1.14.3 Provides: bundled(php-doctrine-cache) = 2.2.0 Provides: bundled(php-doctrine-collections) = 1.8.0 Provides: bundled(php-doctrine-common) = 3.4.3 -Provides: bundled(php-doctrine-dbal) = 3.7.1 +Provides: bundled(php-doctrine-dbal) = 3.7.2 Provides: bundled(php-doctrine-deprecations) = 1.1.2 -Provides: bundled(php-doctrine-event-manager) = 1.2.0 +Provides: bundled(php-doctrine-event-manager) = 2.0.0 Provides: bundled(php-doctrine-inflector) = 2.0.8 -Provides: bundled(php-doctrine-instantiator) = 1.5.0 +Provides: bundled(php-doctrine-instantiator) = 2.0.0 Provides: bundled(php-doctrine-lexer) = 2.1.0 -Provides: bundled(php-doctrine-orm) = 2.16.2 +Provides: bundled(php-doctrine-orm) = 2.17.1 Provides: bundled(php-doctrine-persistence) = 3.2.0 Provides: bundled(php-psr-cache) = 3.0.0 +Provides: bundled(php-psr-clock) = 1.0.0 Provides: bundled(php-psr-container) = 2.0.2 Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 3.0.0 -Provides: bundled(php-ramsey-collection) = 1.3.0 +Provides: bundled(php-ramsey-collection) = 2.0.0 Provides: bundled(php-ramsey-uuid) = 4.7.5 -Provides: bundled(php-symfony-cache) = v6.0.19 -Provides: bundled(php-symfony-cache-contracts) = v3.0.2 -Provides: bundled(php-symfony-config) = v6.0.19 -Provides: bundled(php-symfony-console) = v6.0.19 -Provides: bundled(php-symfony-dependency-injection) = v6.0.20 -Provides: bundled(php-symfony-deprecation-contracts) = v3.0.2 -Provides: bundled(php-symfony-event-dispatcher) = v6.0.19 -Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.0.2 -Provides: bundled(php-symfony-filesystem) = v6.0.19 -Provides: bundled(php-symfony-finder) = v6.0.19 -Provides: bundled(php-symfony-http-client) = v6.0.20 -Provides: bundled(php-symfony-http-client-contracts) = v3.0.2 -Provides: bundled(php-symfony-messenger) = v6.0.19 +Provides: bundled(php-symfony-cache) = v6.4.0 +Provides: bundled(php-symfony-cache-contracts) = v3.4.0 +Provides: bundled(php-symfony-clock) = v6.4.0 +Provides: bundled(php-symfony-config) = v6.4.0 +Provides: bundled(php-symfony-console) = v6.4.1 +Provides: bundled(php-symfony-dependency-injection) = v6.4.1 +Provides: bundled(php-symfony-deprecation-contracts) = v3.4.0 +Provides: bundled(php-symfony-event-dispatcher) = v6.4.0 +Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.4.0 +Provides: bundled(php-symfony-filesystem) = v6.4.0 +Provides: bundled(php-symfony-finder) = v6.4.0 +Provides: bundled(php-symfony-http-client) = v6.4.0 +Provides: bundled(php-symfony-http-client-contracts) = v3.4.0 +Provides: bundled(php-symfony-messenger) = v6.4.0 Provides: bundled(php-symfony-polyfill-ctype) = v1.28.0 Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.28.0 Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.28.0 Provides: bundled(php-symfony-polyfill-mbstring) = v1.28.0 Provides: bundled(php-symfony-polyfill-php72) = v1.28.0 Provides: bundled(php-symfony-polyfill-php80) = v1.28.0 -Provides: bundled(php-symfony-polyfill-php81) = v1.28.0 -Provides: bundled(php-symfony-process) = v6.0.19 +Provides: bundled(php-symfony-polyfill-php83) = v1.28.0 +Provides: bundled(php-symfony-process) = v6.4.0 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v6.0.19 -Provides: bundled(php-symfony-service-contracts) = v3.0.2 -Provides: bundled(php-symfony-stopwatch) = v6.0.19 -Provides: bundled(php-symfony-string) = v6.0.19 -Provides: bundled(php-symfony-var-exporter) = v6.0.19 +Provides: bundled(php-symfony-serializer) = v6.4.1 +Provides: bundled(php-symfony-service-contracts) = v3.4.0 +Provides: bundled(php-symfony-stopwatch) = v6.4.0 +Provides: bundled(php-symfony-string) = v6.4.0 +Provides: bundled(php-symfony-var-exporter) = v6.4.1 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -200,6 +201,12 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Wed Dec 6 2023 Remi Collet - 7.0.2-1 +- update to 7.0.2 +- update bundled bartlett/php-compatinfo-db to 6.0.0 +- open https://github.com/llaville/php-compatinfo/issues/365 8.0 compatibility +- raise dependency on PHP 8.1 + * Tue Nov 14 2023 Remi Collet - 7.0.1-1 - update to 7.0.1 - update bundled bartlett/php-compatinfo-db to 5.13.0 diff --git a/sources b/sources index 427f18f..8992631 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.0.1-c944914.tgz) = 1b95489c5fbbaeca81333d63784bddc6dc314515233fd5034752c83558348aeb5564e0aae6687694de4dd8fa17b9f91c951a3387d16cfda6a2684a69ca96f746 +SHA512 (php-bartlett-PHP-CompatInfo-7.0.2-cff8a7a.tgz) = 31b236acd7473342f14e7d0600865659982384ea6687ca71aacc18baab70e494b41685f87f8cc73cbc87cc6c23bf02c8e653b5d11e9746b9361aef4f1e31686d From c7f5b354acf66197129589f25a26a550416646c2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 2 Jan 2024 07:40:13 +0100 Subject: [PATCH 49/64] v7.1.0 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo-7.0.0-php83.patch | 57 ------------------- php-bartlett-PHP-CompatInfo.spec | 38 ++++++------- sources | 2 +- 4 files changed, 21 insertions(+), 77 deletions(-) delete mode 100644 php-bartlett-PHP-CompatInfo-7.0.0-php83.patch diff --git a/.gitignore b/.gitignore index c8ff94b..25d01c9 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,4 @@ clog /php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz /php-bartlett-PHP-CompatInfo-7.0.1-c944914.tgz /php-bartlett-PHP-CompatInfo-7.0.2-cff8a7a.tgz +/php-bartlett-PHP-CompatInfo-7.1.0-26b0219.tgz diff --git a/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch b/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch deleted file mode 100644 index 443555c..0000000 --- a/php-bartlett-PHP-CompatInfo-7.0.0-php83.patch +++ /dev/null @@ -1,57 +0,0 @@ -From bc069b672d65748fdc257e23c667310946e7837e Mon Sep 17 00:00:00 2001 -From: Laurent Laville -Date: Thu, 2 Nov 2023 06:52:05 +0000 -Subject: [PATCH] initialize PHP 8.3 support - ---- - composer.json | 2 +- - config/set/php83.php | 18 ++++++++++++++++++ - config/set/up-to-php83.php | 14 ++++++++++++++ - 3 files changed, 33 insertions(+), 1 deletion(-) - create mode 100644 config/set/php83.php - create mode 100644 config/set/up-to-php83.php - -diff --git a/config/set/php83.php b/config/set/php83.php -new file mode 100644 -index 00000000..32531fb1 ---- /dev/null -+++ b/config/set/php83.php -@@ -0,0 +1,18 @@ -+import(__DIR__ . '/up-to-php82.php'); -+ $containerConfigurator->import(__DIR__ . '/php83.php'); -+}; diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 6258743..623dacf 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit cff8a7aa5a0fcccb0ef8bcb11dc55480b88538bd +%global gh_commit 26b0219fde16933f67d991fdc3974d304eec3ead %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.0.2 +%global upstream_version 7.1.0 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -36,8 +36,6 @@ Source9: makesrc.sh # Relocate the database Patch0: %{name}-6.0.0-rpm.patch -# Allow PHP 8.3 -Patch1: %{name}-7.0.0-php83.patch BuildArch: noarch BuildRequires: php(language) >= 8.1 @@ -59,8 +57,8 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 6.0.0 -Provides: bundled(php-nikic-php-parser) = v4.17.1 +Provides: bundled(php-bartlett-php-compatinfo-db) = 6.1.1 +Provides: bundled(php-nikic-php-parser) = v4.18.0 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 Provides: bundled(php-brick-math) = 0.11.0 @@ -74,7 +72,7 @@ Provides: bundled(php-doctrine-event-manager) = 2.0.0 Provides: bundled(php-doctrine-inflector) = 2.0.8 Provides: bundled(php-doctrine-instantiator) = 2.0.0 Provides: bundled(php-doctrine-lexer) = 2.1.0 -Provides: bundled(php-doctrine-orm) = 2.17.1 +Provides: bundled(php-doctrine-orm) = 2.17.2 Provides: bundled(php-doctrine-persistence) = 3.2.0 Provides: bundled(php-psr-cache) = 3.0.0 Provides: bundled(php-psr-clock) = 1.0.0 @@ -83,18 +81,18 @@ Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 3.0.0 Provides: bundled(php-ramsey-collection) = 2.0.0 Provides: bundled(php-ramsey-uuid) = 4.7.5 -Provides: bundled(php-symfony-cache) = v6.4.0 +Provides: bundled(php-symfony-cache) = v6.4.2 Provides: bundled(php-symfony-cache-contracts) = v3.4.0 -Provides: bundled(php-symfony-clock) = v6.4.0 +Provides: bundled(php-symfony-clock) = v6.4.2 Provides: bundled(php-symfony-config) = v6.4.0 -Provides: bundled(php-symfony-console) = v6.4.1 -Provides: bundled(php-symfony-dependency-injection) = v6.4.1 +Provides: bundled(php-symfony-console) = v6.4.2 +Provides: bundled(php-symfony-dependency-injection) = v6.4.2 Provides: bundled(php-symfony-deprecation-contracts) = v3.4.0 -Provides: bundled(php-symfony-event-dispatcher) = v6.4.0 +Provides: bundled(php-symfony-event-dispatcher) = v6.4.2 Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.4.0 Provides: bundled(php-symfony-filesystem) = v6.4.0 Provides: bundled(php-symfony-finder) = v6.4.0 -Provides: bundled(php-symfony-http-client) = v6.4.0 +Provides: bundled(php-symfony-http-client) = v6.4.2 Provides: bundled(php-symfony-http-client-contracts) = v3.4.0 Provides: bundled(php-symfony-messenger) = v6.4.0 Provides: bundled(php-symfony-polyfill-ctype) = v1.28.0 @@ -104,13 +102,13 @@ Provides: bundled(php-symfony-polyfill-mbstring) = v1.28.0 Provides: bundled(php-symfony-polyfill-php72) = v1.28.0 Provides: bundled(php-symfony-polyfill-php80) = v1.28.0 Provides: bundled(php-symfony-polyfill-php83) = v1.28.0 -Provides: bundled(php-symfony-process) = v6.4.0 +Provides: bundled(php-symfony-process) = v6.4.2 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v6.4.1 -Provides: bundled(php-symfony-service-contracts) = v3.4.0 +Provides: bundled(php-symfony-serializer) = v6.4.2 +Provides: bundled(php-symfony-service-contracts) = v3.4.1 Provides: bundled(php-symfony-stopwatch) = v6.4.0 -Provides: bundled(php-symfony-string) = v6.4.0 -Provides: bundled(php-symfony-var-exporter) = v6.4.1 +Provides: bundled(php-symfony-string) = v6.4.2 +Provides: bundled(php-symfony-var-exporter) = v6.4.2 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -126,7 +124,6 @@ show content of dictionary references. %prep %setup -q -n %{gh_project}-%{gh_commit} %patch -P0 -p1 -b .rpm -%patch -P1 -p1 # https://github.com/llaville/php-compatinfo-db/issues/112 sed -e 's/touch/@touch/' -i vendor/bartlett/php-compatinfo-db/config/set/default.php @@ -201,6 +198,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Tue Jan 2 2024 Remi Collet - 7.1.0-1 +- update to 7.1.0 + * Wed Dec 6 2023 Remi Collet - 7.0.2-1 - update to 7.0.2 - update bundled bartlett/php-compatinfo-db to 6.0.0 diff --git a/sources b/sources index 8992631..c51abcf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.0.2-cff8a7a.tgz) = 31b236acd7473342f14e7d0600865659982384ea6687ca71aacc18baab70e494b41685f87f8cc73cbc87cc6c23bf02c8e653b5d11e9746b9361aef4f1e31686d +SHA512 (php-bartlett-PHP-CompatInfo-7.1.0-26b0219.tgz) = 59b790ba5c12e22c0d9db18fe7bae4e3dde3ff142464825cc6a165f1b3ace0e64609e6fd306d74d18005e3f566cce9747b69a023835129ae690ed901fe0197f5 From 7b0aa52c6d9ce7b8b92f1dc50a7bcfcdb1c95b15 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 18 Jan 2024 11:02:44 +0100 Subject: [PATCH 50/64] update to 7.1.1 cleanup installation tree move docs and examples in package documentation --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 37 +++++++++++++++++++------------- sources | 2 +- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 25d01c9..a96af03 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,4 @@ clog /php-bartlett-PHP-CompatInfo-7.0.1-c944914.tgz /php-bartlett-PHP-CompatInfo-7.0.2-cff8a7a.tgz /php-bartlett-PHP-CompatInfo-7.1.0-26b0219.tgz +/php-bartlett-PHP-CompatInfo-7.1.1-d9504f5.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 623dacf..4238362 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,13 +11,13 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 26b0219fde16933f67d991fdc3974d304eec3ead +%global gh_commit d9504f525abfbdb8fc7d7850cbd58229471526ba %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.1.0 +%global upstream_version 7.1.1 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -58,9 +58,9 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause Provides: bundled(php-bartlett-php-compatinfo-db) = 6.1.1 -Provides: bundled(php-nikic-php-parser) = v4.18.0 +Provides: bundled(php-nikic-php-parser) = v5.0.0 # License MIT -Provides: bundled(php-bartlett-sarif-php-sdk) = 1.0.1 +Provides: bundled(php-bartlett-sarif-php-sdk) = 1.1.0 Provides: bundled(php-brick-math) = 0.11.0 Provides: bundled(php-composer-semver) = 3.4.0 Provides: bundled(php-doctrine-cache) = 2.2.0 @@ -69,10 +69,10 @@ Provides: bundled(php-doctrine-common) = 3.4.3 Provides: bundled(php-doctrine-dbal) = 3.7.2 Provides: bundled(php-doctrine-deprecations) = 1.1.2 Provides: bundled(php-doctrine-event-manager) = 2.0.0 -Provides: bundled(php-doctrine-inflector) = 2.0.8 +Provides: bundled(php-doctrine-inflector) = 2.0.9 Provides: bundled(php-doctrine-instantiator) = 2.0.0 Provides: bundled(php-doctrine-lexer) = 2.1.0 -Provides: bundled(php-doctrine-orm) = 2.17.2 +Provides: bundled(php-doctrine-orm) = 2.17.3 Provides: bundled(php-doctrine-persistence) = 3.2.0 Provides: bundled(php-psr-cache) = 3.0.0 Provides: bundled(php-psr-clock) = 1.0.0 @@ -124,6 +124,7 @@ show content of dictionary references. %prep %setup -q -n %{gh_project}-%{gh_commit} %patch -P0 -p1 -b .rpm +rm bin/*rpm # https://github.com/llaville/php-compatinfo-db/issues/112 sed -e 's/touch/@touch/' -i vendor/bartlett/php-compatinfo-db/config/set/default.php @@ -138,9 +139,6 @@ do [ -f vendor/$vendor/$proj/LICENSE ] && mv vendor/$vendor/$proj/LICENSE ${vendor}_${proj}_LICENSE done done -rm -r tests -rm -r .github -rm -r .changes rm -r vendor/bartlett/*/.github rm -r vendor/bartlett/*/.changes @@ -169,18 +167,20 @@ php -r ' %install -mkdir -p %{buildroot}%{_datadir} -cp -pr . %{buildroot}%{_datadir}/%{name} -rm %{buildroot}%{_datadir}/%{name}/*LICENSE +mkdir -p %{buildroot}%{_datadir}/%{name} +for i in bin config data resources src vendor composer.* +do cp -pr $i %{buildroot}%{_datadir}/%{name}/$i +done mkdir -p %{buildroot}%{_bindir} ln -s ../share/%{name}/bin/phpcompatinfo %{buildroot}%{_bindir}/phpcompatinfo mkdir -p %{buildroot}%{_mandir}/man1 mv %{buildroot}%{_datadir}/%{name}/bin/phpcompatinfo.1 \ - %{buildroot}%{_mandir}/man1/phpcompatinfo.1 + %{buildroot}%{_mandir}/man1/phpcompatinfo.1 -install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora-review-check +install -D -p -m 755 %{SOURCE1} \ + %{buildroot}%{_datadir}/%{name}/fedora-review-check %check @@ -189,7 +189,9 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %files %license *LICENSE -%doc README.* +%doc *md +%doc docs +%doc examples %doc composer.json %doc vendor/composer/installed.json %{_bindir}/phpcompatinfo @@ -198,6 +200,11 @@ install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora- %changelog +* Thu Jan 18 2024 Remi Collet - 7.1.1-1 +- update to 7.1.1 +- cleanup installation tree +- move docs and examples in package documentation + * Tue Jan 2 2024 Remi Collet - 7.1.0-1 - update to 7.1.0 diff --git a/sources b/sources index c51abcf..06ddd7e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.1.0-26b0219.tgz) = 59b790ba5c12e22c0d9db18fe7bae4e3dde3ff142464825cc6a165f1b3ace0e64609e6fd306d74d18005e3f566cce9747b69a023835129ae690ed901fe0197f5 +SHA512 (php-bartlett-PHP-CompatInfo-7.1.1-d9504f5.tgz) = 92b8b768f49d76c6fc0b5a21cc44f2185ebe7cca1a525aa590ecf95d6a65e4cc305085cb6a877a71ca2008134319fd4ddabfa98d8eaf3cd97198db9257a73b9b From 818b4b858877ca31db4a7b2b9cd036405f9076af Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 20:42:57 +0000 Subject: [PATCH 51/64] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 4238362..d4bfc86 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -200,6 +200,9 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 7.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Thu Jan 18 2024 Remi Collet - 7.1.1-1 - update to 7.1.1 - cleanup installation tree From b06f7dd0a801e4632b88af9aa0938aa9f773f0a1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jan 2024 22:29:02 +0000 Subject: [PATCH 52/64] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index d4bfc86..0fa638f 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -200,6 +200,9 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Thu Jan 25 2024 Fedora Release Engineering - 7.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Jan 21 2024 Fedora Release Engineering - 7.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From fd6eabf939d7329579777bdfff9ff0348cdce44a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 8 Feb 2024 09:33:55 +0100 Subject: [PATCH 53/64] update to 7.1.2 update bundled bartlett/php-compatinfo-db to 6.2.1 --- .gitignore | 1 + makesrc.sh | 5 ++- php-bartlett-PHP-CompatInfo.spec | 67 +++++++++++++++++--------------- sources | 2 +- 4 files changed, 41 insertions(+), 34 deletions(-) diff --git a/.gitignore b/.gitignore index a96af03..55b2ab4 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ clog /php-bartlett-PHP-CompatInfo-7.0.2-cff8a7a.tgz /php-bartlett-PHP-CompatInfo-7.1.0-26b0219.tgz /php-bartlett-PHP-CompatInfo-7.1.1-d9504f5.tgz +/php-bartlett-PHP-CompatInfo-7.1.2-072d0f8.tgz diff --git a/makesrc.sh b/makesrc.sh index c3a64e2..a2d4c80 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -1,17 +1,20 @@ #!/bin/bash NAME=$(basename $PWD) +DATE=$(sed -n '/^%global gh_date/{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 '/^%global upstream_version/{s/.* //;p}' $NAME.spec) COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) SHORT=${COMMIT:0:7} +DATE=$(date -d "$DATE -4 days" +%Y-%m-%d) + echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Commit=$COMMIT\n" echo "Cloning..." rm -rf $HOME/.cache/bartlett -git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT +git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT echo "Getting commit..." pushd $PROJECT-$COMMIT diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 0fa638f..3817f2d 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,28 +1,27 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # -# Copyright (c) 2011-2023 Remi Collet +# Copyright (c) 2011-2024 Remi Collet # License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -# For compatibility with SCL %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit d9504f525abfbdb8fc7d7850cbd58229471526ba +%global gh_commit 072d0f8637341f880b6844cd50d2c2c9918a69b2 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -#global gh_date 20151005 +%global gh_date 2024-02-08 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.1.1 +%global upstream_version 7.1.2 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 3%{?dist} +Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -57,7 +56,7 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 6.1.1 +Provides: bundled(php-bartlett-php-compatinfo-db) = 6.2.1 Provides: bundled(php-nikic-php-parser) = v5.0.0 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.1.0 @@ -66,13 +65,13 @@ Provides: bundled(php-composer-semver) = 3.4.0 Provides: bundled(php-doctrine-cache) = 2.2.0 Provides: bundled(php-doctrine-collections) = 1.8.0 Provides: bundled(php-doctrine-common) = 3.4.3 -Provides: bundled(php-doctrine-dbal) = 3.7.2 -Provides: bundled(php-doctrine-deprecations) = 1.1.2 +Provides: bundled(php-doctrine-dbal) = 3.8.1 +Provides: bundled(php-doctrine-deprecations) = 1.1.3 Provides: bundled(php-doctrine-event-manager) = 2.0.0 Provides: bundled(php-doctrine-inflector) = 2.0.9 Provides: bundled(php-doctrine-instantiator) = 2.0.0 -Provides: bundled(php-doctrine-lexer) = 2.1.0 -Provides: bundled(php-doctrine-orm) = 2.17.3 +Provides: bundled(php-doctrine-lexer) = 3.0.1 +Provides: bundled(php-doctrine-orm) = 2.18.0 Provides: bundled(php-doctrine-persistence) = 3.2.0 Provides: bundled(php-psr-cache) = 3.0.0 Provides: bundled(php-psr-clock) = 1.0.0 @@ -81,34 +80,34 @@ Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 3.0.0 Provides: bundled(php-ramsey-collection) = 2.0.0 Provides: bundled(php-ramsey-uuid) = 4.7.5 -Provides: bundled(php-symfony-cache) = v6.4.2 +Provides: bundled(php-symfony-cache) = v6.4.3 Provides: bundled(php-symfony-cache-contracts) = v3.4.0 -Provides: bundled(php-symfony-clock) = v6.4.2 -Provides: bundled(php-symfony-config) = v6.4.0 -Provides: bundled(php-symfony-console) = v6.4.2 -Provides: bundled(php-symfony-dependency-injection) = v6.4.2 +Provides: bundled(php-symfony-clock) = v6.4.3 +Provides: bundled(php-symfony-config) = v6.4.3 +Provides: bundled(php-symfony-console) = v6.4.3 +Provides: bundled(php-symfony-dependency-injection) = v6.4.3 Provides: bundled(php-symfony-deprecation-contracts) = v3.4.0 -Provides: bundled(php-symfony-event-dispatcher) = v6.4.2 +Provides: bundled(php-symfony-event-dispatcher) = v6.4.3 Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.4.0 -Provides: bundled(php-symfony-filesystem) = v6.4.0 +Provides: bundled(php-symfony-filesystem) = v6.4.3 Provides: bundled(php-symfony-finder) = v6.4.0 -Provides: bundled(php-symfony-http-client) = v6.4.2 +Provides: bundled(php-symfony-http-client) = v6.4.3 Provides: bundled(php-symfony-http-client-contracts) = v3.4.0 -Provides: bundled(php-symfony-messenger) = v6.4.0 -Provides: bundled(php-symfony-polyfill-ctype) = v1.28.0 -Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.28.0 -Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.28.0 -Provides: bundled(php-symfony-polyfill-mbstring) = v1.28.0 -Provides: bundled(php-symfony-polyfill-php72) = v1.28.0 -Provides: bundled(php-symfony-polyfill-php80) = v1.28.0 -Provides: bundled(php-symfony-polyfill-php83) = v1.28.0 -Provides: bundled(php-symfony-process) = v6.4.2 +Provides: bundled(php-symfony-messenger) = v6.4.3 +Provides: bundled(php-symfony-polyfill-ctype) = v1.29.0 +Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.29.0 +Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.29.0 +Provides: bundled(php-symfony-polyfill-mbstring) = v1.29.0 +Provides: bundled(php-symfony-polyfill-php72) = v1.29.0 +Provides: bundled(php-symfony-polyfill-php80) = v1.29.0 +Provides: bundled(php-symfony-polyfill-php83) = v1.29.0 +Provides: bundled(php-symfony-process) = v6.4.3 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v6.4.2 +Provides: bundled(php-symfony-serializer) = v6.4.3 Provides: bundled(php-symfony-service-contracts) = v3.4.1 -Provides: bundled(php-symfony-stopwatch) = v6.4.0 -Provides: bundled(php-symfony-string) = v6.4.2 -Provides: bundled(php-symfony-var-exporter) = v6.4.2 +Provides: bundled(php-symfony-stopwatch) = v6.4.3 +Provides: bundled(php-symfony-string) = v6.4.3 +Provides: bundled(php-symfony-var-exporter) = v6.4.3 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -200,6 +199,10 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Thu Feb 8 2024 Remi Collet - 7.1.2-1 +- update to 7.1.2 +- update bundled bartlett/php-compatinfo-db to 6.2.1 + * Thu Jan 25 2024 Fedora Release Engineering - 7.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index 06ddd7e..797a3b4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.1.1-d9504f5.tgz) = 92b8b768f49d76c6fc0b5a21cc44f2185ebe7cca1a525aa590ecf95d6a65e4cc305085cb6a877a71ca2008134319fd4ddabfa98d8eaf3cd97198db9257a73b9b +SHA512 (php-bartlett-PHP-CompatInfo-7.1.2-072d0f8.tgz) = 62727a2675eb3045013278c13805d82173500b2b46a33fb9f81047e6108f55cca2348ac4795a85e67e086b9c531991e2b7e6fcc9ea791da31505fcf95840d991 From 0830fa1dd912221284fcbc8e42a10b5f6f42ccd8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 19 Mar 2024 14:53:21 +0100 Subject: [PATCH 54/64] update to 7.1.3 update bundled bartlett/php-compatinfo-db to 6.4.2 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 45 +++++++++++++++++--------------- sources | 2 +- 3 files changed, 26 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index 55b2ab4..38a24ee 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ clog /php-bartlett-PHP-CompatInfo-7.1.0-26b0219.tgz /php-bartlett-PHP-CompatInfo-7.1.1-d9504f5.tgz /php-bartlett-PHP-CompatInfo-7.1.2-072d0f8.tgz +/php-bartlett-PHP-CompatInfo-7.1.3-7a74bd0.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 3817f2d..8017975 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -7,16 +7,15 @@ # Please, preserve the changelog entries # -%undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 072d0f8637341f880b6844cd50d2c2c9918a69b2 +%global gh_commit 7a74bd0ad8fda76930c23ebc180cd6ca190c7a19 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 2024-02-08 +%global gh_date 2024-03-19 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.1.2 +%global upstream_version 7.1.3 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -56,8 +55,8 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 6.2.1 -Provides: bundled(php-nikic-php-parser) = v5.0.0 +Provides: bundled(php-bartlett-php-compatinfo-db) = 6.4.2 +Provides: bundled(php-nikic-php-parser) = v5.0.2 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.1.0 Provides: bundled(php-brick-math) = 0.11.0 @@ -65,14 +64,14 @@ Provides: bundled(php-composer-semver) = 3.4.0 Provides: bundled(php-doctrine-cache) = 2.2.0 Provides: bundled(php-doctrine-collections) = 1.8.0 Provides: bundled(php-doctrine-common) = 3.4.3 -Provides: bundled(php-doctrine-dbal) = 3.8.1 +Provides: bundled(php-doctrine-dbal) = 3.8.3 Provides: bundled(php-doctrine-deprecations) = 1.1.3 Provides: bundled(php-doctrine-event-manager) = 2.0.0 -Provides: bundled(php-doctrine-inflector) = 2.0.9 +Provides: bundled(php-doctrine-inflector) = 2.0.10 Provides: bundled(php-doctrine-instantiator) = 2.0.0 Provides: bundled(php-doctrine-lexer) = 3.0.1 -Provides: bundled(php-doctrine-orm) = 2.18.0 -Provides: bundled(php-doctrine-persistence) = 3.2.0 +Provides: bundled(php-doctrine-orm) = 2.19.2 +Provides: bundled(php-doctrine-persistence) = 3.3.2 Provides: bundled(php-psr-cache) = 3.0.0 Provides: bundled(php-psr-clock) = 1.0.0 Provides: bundled(php-psr-container) = 2.0.2 @@ -80,20 +79,20 @@ Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 3.0.0 Provides: bundled(php-ramsey-collection) = 2.0.0 Provides: bundled(php-ramsey-uuid) = 4.7.5 -Provides: bundled(php-symfony-cache) = v6.4.3 +Provides: bundled(php-symfony-cache) = v6.4.4 Provides: bundled(php-symfony-cache-contracts) = v3.4.0 -Provides: bundled(php-symfony-clock) = v6.4.3 -Provides: bundled(php-symfony-config) = v6.4.3 -Provides: bundled(php-symfony-console) = v6.4.3 -Provides: bundled(php-symfony-dependency-injection) = v6.4.3 +Provides: bundled(php-symfony-clock) = v6.4.5 +Provides: bundled(php-symfony-config) = v6.4.4 +Provides: bundled(php-symfony-console) = v6.4.4 +Provides: bundled(php-symfony-dependency-injection) = v6.4.4 Provides: bundled(php-symfony-deprecation-contracts) = v3.4.0 Provides: bundled(php-symfony-event-dispatcher) = v6.4.3 Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.4.0 Provides: bundled(php-symfony-filesystem) = v6.4.3 Provides: bundled(php-symfony-finder) = v6.4.0 -Provides: bundled(php-symfony-http-client) = v6.4.3 +Provides: bundled(php-symfony-http-client) = v6.4.5 Provides: bundled(php-symfony-http-client-contracts) = v3.4.0 -Provides: bundled(php-symfony-messenger) = v6.4.3 +Provides: bundled(php-symfony-messenger) = v6.4.4 Provides: bundled(php-symfony-polyfill-ctype) = v1.29.0 Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.29.0 Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.29.0 @@ -101,13 +100,13 @@ Provides: bundled(php-symfony-polyfill-mbstring) = v1.29.0 Provides: bundled(php-symfony-polyfill-php72) = v1.29.0 Provides: bundled(php-symfony-polyfill-php80) = v1.29.0 Provides: bundled(php-symfony-polyfill-php83) = v1.29.0 -Provides: bundled(php-symfony-process) = v6.4.3 +Provides: bundled(php-symfony-process) = v6.4.4 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v6.4.3 +Provides: bundled(php-symfony-serializer) = v6.4.4 Provides: bundled(php-symfony-service-contracts) = v3.4.1 Provides: bundled(php-symfony-stopwatch) = v6.4.3 -Provides: bundled(php-symfony-string) = v6.4.3 -Provides: bundled(php-symfony-var-exporter) = v6.4.3 +Provides: bundled(php-symfony-string) = v6.4.4 +Provides: bundled(php-symfony-var-exporter) = v6.4.4 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -199,6 +198,10 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Tue Mar 19 2024 Remi Collet - 7.1.3-1 +- update to 7.1.3 +- update bundled bartlett/php-compatinfo-db to 6.4.2 + * Thu Feb 8 2024 Remi Collet - 7.1.2-1 - update to 7.1.2 - update bundled bartlett/php-compatinfo-db to 6.2.1 diff --git a/sources b/sources index 797a3b4..f062268 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.1.2-072d0f8.tgz) = 62727a2675eb3045013278c13805d82173500b2b46a33fb9f81047e6108f55cca2348ac4795a85e67e086b9c531991e2b7e6fcc9ea791da31505fcf95840d991 +SHA512 (php-bartlett-PHP-CompatInfo-7.1.3-7a74bd0.tgz) = ae8fc6d18d7d2038f3d9cf3fab4722f3a91987118b546a0f09272dba5e48ada47559d915139a37f4e2b8d901937ba5afba41b92da2030081e86bf81796f21be3 From 7316e1d9f0bea1a5f96124c100f5e604f2915960 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Apr 2024 10:44:13 +0200 Subject: [PATCH 55/64] update to 7.1.4 update bundled bartlett/php-compatinfo-db to 6.5.0 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 42 +++++++++++++++++--------------- sources | 2 +- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 38a24ee..7626a63 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,4 @@ clog /php-bartlett-PHP-CompatInfo-7.1.1-d9504f5.tgz /php-bartlett-PHP-CompatInfo-7.1.2-072d0f8.tgz /php-bartlett-PHP-CompatInfo-7.1.3-7a74bd0.tgz +/php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 8017975..8a4d74f 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -9,13 +9,13 @@ %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 7a74bd0ad8fda76930c23ebc180cd6ca190c7a19 +%global gh_commit 9875282a35266aa2b66416303c06edcd70fc50a1 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 2024-03-19 +%global gh_date 2024-04-24 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.1.3 +%global upstream_version 7.1.4 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -55,7 +55,7 @@ Requires: php-xmlreader # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 6.4.2 +Provides: bundled(php-bartlett-php-compatinfo-db) = 6.5.0 Provides: bundled(php-nikic-php-parser) = v5.0.2 # License MIT Provides: bundled(php-bartlett-sarif-php-sdk) = 1.1.0 @@ -63,14 +63,14 @@ Provides: bundled(php-brick-math) = 0.11.0 Provides: bundled(php-composer-semver) = 3.4.0 Provides: bundled(php-doctrine-cache) = 2.2.0 Provides: bundled(php-doctrine-collections) = 1.8.0 -Provides: bundled(php-doctrine-common) = 3.4.3 +Provides: bundled(php-doctrine-common) = 3.4.4 Provides: bundled(php-doctrine-dbal) = 3.8.3 Provides: bundled(php-doctrine-deprecations) = 1.1.3 Provides: bundled(php-doctrine-event-manager) = 2.0.0 Provides: bundled(php-doctrine-inflector) = 2.0.10 Provides: bundled(php-doctrine-instantiator) = 2.0.0 Provides: bundled(php-doctrine-lexer) = 3.0.1 -Provides: bundled(php-doctrine-orm) = 2.19.2 +Provides: bundled(php-doctrine-orm) = 2.19.4 Provides: bundled(php-doctrine-persistence) = 3.3.2 Provides: bundled(php-psr-cache) = 3.0.0 Provides: bundled(php-psr-clock) = 1.0.0 @@ -79,20 +79,20 @@ Provides: bundled(php-psr-event-dispatcher) = 1.0.0 Provides: bundled(php-psr-log) = 3.0.0 Provides: bundled(php-ramsey-collection) = 2.0.0 Provides: bundled(php-ramsey-uuid) = 4.7.5 -Provides: bundled(php-symfony-cache) = v6.4.4 -Provides: bundled(php-symfony-cache-contracts) = v3.4.0 +Provides: bundled(php-symfony-cache) = v6.4.6 +Provides: bundled(php-symfony-cache-contracts) = v3.4.2 Provides: bundled(php-symfony-clock) = v6.4.5 -Provides: bundled(php-symfony-config) = v6.4.4 -Provides: bundled(php-symfony-console) = v6.4.4 -Provides: bundled(php-symfony-dependency-injection) = v6.4.4 +Provides: bundled(php-symfony-config) = v6.4.6 +Provides: bundled(php-symfony-console) = v6.4.6 +Provides: bundled(php-symfony-dependency-injection) = v6.4.6 Provides: bundled(php-symfony-deprecation-contracts) = v3.4.0 Provides: bundled(php-symfony-event-dispatcher) = v6.4.3 -Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.4.0 -Provides: bundled(php-symfony-filesystem) = v6.4.3 +Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.4.2 +Provides: bundled(php-symfony-filesystem) = v6.4.6 Provides: bundled(php-symfony-finder) = v6.4.0 -Provides: bundled(php-symfony-http-client) = v6.4.5 -Provides: bundled(php-symfony-http-client-contracts) = v3.4.0 -Provides: bundled(php-symfony-messenger) = v6.4.4 +Provides: bundled(php-symfony-http-client) = v6.4.6 +Provides: bundled(php-symfony-http-client-contracts) = v3.4.2 +Provides: bundled(php-symfony-messenger) = v6.4.6 Provides: bundled(php-symfony-polyfill-ctype) = v1.29.0 Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.29.0 Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.29.0 @@ -102,11 +102,11 @@ Provides: bundled(php-symfony-polyfill-php80) = v1.29.0 Provides: bundled(php-symfony-polyfill-php83) = v1.29.0 Provides: bundled(php-symfony-process) = v6.4.4 Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v6.4.4 -Provides: bundled(php-symfony-service-contracts) = v3.4.1 +Provides: bundled(php-symfony-serializer) = v6.4.6 +Provides: bundled(php-symfony-service-contracts) = v3.4.2 Provides: bundled(php-symfony-stopwatch) = v6.4.3 Provides: bundled(php-symfony-string) = v6.4.4 -Provides: bundled(php-symfony-var-exporter) = v6.4.4 +Provides: bundled(php-symfony-var-exporter) = v6.4.6 Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} @@ -198,6 +198,10 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Wed Apr 24 2024 Remi Collet - 7.1.4-1 +- update to 7.1.4 +- update bundled bartlett/php-compatinfo-db to 6.5.0 + * Tue Mar 19 2024 Remi Collet - 7.1.3-1 - update to 7.1.3 - update bundled bartlett/php-compatinfo-db to 6.4.2 diff --git a/sources b/sources index f062268..6ac91b9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.1.3-7a74bd0.tgz) = ae8fc6d18d7d2038f3d9cf3fab4722f3a91987118b546a0f09272dba5e48ada47559d915139a37f4e2b8d901937ba5afba41b92da2030081e86bf81796f21be3 +SHA512 (php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz) = edceb0829fcded8326aeaed43ccee63aba3a23b69b540fdbfba060be3b79fae149832ed375efae38c313b23d67ca67da3498464b0a21a6630f4b5f0dbbf287e4 From f7faecf0660da8d402602b0ca6369d1b37c96d0b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 06:45:25 +0000 Subject: [PATCH 56/64] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 8a4d74f..08056c1 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -20,7 +20,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -198,6 +198,9 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 7.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Wed Apr 24 2024 Remi Collet - 7.1.4-1 - update to 7.1.4 - update bundled bartlett/php-compatinfo-db to 6.5.0 From ae67202b89d9c1f2897c36e19ba642fb4317cdfc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 7 Nov 2024 09:04:09 +0100 Subject: [PATCH 57/64] update bundled bartlett/php-compatinfo-db to 6.12.0 update bundled dependencies optional support build with composer-generators --- php-bartlett-PHP-CompatInfo.spec | 124 +++++++++++++++++-------------- 1 file changed, 70 insertions(+), 54 deletions(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 08056c1..1b0c3b2 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -8,6 +8,8 @@ # +%bcond_with generators + %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} %global gh_commit 9875282a35266aa2b66416303c06edcd70fc50a1 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) @@ -20,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -39,6 +41,9 @@ BuildArch: noarch BuildRequires: php(language) >= 8.1 BuildRequires: php-cli BuildRequires: php-json +%if %{with generators} +BuildRequires: composer-generators +%endif Requires: php(language) >= 8.1 Requires: php-cli @@ -53,63 +58,66 @@ Requires: php-simplexml Requires: php-spl Requires: php-xmlreader +%if %{without generators} # Bundled libraries # License BSD-3-Clause -Provides: bundled(php-bartlett-php-compatinfo-db) = 6.5.0 -Provides: bundled(php-nikic-php-parser) = v5.0.2 +Provides: bundled(php-composer(bartlett/php-compatinfo-db)) = 6.12.0 +Provides: bundled(php-composer(nikic/php-parser)) = v5.3.1 # License MIT -Provides: bundled(php-bartlett-sarif-php-sdk) = 1.1.0 -Provides: bundled(php-brick-math) = 0.11.0 -Provides: bundled(php-composer-semver) = 3.4.0 -Provides: bundled(php-doctrine-cache) = 2.2.0 -Provides: bundled(php-doctrine-collections) = 1.8.0 -Provides: bundled(php-doctrine-common) = 3.4.4 -Provides: bundled(php-doctrine-dbal) = 3.8.3 -Provides: bundled(php-doctrine-deprecations) = 1.1.3 -Provides: bundled(php-doctrine-event-manager) = 2.0.0 -Provides: bundled(php-doctrine-inflector) = 2.0.10 -Provides: bundled(php-doctrine-instantiator) = 2.0.0 -Provides: bundled(php-doctrine-lexer) = 3.0.1 -Provides: bundled(php-doctrine-orm) = 2.19.4 -Provides: bundled(php-doctrine-persistence) = 3.3.2 -Provides: bundled(php-psr-cache) = 3.0.0 -Provides: bundled(php-psr-clock) = 1.0.0 -Provides: bundled(php-psr-container) = 2.0.2 -Provides: bundled(php-psr-event-dispatcher) = 1.0.0 -Provides: bundled(php-psr-log) = 3.0.0 -Provides: bundled(php-ramsey-collection) = 2.0.0 -Provides: bundled(php-ramsey-uuid) = 4.7.5 -Provides: bundled(php-symfony-cache) = v6.4.6 -Provides: bundled(php-symfony-cache-contracts) = v3.4.2 -Provides: bundled(php-symfony-clock) = v6.4.5 -Provides: bundled(php-symfony-config) = v6.4.6 -Provides: bundled(php-symfony-console) = v6.4.6 -Provides: bundled(php-symfony-dependency-injection) = v6.4.6 -Provides: bundled(php-symfony-deprecation-contracts) = v3.4.0 -Provides: bundled(php-symfony-event-dispatcher) = v6.4.3 -Provides: bundled(php-symfony-event-dispatcher-contracts) = v3.4.2 -Provides: bundled(php-symfony-filesystem) = v6.4.6 -Provides: bundled(php-symfony-finder) = v6.4.0 -Provides: bundled(php-symfony-http-client) = v6.4.6 -Provides: bundled(php-symfony-http-client-contracts) = v3.4.2 -Provides: bundled(php-symfony-messenger) = v6.4.6 -Provides: bundled(php-symfony-polyfill-ctype) = v1.29.0 -Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.29.0 -Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.29.0 -Provides: bundled(php-symfony-polyfill-mbstring) = v1.29.0 -Provides: bundled(php-symfony-polyfill-php72) = v1.29.0 -Provides: bundled(php-symfony-polyfill-php80) = v1.29.0 -Provides: bundled(php-symfony-polyfill-php83) = v1.29.0 -Provides: bundled(php-symfony-process) = v6.4.4 -Provides: bundled(php-symfony-requirements-checker) = v2.0.1 -Provides: bundled(php-symfony-serializer) = v6.4.6 -Provides: bundled(php-symfony-service-contracts) = v3.4.2 -Provides: bundled(php-symfony-stopwatch) = v6.4.3 -Provides: bundled(php-symfony-string) = v6.4.4 -Provides: bundled(php-symfony-var-exporter) = v6.4.6 +Provides: bundled(php-composer(bartlett/sarif-php-sdk)) = 1.5.0 +Provides: bundled(php-composer(brick/math)) = 0.12.1 +Provides: bundled(php-composer(composer/semver)) = 3.4.3 +Provides: bundled(php-composer(doctrine/cache)) = 2.2.0 +Provides: bundled(php-composer(doctrine/collections)) = 1.8.0 +Provides: bundled(php-composer(doctrine/common)) = 3.4.5 +Provides: bundled(php-composer(doctrine/dbal)) = 3.9.3 +Provides: bundled(php-composer(doctrine/deprecations)) = 1.1.3 +Provides: bundled(php-composer(doctrine/event-manager)) = 2.0.1 +Provides: bundled(php-composer(doctrine/inflector)) = 2.0.10 +Provides: bundled(php-composer(doctrine/instantiator)) = 2.0.0 +Provides: bundled(php-composer(doctrine/lexer)) = 3.0.1 +Provides: bundled(php-composer(doctrine/orm)) = 2.20.0 +Provides: bundled(php-composer(doctrine/persistence)) = 3.4.0 +Provides: bundled(php-composer(psr/cache)) = 3.0.0 +Provides: bundled(php-composer(psr/clock)) = 1.0.0 +Provides: bundled(php-composer(psr/container)) = 2.0.2 +Provides: bundled(php-composer(psr/event-dispatcher)) = 1.0.0 +Provides: bundled(php-composer(psr/log)) = 3.0.2 +Provides: bundled(php-composer(ramsey/collection)) = 2.0.0 +Provides: bundled(php-composer(ramsey/uuid)) = 4.7.6 +Provides: bundled(php-composer(symfony/cache)) = v6.4.14 +Provides: bundled(php-composer(symfony/cache-contracts)) = v3.5.0 +Provides: bundled(php-composer(symfony/clock)) = v6.4.13 +Provides: bundled(php-composer(symfony/config)) = v6.4.14 +Provides: bundled(php-composer(symfony/console)) = v6.4.14 +Provides: bundled(php-composer(symfony/dependency-injection)) = v6.4.13 +Provides: bundled(php-composer(symfony/deprecation-contracts)) = v3.5.0 +Provides: bundled(php-composer(symfony/event-dispatcher)) = v6.4.13 +Provides: bundled(php-composer(symfony/event-dispatcher-contracts)) = v3.5.0 +Provides: bundled(php-composer(symfony/filesystem)) = v6.4.13 +Provides: bundled(php-composer(symfony/finder)) = v6.4.13 +Provides: bundled(php-composer(symfony/http-client)) = v6.4.14 +Provides: bundled(php-composer(symfony/http-client-contracts)) = v3.5.0 +Provides: bundled(php-composer(symfony/messenger)) = v6.4.13 +Provides: bundled(php-composer(symfony/polyfill-ctype)) = v1.31.0 +Provides: bundled(php-composer(symfony/polyfill-intl-grapheme)) = v1.31.0 +Provides: bundled(php-composer(symfony/polyfill-intl-normalizer)) = v1.31.0 +Provides: bundled(php-composer(symfony/polyfill-mbstring)) = v1.31.0 +Provides: bundled(php-composer(symfony/polyfill-php72)) = v1.31.0 +Provides: bundled(php-composer(symfony/polyfill-php80)) = v1.31.0 +Provides: bundled(php-composer(symfony/polyfill-php83)) = v1.31.0 +Provides: bundled(php-composer(symfony/polyfill-php84)) = v1.31.0 +Provides: bundled(php-composer(symfony/process)) = v6.4.14 +Provides: bundled(php-composer(symfony/requirements-checker)) = v2.0.1 +Provides: bundled(php-composer(symfony/serializer)) = v6.4.13 +Provides: bundled(php-composer(symfony/service-contracts)) = v3.5.0 +Provides: bundled(php-composer(symfony/stopwatch)) = v6.4.13 +Provides: bundled(php-composer(symfony/string)) = v6.4.13 +Provides: bundled(php-composer(symfony/var-exporter)) = v6.4.13 -Provides: phpcompatinfo = %{version} Provides: php-composer(bartlett/php-compatinfo) = %{version} +%endif +Provides: phpcompatinfo = %{version} %description @@ -140,6 +148,7 @@ done rm -r vendor/bartlett/*/.github rm -r vendor/bartlett/*/.changes +%if %{without generators} : List bundled libraries and Licenses php -r ' $pkgs = file_get_contents("vendor/composer/installed.json"); @@ -152,13 +161,15 @@ php -r ' foreach($pkgs["packages"] as $pkg) { $lic = implode(" and ", $pkg["license"]); if (!isset($res[$lic])) $res[$lic] = []; - $res[$lic][] = sprintf("Provides: bundled(php-%s) = %s", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); + $res[$lic][] = sprintf("Provides: bundled(php-composer(%s)) = %s", $pkg["name"], $pkg["version"]); } foreach($res as $lic => $lib) { sort($lib); printf("# License %s\n%s\n", $lic, implode("\n", $lib)); } ' +%endif + %build # Nothing @@ -198,6 +209,11 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Thu Nov 7 2024 Remi Collet - 7.1.4-3 +- update bundled bartlett/php-compatinfo-db to 6.12.0 +- update bundled dependencies +- optional support build with composer-generators + * Fri Jul 19 2024 Fedora Release Engineering - 7.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 8274c89783f7f82af72e0b581bc3abfd409f6ad6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 7 Nov 2024 09:12:00 +0100 Subject: [PATCH 58/64] refreshed sources --- sources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources b/sources index 6ac91b9..003e67e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz) = edceb0829fcded8326aeaed43ccee63aba3a23b69b540fdbfba060be3b79fae149832ed375efae38c313b23d67ca67da3498464b0a21a6630f4b5f0dbbf287e4 +SHA512 (php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz) = fda8cebf9471cb7c49b91137a89e8b051e447d13dad14b1b8b19854f83ab049b53cb21dd965febb21832135dc7f4e79197efe68fe11fdb48e2d8387fe8a22c19 From e51304d5a1665242886584856a088996e3520acb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 7 Nov 2024 09:43:07 +0100 Subject: [PATCH 59/64] hack for PHP 8.4 --- php-bartlett-PHP-CompatInfo.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 1b0c3b2..3df8300 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 3%{?dist} +Release: 4%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -148,6 +148,9 @@ done rm -r vendor/bartlett/*/.github rm -r vendor/bartlett/*/.changes +: Hack for PHP 8.4 +sed -e '/php83/d;s/php82/php83/' config/set/up-to-php83.php | tee config/set/up-to-php84.php + %if %{without generators} : List bundled libraries and Licenses php -r ' @@ -209,6 +212,9 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Thu Nov 7 2024 Remi Collet - 7.1.4-4 +- hack for PHP 8.4 + * Thu Nov 7 2024 Remi Collet - 7.1.4-3 - update bundled bartlett/php-compatinfo-db to 6.12.0 - update bundled dependencies From f17278ece3b8fac93accdeb56e440798426bb2dd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 08:56:09 +0000 Subject: [PATCH 60/64] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 3df8300..b2f87da 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -22,7 +22,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 4%{?dist} +Release: 5%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -212,6 +212,9 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 7.1.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Nov 7 2024 Remi Collet - 7.1.4-4 - hack for PHP 8.4 From 788b91ce6da17d14e0053c3edfbeaef5261568c0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 5 May 2025 07:32:48 +0200 Subject: [PATCH 61/64] update to 7.2.3 re-license spec file to CECILL-2.1 always build with composer-generators update bundled bartlett/php-compatinfo-db to 6.16.0 --- .gitignore | 1 + ...hp-bartlett-PHP-CompatInfo-7.2.3-rpm.patch | 8 +- php-bartlett-PHP-CompatInfo.spec | 112 +++--------------- sources | 2 +- 4 files changed, 21 insertions(+), 102 deletions(-) rename php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch => php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch (51%) diff --git a/.gitignore b/.gitignore index 7626a63..002d70f 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,4 @@ clog /php-bartlett-PHP-CompatInfo-7.1.2-072d0f8.tgz /php-bartlett-PHP-CompatInfo-7.1.3-7a74bd0.tgz /php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz +/php-bartlett-PHP-CompatInfo-7.2.3-25777bc.tgz diff --git a/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch b/php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch similarity index 51% rename from php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch rename to php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch index 92cebab..a6a4931 100644 --- a/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch @@ -1,7 +1,7 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2021-12-13 12:09:12.000000000 +0100 -+++ ./bin/phpcompatinfo 2021-12-13 12:12:30.838533965 +0100 -@@ -6,6 +6,10 @@ if (PHP_SAPI !== 'cli') { +--- ./bin/phpcompatinfo.rpm 2025-05-04 07:31:28.259594805 +0200 ++++ ./bin/phpcompatinfo 2025-05-04 07:32:09.736421056 +0200 +@@ -15,6 +15,10 @@ if (PHP_SAPI !== 'cli') { return; } @@ -11,4 +11,4 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo + gc_disable(); // performance boost - require_once dirname(__DIR__) . '/config/bootstrap.php'; + require_once dirname(__DIR__) . '/autoload.php'; diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index b2f87da..f28d773 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -1,28 +1,26 @@ # remirepo/fedora spec file for php-bartlett-PHP-CompatInfo # -# Copyright (c) 2011-2024 Remi Collet -# License: CC-BY-SA-4.0 -# http://creativecommons.org/licenses/by-sa/4.0/ +# SPDX-FileCopyrightText: Copyright 2011-2025 Remi Collet +# SPDX-License-Identifier: CECILL-2.1 +# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # # Please, preserve the changelog entries # -%bcond_with generators - %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 9875282a35266aa2b66416303c06edcd70fc50a1 +%global gh_commit 25777bc305fac9344a2193e5328f7743eb6b77c9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 2024-04-24 +%global gh_date 2025-05-01 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.1.4 +%global upstream_version 7.2.3 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 5%{?dist} +Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -35,15 +33,13 @@ Source1: fedora-review-check Source9: makesrc.sh # Relocate the database -Patch0: %{name}-6.0.0-rpm.patch +Patch0: %{name}-7.2.3-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 8.1 BuildRequires: php-cli BuildRequires: php-json -%if %{with generators} BuildRequires: composer-generators -%endif Requires: php(language) >= 8.1 Requires: php-cli @@ -58,65 +54,6 @@ Requires: php-simplexml Requires: php-spl Requires: php-xmlreader -%if %{without generators} -# Bundled libraries -# License BSD-3-Clause -Provides: bundled(php-composer(bartlett/php-compatinfo-db)) = 6.12.0 -Provides: bundled(php-composer(nikic/php-parser)) = v5.3.1 -# License MIT -Provides: bundled(php-composer(bartlett/sarif-php-sdk)) = 1.5.0 -Provides: bundled(php-composer(brick/math)) = 0.12.1 -Provides: bundled(php-composer(composer/semver)) = 3.4.3 -Provides: bundled(php-composer(doctrine/cache)) = 2.2.0 -Provides: bundled(php-composer(doctrine/collections)) = 1.8.0 -Provides: bundled(php-composer(doctrine/common)) = 3.4.5 -Provides: bundled(php-composer(doctrine/dbal)) = 3.9.3 -Provides: bundled(php-composer(doctrine/deprecations)) = 1.1.3 -Provides: bundled(php-composer(doctrine/event-manager)) = 2.0.1 -Provides: bundled(php-composer(doctrine/inflector)) = 2.0.10 -Provides: bundled(php-composer(doctrine/instantiator)) = 2.0.0 -Provides: bundled(php-composer(doctrine/lexer)) = 3.0.1 -Provides: bundled(php-composer(doctrine/orm)) = 2.20.0 -Provides: bundled(php-composer(doctrine/persistence)) = 3.4.0 -Provides: bundled(php-composer(psr/cache)) = 3.0.0 -Provides: bundled(php-composer(psr/clock)) = 1.0.0 -Provides: bundled(php-composer(psr/container)) = 2.0.2 -Provides: bundled(php-composer(psr/event-dispatcher)) = 1.0.0 -Provides: bundled(php-composer(psr/log)) = 3.0.2 -Provides: bundled(php-composer(ramsey/collection)) = 2.0.0 -Provides: bundled(php-composer(ramsey/uuid)) = 4.7.6 -Provides: bundled(php-composer(symfony/cache)) = v6.4.14 -Provides: bundled(php-composer(symfony/cache-contracts)) = v3.5.0 -Provides: bundled(php-composer(symfony/clock)) = v6.4.13 -Provides: bundled(php-composer(symfony/config)) = v6.4.14 -Provides: bundled(php-composer(symfony/console)) = v6.4.14 -Provides: bundled(php-composer(symfony/dependency-injection)) = v6.4.13 -Provides: bundled(php-composer(symfony/deprecation-contracts)) = v3.5.0 -Provides: bundled(php-composer(symfony/event-dispatcher)) = v6.4.13 -Provides: bundled(php-composer(symfony/event-dispatcher-contracts)) = v3.5.0 -Provides: bundled(php-composer(symfony/filesystem)) = v6.4.13 -Provides: bundled(php-composer(symfony/finder)) = v6.4.13 -Provides: bundled(php-composer(symfony/http-client)) = v6.4.14 -Provides: bundled(php-composer(symfony/http-client-contracts)) = v3.5.0 -Provides: bundled(php-composer(symfony/messenger)) = v6.4.13 -Provides: bundled(php-composer(symfony/polyfill-ctype)) = v1.31.0 -Provides: bundled(php-composer(symfony/polyfill-intl-grapheme)) = v1.31.0 -Provides: bundled(php-composer(symfony/polyfill-intl-normalizer)) = v1.31.0 -Provides: bundled(php-composer(symfony/polyfill-mbstring)) = v1.31.0 -Provides: bundled(php-composer(symfony/polyfill-php72)) = v1.31.0 -Provides: bundled(php-composer(symfony/polyfill-php80)) = v1.31.0 -Provides: bundled(php-composer(symfony/polyfill-php83)) = v1.31.0 -Provides: bundled(php-composer(symfony/polyfill-php84)) = v1.31.0 -Provides: bundled(php-composer(symfony/process)) = v6.4.14 -Provides: bundled(php-composer(symfony/requirements-checker)) = v2.0.1 -Provides: bundled(php-composer(symfony/serializer)) = v6.4.13 -Provides: bundled(php-composer(symfony/service-contracts)) = v3.5.0 -Provides: bundled(php-composer(symfony/stopwatch)) = v6.4.13 -Provides: bundled(php-composer(symfony/string)) = v6.4.13 -Provides: bundled(php-composer(symfony/var-exporter)) = v6.4.13 - -Provides: php-composer(bartlett/php-compatinfo) = %{version} -%endif Provides: phpcompatinfo = %{version} @@ -148,31 +85,6 @@ done rm -r vendor/bartlett/*/.github rm -r vendor/bartlett/*/.changes -: Hack for PHP 8.4 -sed -e '/php83/d;s/php82/php83/' config/set/up-to-php83.php | tee config/set/up-to-php84.php - -%if %{without generators} -: List bundled libraries and Licenses -php -r ' - $pkgs = file_get_contents("vendor/composer/installed.json"); - $pkgs = json_decode($pkgs, true); - if (!is_array($pkgs) || !isset($pkgs["packages"])) { - echo "cant decode json file\n"; - exit(3); - } - $res = []; - foreach($pkgs["packages"] as $pkg) { - $lic = implode(" and ", $pkg["license"]); - if (!isset($res[$lic])) $res[$lic] = []; - $res[$lic][] = sprintf("Provides: bundled(php-composer(%s)) = %s", $pkg["name"], $pkg["version"]); - } - foreach($res as $lic => $lib) { - sort($lib); - printf("# License %s\n%s\n", $lic, implode("\n", $lib)); - } -' -%endif - %build # Nothing @@ -180,7 +92,7 @@ php -r ' %install mkdir -p %{buildroot}%{_datadir}/%{name} -for i in bin config data resources src vendor composer.* +for i in bin config data resources src vendor composer.* autoload.php do cp -pr $i %{buildroot}%{_datadir}/%{name}/$i done @@ -212,6 +124,12 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Mon May 5 2025 Remi Collet - 7.2.3-1 +- update to 7.2.3 +- re-license spec file to CECILL-2.1 +- always build with composer-generators +- update bundled bartlett/php-compatinfo-db to 6.16.0 + * Sat Jan 18 2025 Fedora Release Engineering - 7.1.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/sources b/sources index 003e67e..3cb93bf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz) = fda8cebf9471cb7c49b91137a89e8b051e447d13dad14b1b8b19854f83ab049b53cb21dd965febb21832135dc7f4e79197efe68fe11fdb48e2d8387fe8a22c19 +SHA512 (php-bartlett-PHP-CompatInfo-7.2.3-25777bc.tgz) = d77a6b4109db57bd451272ef72df66a0845d886f6740bed5cf56cb24a31275c19299f4d3ffd44f23a580cff91a6dc6eddf60b36ce467696983d1709d159e3bc6 From 1ac35df697a303ae052b6b3652d54f544fb4acd0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 05:09:21 +0000 Subject: [PATCH 62/64] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- php-bartlett-PHP-CompatInfo.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index f28d773..94ed77d 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -20,7 +20,7 @@ Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -124,6 +124,9 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 7.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon May 5 2025 Remi Collet - 7.2.3-1 - update to 7.2.3 - re-license spec file to CECILL-2.1 From f7717973593108d2dd14c2909475aae706e2ed97 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 9 Oct 2025 14:43:04 +0200 Subject: [PATCH 63/64] update to 7.2.4 update bundled bartlett/php-compatinfo-db to 6.24.1 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 12 ++++++++---- sources | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 002d70f..a008686 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,4 @@ clog /php-bartlett-PHP-CompatInfo-7.1.3-7a74bd0.tgz /php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz /php-bartlett-PHP-CompatInfo-7.2.3-25777bc.tgz +/php-bartlett-PHP-CompatInfo-7.2.4-165460c.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 94ed77d..a31d7ca 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -9,18 +9,18 @@ %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 25777bc305fac9344a2193e5328f7743eb6b77c9 +%global gh_commit 165460c7b51948ce55f07b2a32670aa97aa06282 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 2025-05-01 +%global gh_date 2025-10-09 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.2.3 +%global upstream_version 7.2.4 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 2%{?dist} +Release: 1%{?dist} Summary: Find out version and the extensions required for a piece of code to run # SPDX: see bundled libraries list below @@ -124,6 +124,10 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Thu Oct 9 2025 Remi Collet - 7.2.4-1 +- update to 7.2.4 +- update bundled bartlett/php-compatinfo-db to 6.24.1 + * Fri Jul 25 2025 Fedora Release Engineering - 7.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild diff --git a/sources b/sources index 3cb93bf..97c8337 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.2.3-25777bc.tgz) = d77a6b4109db57bd451272ef72df66a0845d886f6740bed5cf56cb24a31275c19299f4d3ffd44f23a580cff91a6dc6eddf60b36ce467696983d1709d159e3bc6 +SHA512 (php-bartlett-PHP-CompatInfo-7.2.4-165460c.tgz) = 117f1e8d6febcf3fa69f114cd13df60a64754ef8954636e5703f04fbb57efc0106f1f5ffdd106b93ebac0043ed983762999335ccabddbd6e3abc306e8a7a7c9f From 6841168731a88ff15ff2b434c06fbacacd2b3052 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 25 Nov 2025 09:17:48 +0100 Subject: [PATCH 64/64] update to 7.2.5 update bundled bartlett/php-compatinfo-db to 6.26.0 --- .gitignore | 1 + php-bartlett-PHP-CompatInfo.spec | 14 +++++++------- sources | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index a008686..7d3bdec 100644 --- a/.gitignore +++ b/.gitignore @@ -64,3 +64,4 @@ clog /php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz /php-bartlett-PHP-CompatInfo-7.2.3-25777bc.tgz /php-bartlett-PHP-CompatInfo-7.2.4-165460c.tgz +/php-bartlett-PHP-CompatInfo-7.2.5-56d3215.tgz diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index a31d7ca..0e89b83 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -9,13 +9,13 @@ %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 165460c7b51948ce55f07b2a32670aa97aa06282 +%global gh_commit 56d3215bcf8acb2e822fc9ce21fa934cd6129637 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 2025-10-09 +%global gh_date 2025-11-23 %global gh_owner llaville %global gh_project php-compatinfo -%global upstream_version 7.2.4 +%global upstream_version 7.2.5 #global upstream_prever RC1 Name: php-bartlett-PHP-CompatInfo @@ -38,20 +38,16 @@ Patch0: %{name}-7.2.3-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 8.1 BuildRequires: php-cli -BuildRequires: php-json BuildRequires: composer-generators Requires: php(language) >= 8.1 Requires: php-cli Requires: php-dom -Requires: php-json Requires: php-libxml -Requires: php-pcre Requires: php-phar Requires: php-pdo Requires: php-pdo_sqlite Requires: php-simplexml -Requires: php-spl Requires: php-xmlreader Provides: phpcompatinfo = %{version} @@ -124,6 +120,10 @@ install -D -p -m 755 %{SOURCE1} \ %changelog +* Tue Nov 25 2025 Remi Collet - 7.2.5-1 +- update to 7.2.5 +- update bundled bartlett/php-compatinfo-db to 6.26.0 + * Thu Oct 9 2025 Remi Collet - 7.2.4-1 - update to 7.2.4 - update bundled bartlett/php-compatinfo-db to 6.24.1 diff --git a/sources b/sources index 97c8337..b1418ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-bartlett-PHP-CompatInfo-7.2.4-165460c.tgz) = 117f1e8d6febcf3fa69f114cd13df60a64754ef8954636e5703f04fbb57efc0106f1f5ffdd106b93ebac0043ed983762999335ccabddbd6e3abc306e8a7a7c9f +SHA512 (php-bartlett-PHP-CompatInfo-7.2.5-56d3215.tgz) = 51b2715fccc20ab6fafadf9f9e0d60cc8103f2d435e0133f6020b05d7449761042dd4be30d2a0b141664d6e4193692cc9800b35ccc25d4144b03bae603ec26fe