1 Summary: OpenSource Rapid Development PHP Framework
6 Group: Development/Languages/PHP
7 Source0: http://cakeforge.org/frs/download.php/697/cake_%{version}.tar.bz2/donation=%{name}-%{version}.tar.bz2
8 # Source0-md5: 0d01d1bc4e2df9ccf82130a838b06dd6
10 URL: http://www.cakephp.org/
11 BuildRequires: rpmbuild(macros) >= 1.461
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _appdir %{php_data_dir}/cake
19 CakePHP is a rapid development framework for PHP that provides an
20 extensible architecture for developing, maintaining, and deploying
21 applications. Using commonly known design patterns like MVC and ORM
22 within the convention over configuration paradigm, CakePHP reduces
23 development costs and helps developers write less code.
26 Summary: Cake Command-line code generation utility
27 Group: Development/Languages/PHP
28 Requires: %{name} = %{version}-%{release}
31 Cake Command-line code generation utility to automate programmer
35 Summary: Tests for CakePHP
36 Summary(pl.UTF-8): Testy dla CakePHP
37 Group: Development/Languages/PHP
38 Requires: %{name} = %{version}-%{release}
45 %description tests -l pl.UTF-8
49 Summary: Demo for CakePHP
50 Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu CakePHP
52 Requires: %{name} = %{epoch}:%{version}-%{release}
55 Demonstrations and samples for CakePHP.
57 %description demo -l pl.UTF-8
58 Pliki demonstracyjne i przykłady dla pakietu CakePHP.
61 %setup -q -n cake_%{version}
64 mv cake/{LICENSE,VERSION}.txt .
65 rm cake/console/cake.bat
66 mv cake/console/cake cake.sh
67 find -name empty | xargs rm -f
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_examplesdir}/%{name}-%{version}}
72 cp -a cake/* $RPM_BUILD_ROOT%{_appdir}
73 cp -a app vendors $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
74 install -p cake.sh $RPM_BUILD_ROOT%{_bindir}/cake
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
83 %exclude %{_appdir}/tests
84 %exclude %{_appdir}/console
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_bindir}/cake
92 %defattr(644,root,root,755)
96 %defattr(644,root,root,755)
97 %{_examplesdir}/%{name}-%{version}