From 7c0216f8ab9c7896fced870bcd5669430654c449 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 10 Feb 2020 15:51:05 +0100 Subject: add Form and ORM components --- php-cakephp4.spec | 130 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 125 insertions(+), 5 deletions(-) diff --git a/php-cakephp4.spec b/php-cakephp4.spec index 341e317..77122d2 100644 --- a/php-cakephp4.spec +++ b/php-cakephp4.spec @@ -7,7 +7,7 @@ # Please, preserve the changelog entries # -# TODO: Form, ORM +# TODO: # Auth, Command, Controller, Error, Mailer, Network, Routing, Shell, TestSuite, View # https://github.com/cakephp/cakephp/releases @@ -28,7 +28,7 @@ Name: php-%{pk_vendor}%{major} Version: 4.0.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The CakePHP framework License: MIT @@ -348,6 +348,25 @@ CakePHP FileSystem Library: CakePHP filesystem convenience classes to help you work with files and folders. +%package form +Summary: CakePHP Form Library +# From composer.json "require": { +# "php": ">=7.2.0", +# "cakephp/event": "^4.0", +# "cakephp/validation": "^4.0" +Requires: php(language) >= 7.2 +Requires: php-composer(%{pk_vendor}/event) = %{version} +Requires: php-composer(%{pk_vendor}/validation) = %{version} +# From phpcompatinfo report +Requires: php-hash +Requires: php-json +Requires: php-pcre +Provides: php-composer(%{pk_vendor}/form) = %{version} + +%description form +CakePHP Form Library: + + %package http Summary: CakePHP Http Library # From composer.json "require": { @@ -481,6 +500,39 @@ Provides: php-composer(%{pk_vendor}/log) = %{version} CakePHP logging library with support for multiple different streams. +%package orm +Summary: CakePHP ORM Classes +# From composer.json "require": { +# "php": ">=7.2.0", +# "cakephp/collection": "^4.0", +# "cakephp/core": "^4.0", +# "cakephp/datasource": "^4.0", +# "cakephp/database": "^4.0", +# "cakephp/event": "^4.0", +# "cakephp/utility": "^4.0", +# "cakephp/validation": "^4.0" +Requires: php(language) >= 7.2 +Requires: php-composer(%{pk_vendor}/collection) = %{version} +Requires: php-composer(%{pk_vendor}/core) = %{version} +Requires: php-composer(%{pk_vendor}/datasource) = %{version} +Requires: php-composer(%{pk_vendor}/database) = %{version} +Requires: php-composer(%{pk_vendor}/event) = %{version} +Requires: php-composer(%{pk_vendor}/utility) = %{version} +Requires: php-composer(%{pk_vendor}/validation) = %{version} +# From phpcompatinfo report +Requires: php-reflection +Requires: php-json +Requires: php-pcre +Requires: php-spl +Provides: php-composer(%{pk_vendor}/orm) = %{version} + +%description orm +CakePHP ORM Classes: + +CakePHP ORM - Provides a flexible and powerful ORM implementing +a data-mapper pattern. + + %package utility Summary: CakePHP Utility Classes # From composer.json "require": { @@ -698,6 +750,18 @@ require_once '%{php_home}/Fedora/Autoloader/autoload.php'; ]); EOF +: ===== Generate "form" autoloader +cat << 'EOF' | tee src/Form/autoload.php + - 4.0.3-3 +- add Form and ORM components + * Mon Feb 10 2020 Remi Collet - 4.0.3-2 - use Chronos 2.0.2 - add Http component -- cgit