Author: glen                         Date: Mon Nov 16 12:32:03 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- subpackages for -console, -tests, -demo

---- Files affected:
packages/cakephp:
   cakephp.spec (1.1 -> 1.2) , console.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/cakephp/cakephp.spec
diff -u packages/cakephp/cakephp.spec:1.1 packages/cakephp/cakephp.spec:1.2
--- packages/cakephp/cakephp.spec:1.1   Mon Feb  2 14:01:35 2009
+++ packages/cakephp/cakephp.spec       Mon Nov 16 13:31:57 2009
@@ -2,11 +2,12 @@
 Summary:       OpenSource Rapid Development PHP Framework
 Name:          cakephp
 Version:       1.2.1.8004
-Release:       0.1
+Release:       0.4
 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
 URL:           http://www.cakephp.org/
 BuildRequires: rpmbuild(macros) >= 1.461
 Requires:      php-common
@@ -22,16 +23,56 @@
 within the convention over configuration paradigm, CakePHP reduces
 development costs and helps developers write less code.
 
+%package console
+Summary:       Cake Command-line code generation utility
+Group:         Development/Languages/PHP
+Requires:      %{name} = %{version}-%{release}
+
+%description console
+Cake Command-line code generation utility to automate programmer
+chores.
+
+%package tests
+Summary:       Tests for CakePHP
+Summary(pl.UTF-8):     Testy dla CakePHP
+Group:         Development/Languages/PHP
+Requires:      %{name} = %{version}-%{release}
+AutoProv:      no
+AutoReq:       no
+
+%description tests
+Tests for CakePHP.
+
+%description tests -l pl.UTF-8
+Testy dla CakePHP.
+
+%package demo
+Summary:       Demo for CakePHP
+Summary(pl.UTF-8):     Pliki demonstracyjne dla pakietu CakePHP
+Group:         Documentation
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description demo
+Demonstrations and samples for CakePHP.
+
+%description demo -l pl.UTF-8
+Pliki demonstracyjne i przykłady dla pakietu CakePHP.
+
 %prep
 %setup -q -n cake_%{version}
+%patch0 -p1
 
 mv cake/{LICENSE,VERSION}.txt .
+rm cake/console/cake.bat
+mv cake/console/cake cake.sh
 find -name empty | xargs rm -f
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_appdir}
-cp -a app cake vendors $RPM_BUILD_ROOT%{_appdir}
+install -d 
$RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_examplesdir}/%{name}-%{version}}
+cp -a cake/* $RPM_BUILD_ROOT%{_appdir}
+cp -a app vendors $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install -p cake.sh $RPM_BUILD_ROOT%{_bindir}/cake
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -40,6 +81,21 @@
 %defattr(644,root,root,755)
 %doc README
 %{_appdir}
+%exclude %{_appdir}/tests
+%exclude %{_appdir}/console
+
+%files console
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/cake
+%{_appdir}/console
+
+%files tests
+%defattr(644,root,root,755)
+%{_appdir}/tests
+
+%files demo
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -47,5 +103,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2009/11/16 12:31:57  glen
+- subpackages for -console, -tests, -demo
+
 Revision 1.1  2009/02/02 13:01:35  glen
 - new

================================================================
Index: packages/cakephp/console.patch
diff -u /dev/null packages/cakephp/console.patch:1.1
--- /dev/null   Mon Nov 16 13:32:03 2009
+++ packages/cakephp/console.patch      Mon Nov 16 13:31:58 2009
@@ -0,0 +1,25 @@
+--- cake_1.2.1.8004/cake/console/cake~ 2009-11-16 14:25:48.000000000 +0200
++++ cake_1.2.1.8004/cake/console/cake  2009-11-16 14:26:07.636266578 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ 
################################################################################
+ #
+ # Bake is a shell script for running CakePHP bake script
+@@ -22,11 +22,9 @@
+ # @license                    
http://www.opensource.org/licenses/mit-license.php The MIT License
+ #
+ 
################################################################################
+-clear
+ 
+-LIB=${0/%cake/}
+-APP=`pwd`
++LIB=/usr/share/php/cake/console
++APP=$(pwd)
+ 
+-exec php -q ${LIB}cake.php -working "${APP}" "$@"
+-
+-exit;
+\ No newline at end of file
++exec php -q ${LIB}/cake.php -working "${APP}" "$@"
++exit 1
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cakephp/cakephp.spec?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to