From 23a61a8217c9bc53ae3298e16b5aa33b18df29e2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 11 Feb 2019 08:58:15 +0100 Subject: update to 3.7.4 add event subpackage use Chronos 1.2.4 --- makesrc2.sh | 2 +- php-cakephp.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++--- src/Core/composer.json | 3 +- 3 files changed, 78 insertions(+), 6 deletions(-) diff --git a/makesrc2.sh b/makesrc2.sh index d538bb5..8cdfb70 100755 --- a/makesrc2.sh +++ b/makesrc2.sh @@ -16,7 +16,7 @@ git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT echo "Getting commit..." pushd $PROJECT-$COMMIT git checkout $COMMIT -cp composer.json ../composer.json +cp composer.json ../composer-chronos.json popd echo "Archiving..." diff --git a/php-cakephp.spec b/php-cakephp.spec index 65d4412..2c199fb 100644 --- a/php-cakephp.spec +++ b/php-cakephp.spec @@ -8,7 +8,7 @@ # # https://github.com/cakephp/cakephp/releases -%global gh_commit b0b9a3713720b30cd8e90c8b1a317a8294b2513a +%global gh_commit 5c78a61c0ed7fbd56ce9d7cee3c6d6f9b27af46b %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner cakephp %global gh_project cakephp @@ -18,12 +18,12 @@ %global with_tests 0%{!?_without_tests:1} # https://github.com/cakephp/chronos/releases -%global chronos_commit 395110125ff577f080fa064dca5c5608a4e77ee1 +%global chronos_commit ebda7326d4a65e53bc5bb915ebbbeee98f1926b0 %global chronos_short %(c=%{chronos_commit}; echo ${c:0:7}) -%global chronos_version 1.2.3 +%global chronos_version 1.2.4 Name: php-%{pk_vendor} -Version: 3.7.3 +Version: 3.7.4 Release: 1%{?dist} Summary: The CakePHP framework @@ -146,6 +146,10 @@ Requires: php-json Requires: php-mbstring Requires: php-pcre Requires: php-spl +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +Recommends: php-composer(%{pk_vendor}/cache) = %{version} +Recommends: php-composer(%{pk_vendor}/event) = %{version} +%endif Provides: php-composer(%{pk_vendor}/core) = %{version} %description core @@ -209,6 +213,11 @@ Requires: php-composer(%{pk_vendor}/core) = %{version} # From phpcompatinfo report Requires: php-json Requires: php-spl +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +Recommends: php-composer(%{pk_vendor}/utility) = %{version} +Recommends: php-composer(%{pk_vendor}/collection) = %{version} +Recommends: php-composer(%{pk_vendor}/cache) = %{version} +%endif Provides: php-composer(%{pk_vendor}/datasource) = %{version} %description datasource @@ -220,6 +229,23 @@ datasources and traits to help you quickly implement the interfaces provided by this package. +%package event +Summary: CakePHP Event Library +# From composer.json "require": { +# "php": ">=5.6.0", +# "cakephp/core": "^3.6.0" +Requires: php(language) >= 5.6 +Requires: php-composer(%{pk_vendor}/core) = %{version} +# From phpcompatinfo report +Requires: php-pcre +Requires: php-spl + +%description event +CakePHP Event Library: + +CakePHP event dispatcher library that helps implementing the observer pattern. + + %package log Summary: logging library # From composer.json "require": { @@ -366,6 +392,17 @@ require_once '%{php_home}/Fedora/Autoloader/autoload.php'; ]); EOF +: ===== Generate "event" autoloader +cat << 'EOF' | tee src/Event/autoload.php + - 3.7.4-1 +- update to 3.7.4 +- add event subpackage +- use Chronos 1.2.4 + * Tue Jan 22 2019 Remi Collet - 3.7.3-1 - update to 3.7.3 diff --git a/src/Core/composer.json b/src/Core/composer.json index 3a48585..0ee9afc 100644 --- a/src/Core/composer.json +++ b/src/Core/composer.json @@ -26,7 +26,8 @@ "cakephp/utility": "^3.6.0" }, "suggest": { - "cakephp/event": "To use PluginApplicationInterface or plugin applications." + "cakephp/event": "To use PluginApplicationInterface or plugin applications.", + "cakephp/cache": "To use Configure::store() and restore()." }, "autoload": { "psr-4": { -- cgit