summaryrefslogtreecommitdiffstats
path: root/php-cakephp.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-12-13 14:07:12 +0100
committerRemi Collet <remi@remirepo.net>2018-12-13 14:07:12 +0100
commit5b1de9ff8acf24dff554e0e381961e01ac3628ae (patch)
tree9ecf74119762e8bd8f8410d446481cc0dfc4b9b9 /php-cakephp.spec
parent552d2bf093ec410abc71ad55b11eee9beabcd083 (diff)
v3.7.0
Diffstat (limited to 'php-cakephp.spec')
-rw-r--r--php-cakephp.spec35
1 files changed, 30 insertions, 5 deletions
diff --git a/php-cakephp.spec b/php-cakephp.spec
index 235e1a4..5ef785e 100644
--- a/php-cakephp.spec
+++ b/php-cakephp.spec
@@ -8,7 +8,7 @@
#
# https://github.com/cakephp/cakephp/releases
-%global gh_commit 6a0b9c74710a56c5974d1c8229c7a91dac780402
+%global gh_commit 56f2d2a69870031cd0527d63a2ddeb3fbe6f05d3
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner cakephp
%global gh_project cakephp
@@ -18,13 +18,12 @@
%global with_tests 0%{!?_without_tests:1}
# https://github.com/cakephp/chronos/releases
-# NOTICE 1.2.1 breaks the test suite
-%global chronos_commit 85bcaea6a832684b32ef54b2487b0c14a172e9e6
+%global chronos_commit 395110125ff577f080fa064dca5c5608a4e77ee1
%global chronos_short %(c=%{chronos_commit}; echo ${c:0:7})
-%global chronos_version 1.1.4
+%global chronos_version 1.2.3
Name: php-%{pk_vendor}
-Version: 3.6.13
+Version: 3.7.0
Release: 1%{?dist}
Summary: The CakePHP framework
@@ -86,6 +85,18 @@ Summary: CakePHP Collection Library
# "cakephp/core": "^3.6.0"
Requires: php(language) >= 5.6
Requires: php-composer(%{pk_vendor}/core) = %{version}
+# from main composer.json
+%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+BuildRequires: (php-composer(psr/simple-cache) >= 1.0.0 with php-composer(psr/simple-cache) < 2)
+Requires: (php-composer(psr/simple-cache) >= 1.0.0 with php-composer(psr/simple-cache) < 2)
+# Optional (from phpcompatinfo report)
+Recommends: php-apcu
+Suggests: php-memcached
+Suggests: php-redis
+%else
+BuildRequires: php-psr-simple-cache >= 1.0.0
+Requires: php-psr-simple-cache >= 1.0.0
+%endif
# From phpcompatinfo report
Requires: php-date
Requires: php-pcre
@@ -259,12 +270,14 @@ require_once '%{php_home}/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('ParentPlugin\\', dirname(__DIR__).'/tests/test_app/Plugin/ParentPlugin/src');
\Fedora\Autoloader\Autoload::addPsr4('PluginJs\\', dirname(__DIR__).'/tests/test_app/Plugin/PluginJs/src');
\Fedora\Autoloader\Dependencies::required([
+ dirname(__DIR__).'/src/Chronos/carbon_compat.php',
dirname(__DIR__).'/src/Core/functions.php',
dirname(__DIR__).'/src/Collection/functions.php',
dirname(__DIR__).'/src/I18n/functions.php',
dirname(__DIR__).'/src/Utility/bootstrap.php',
'%{php_home}/Aura/Intl/autoload.php',
'%{php_home}/Psr/Log/autoload.php',
+ '%{php_home}/Psr/SimpleCache/autoload.php',
'%{php_home}/Zend/Diactoros/autoload.php',
]);
EOF
@@ -277,6 +290,7 @@ require_once '%{php_home}/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('Cake\\Cache\\', __DIR__);
\Fedora\Autoloader\Dependencies::required([
dirname(__DIR__) . '/Core/autoload.php',
+ '%{php_home}/Psr/SimpleCache/autoload.php',
]);
EOF
@@ -403,14 +417,17 @@ exit $ret
%doc src/Cache/composer.json
%doc src/Cache/*md
%{php_home}/%{ns_vendor}/Cache
+%exclude %{php_home}/%{ns_vendor}/Cache/*.md
%files collection
+
%{!?_licensedir:%global license %%doc}
%license src/Collection/LICENSE.txt
%doc src/Collection/composer.json
%doc src/Collection/*md
%dir %{php_home}/%{ns_vendor}
%{php_home}/%{ns_vendor}/Collection
+%exclude %{php_home}/%{ns_vendor}/Collection/*.md
%files core
%{!?_licensedir:%global license %%doc}
@@ -419,6 +436,7 @@ exit $ret
%doc src/Core/*md
%dir %{php_home}/%{ns_vendor}
%{php_home}/%{ns_vendor}/Core
+%exclude %{php_home}/%{ns_vendor}/Core/*.md
%files database
%{!?_licensedir:%global license %%doc}
@@ -426,6 +444,7 @@ exit $ret
%doc src/Database/composer.json
%doc src/Database/*md
%{php_home}/%{ns_vendor}/Database
+%exclude %{php_home}/%{ns_vendor}/Database/*.md
%files datasource
%{!?_licensedir:%global license %%doc}
@@ -433,6 +452,7 @@ exit $ret
%doc src/Datasource/composer.json
%doc src/Datasource/*md
%{php_home}/%{ns_vendor}/Datasource
+%exclude %{php_home}/%{ns_vendor}/Datasource/*.md
%files utility
%{!?_licensedir:%global license %%doc}
@@ -440,9 +460,14 @@ exit $ret
%doc src/Utility/composer.json
%doc src/Utility/*md
%{php_home}/%{ns_vendor}/Utility
+%exclude %{php_home}/%{ns_vendor}/Utility/*.md
%changelog
+* Thu Dec 13 2018 Remi Collet <remi@remirepo.net> - 3.7.0-1
+- update to 3.7.0
+- use Chronos 1.2.3
+
* Mon Nov 5 2018 Remi Collet <remi@remirepo.net> - 3.6.16-1
- update to 3.6.16