From 212f2750d05e10b6dc0460847eff1ce95046a75d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 17 Nov 2009 15:59:21 +0000 Subject: [PATCH] - allow LOGS/CACHE constants from application side Changed files: cakephp.spec -> 1.3 config.patch -> 1.1 --- cakephp.spec | 6 +++++- config.patch | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 config.patch diff --git a/cakephp.spec b/cakephp.spec index 88a0e70..233358b 100644 --- a/cakephp.spec +++ b/cakephp.spec @@ -1,12 +1,15 @@ +# TODO +# - SimpleTest dependency for -tests: http://simpletest.org/en/download.html Summary: OpenSource Rapid Development PHP Framework Name: cakephp Version: 1.2.1.8004 -Release: 0.4 +Release: 0.5 License: MIT Group: Development/Languages/PHP Source0: http://cakeforge.org/frs/download.php/697/cake_%{version}.tar.bz2/donation=%{name}-%{version}.tar.bz2 # Source0-md5: 0d01d1bc4e2df9ccf82130a838b06dd6 Patch0: console.patch +Patch1: config.patch URL: http://www.cakephp.org/ BuildRequires: rpmbuild(macros) >= 1.461 Requires: php-common @@ -60,6 +63,7 @@ Pliki demonstracyjne i przykłady dla pakietu CakePHP. %prep %setup -q -n cake_%{version} %patch0 -p1 +%patch1 -p1 mv cake/{LICENSE,VERSION}.txt . rm cake/console/cake.bat diff --git a/config.patch b/config.patch new file mode 100644 index 0000000..c260306 --- /dev/null +++ b/config.patch @@ -0,0 +1,18 @@ +--- cake_1.2.1.8004/cake/config/paths.php~ 2009-11-16 18:02:02.000000000 +0200 ++++ cake_1.2.1.8004/cake/config/paths.php 2009-11-17 17:48:12.232914111 +0200 +@@ -156,11 +156,15 @@ + /** + * Path to the logs directory. + */ ++if (!defined('LOGS')) { + define('LOGS', TMP.'logs'.DS); ++} + /** + * Path to the cache files directory. It can be shared between hosts in a multi-server setup. + */ ++if (!defined('CACHE')) { + define('CACHE', TMP.'cache'.DS); ++} + /** + * Path to the vendors directory. + */ -- 2.44.0