-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cakephp.spec
135 lines (104 loc) · 3.63 KB
/
cakephp.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
%define commit 924fb6f
%define tag 60df687
Name: cakephp
Version: 1.3.13
Release: 2
Summary: MVC rapid application development framework for PHP
License: MIT
Group: Development/PHP
URL: http://cakephp.org/
# https://github.com/cakephp/cakephp/tarball/%{version}:
Source0: %{name}-%{name}-%{version}-0-g%{commit}.tar.gz
# Fix the path to launch the console php script to an
# absolute path:
Patch0: %{name}-%{version}-mdv-fix-lib-path.patch
BuildArch: noarch
Requires: apache-mod_php
Requires: php-pdo
Suggests: cakephp-cli
%description
CakePHP is a free, open-source, model-view-controller rapid development
framework for PHP. It's a foundational structure for programmers to create
web applications. CakePHP reduces development costs and helps developers
write less code, making it swiftly and with the least amount of hassle:
* Compatible with versions 4 and 5 of PHP
* Integrated CRUD for database interaction
* Application scaffolding
* Code generation
* MVC architecture
* Request dispatcher with clean, custom URLs and routes
* Built-in validation
* Fast and flexible templating (PHP syntax, with helpers)
* View Helpers for AJAX, JavaScript, HTML Forms and more
* Email, Cookie, Security, Session, and Request Handling Components
* Flexible ACL
* Data Sanitization
* Flexible Caching
* Localization
* Works from any web site directory, with little to no Apache configuration
involved
%package cli
Summary: CakePHP console client
Group: Development/PHP
Requires: %{name}
Requires: php-cli
%description cli
CakePHP is a free, open-source, model-view-controller rapid development
framework for PHP. It's a foundational structure for programmers to create
web applications.
This package contains the console command-line interface to CakePHP. It
features a number of console applications that are used in concert with
other CakePHP features (like ACL or i18n) and for general use in getting you
to launch quicker.
%prep
%setup -q -n %{name}-%{name}-%{tag}
%patch0 -p1
%build
# Remove unnecessary 'empty' files and directories. These were added
# by upstream to workaround braindead MacOS X extracting utilities
# that would silently not create empty directories:
find ./ -type f -name empty -size 0 -print0 | xargs -0 rm -f
# We don't need the msdos command launcher:
CAKEBAT=cake/console/cake.bat
[[ -f ${CAKEBAT} ]] && rm -f ${CAKEBAT}
%install
mkdir -p %{buildroot}%{_datadir}/php/%{name}/cake/console
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -r cake/libs \
cake/tests \
cake/config \
cake/*.php \
%{buildroot}%{_datadir}/php/%{name}/cake
cp -r cake/console/libs \
cake/console/*.php \
%{buildroot}%{_datadir}/php/%{name}/cake/console
cp -r cake/console/cake %{buildroot}%{_bindir}/cake
cp README %{buildroot}%{_docdir}/%{name}
cp cake/*.txt %{buildroot}%{_docdir}/%{name}
%files
%defattr(-,root,root)
%{_datadir}/php/%{name}/cake/libs
%{_datadir}/php/%{name}/cake/tests
%{_datadir}/php/%{name}/cake/config
%{_datadir}/php/%{name}/cake/*.php
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/VERSION.txt
%doc %{_docdir}/%{name}/LICENSE.txt
%files cli
%{_bindir}/cake
%{_datadir}/php/%{name}/cake/console
%changelog
* Sat Nov 05 2011 Joao Victor Duarte Martins <jvdm@mandriva.com.br> 1.3.13-1
+ Revision: 717754
- New version 1.3.13
* Thu Sep 29 2011 Sergey Zhemoitel <serg@mandriva.org> 1.3.12-1
+ Revision: 702038
- new version 1.3.12
* Sun Dec 05 2010 Oden Eriksson <oeriksson@mandriva.com> 1.2.6-2mdv2011.0
+ Revision: 610094
- rebuild
* Fri Mar 19 2010 Joao Victor Martins <jvictor@mandriva.com> 1.2.6-1mdv2010.1
+ Revision: 525266
- Imported to cooker
- Created package structure for cakephp.