]>
Commit | Line | Data |
---|---|---|
212f2750 ER |
1 | # TODO |
2 | # - SimpleTest dependency for -tests: http://simpletest.org/en/download.html | |
87bc8190 ER |
3 | Summary: OpenSource Rapid Development PHP Framework |
4 | Name: cakephp | |
5 | Version: 1.2.1.8004 | |
212f2750 | 6 | Release: 0.5 |
87bc8190 ER |
7 | License: MIT |
8 | Group: Development/Languages/PHP | |
9 | Source0: http://cakeforge.org/frs/download.php/697/cake_%{version}.tar.bz2/donation=%{name}-%{version}.tar.bz2 | |
10 | # Source0-md5: 0d01d1bc4e2df9ccf82130a838b06dd6 | |
d45308bf | 11 | Patch0: console.patch |
212f2750 | 12 | Patch1: config.patch |
87bc8190 ER |
13 | URL: http://www.cakephp.org/ |
14 | BuildRequires: rpmbuild(macros) >= 1.461 | |
15 | Requires: php-common | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _appdir %{php_data_dir}/cake | |
20 | ||
21 | %description | |
22 | CakePHP is a rapid development framework for PHP that provides an | |
23 | extensible architecture for developing, maintaining, and deploying | |
24 | applications. Using commonly known design patterns like MVC and ORM | |
25 | within the convention over configuration paradigm, CakePHP reduces | |
26 | development costs and helps developers write less code. | |
27 | ||
d45308bf ER |
28 | %package console |
29 | Summary: Cake Command-line code generation utility | |
30 | Group: Development/Languages/PHP | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description console | |
34 | Cake Command-line code generation utility to automate programmer | |
35 | chores. | |
36 | ||
37 | %package tests | |
38 | Summary: Tests for CakePHP | |
39 | Summary(pl.UTF-8): Testy dla CakePHP | |
40 | Group: Development/Languages/PHP | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | AutoProv: no | |
43 | AutoReq: no | |
44 | ||
45 | %description tests | |
46 | Tests for CakePHP. | |
47 | ||
48 | %description tests -l pl.UTF-8 | |
49 | Testy dla CakePHP. | |
50 | ||
51 | %package demo | |
52 | Summary: Demo for CakePHP | |
53 | Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu CakePHP | |
54 | Group: Documentation | |
55 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
56 | ||
57 | %description demo | |
58 | Demonstrations and samples for CakePHP. | |
59 | ||
60 | %description demo -l pl.UTF-8 | |
61 | Pliki demonstracyjne i przykłady dla pakietu CakePHP. | |
62 | ||
87bc8190 ER |
63 | %prep |
64 | %setup -q -n cake_%{version} | |
d45308bf | 65 | %patch0 -p1 |
212f2750 | 66 | %patch1 -p1 |
87bc8190 ER |
67 | |
68 | mv cake/{LICENSE,VERSION}.txt . | |
d45308bf ER |
69 | rm cake/console/cake.bat |
70 | mv cake/console/cake cake.sh | |
87bc8190 ER |
71 | find -name empty | xargs rm -f |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
d45308bf ER |
75 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_examplesdir}/%{name}-%{version}} |
76 | cp -a cake/* $RPM_BUILD_ROOT%{_appdir} | |
77 | cp -a app vendors $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
78 | install -p cake.sh $RPM_BUILD_ROOT%{_bindir}/cake | |
87bc8190 ER |
79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc README | |
86 | %{_appdir} | |
d45308bf ER |
87 | %exclude %{_appdir}/tests |
88 | %exclude %{_appdir}/console | |
89 | ||
90 | %files console | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_bindir}/cake | |
93 | %{_appdir}/console | |
94 | ||
95 | %files tests | |
96 | %defattr(644,root,root,755) | |
97 | %{_appdir}/tests | |
98 | ||
99 | %files demo | |
100 | %defattr(644,root,root,755) | |
101 | %{_examplesdir}/%{name}-%{version} |