1 |
%undefine __find_provides |
2 |
%undefine __find_requires |
3 |
|
4 |
%define php_name ZendFramework |
5 |
|
6 |
Summary: Leading open-source PHP framework |
7 |
Name: php-ZendFramework |
8 |
Version: 1.11.0 |
9 |
Release: %mkrel 1 |
10 |
License: BSD |
11 |
Group: Development/PHP |
12 |
URL: http://framework.zend.com/ |
13 |
Source0: http://framework.zend.com/releases/%{php_name}-%{version}/%{php_name}-%{version}.tar.gz |
14 |
Requires: php >= 5.1.4 |
15 |
Requires: php-bcmath |
16 |
Requires: php-ctype |
17 |
Requires: php-curl |
18 |
Requires: php-dom |
19 |
Requires: php-fileinfo |
20 |
Requires: php-hash |
21 |
Requires: php-iconv |
22 |
Requires: php-json |
23 |
Requires: php-pcre |
24 |
Requires: php-pdo |
25 |
Requires: php-posix |
26 |
Requires: php-session |
27 |
Requires: php-simplexml |
28 |
Requires: php-xml |
29 |
Requires: php-zlib |
30 |
BuildArch: noarch |
31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
32 |
|
33 |
%description |
34 |
Extending the art & spirit of PHP, Zend Framework is based on simplicity, |
35 |
object-oriented best practices, corporate friendly licensing, and a rigorously |
36 |
tested agile codebase. Zend Framework is focused on building more secure, |
37 |
reliable, and modern Web 2.0 applications & web services, and consuming widely |
38 |
available APIs from leading vendors like Google, Amazon, Yahoo!, Flickr, as |
39 |
well as API providers and catalogers like StrikeIron and ProgrammableWeb. |
40 |
|
41 |
%package demos |
42 |
Summary: Demos for the Zend Framework |
43 |
Group: Development/PHP |
44 |
Requires: %{name} = %{version}-%{release} |
45 |
|
46 |
%description demos |
47 |
This package includes Zend Framework demos for the Feeds, Gdata, Mail, OpenId, |
48 |
Pdf, Search-Lucene and Services subpackages. |
49 |
|
50 |
%package tests |
51 |
Summary: Unit tests for the Zend Framework |
52 |
Group: Development/PHP |
53 |
Requires: %{name} = %{version}-%{release} |
54 |
Requires: php-pear-PHPUnit >= 3.0.0 |
55 |
Requires: php-channel-phpunit |
56 |
Requires: fonts-ttf-bitstream-vera |
57 |
BuildRequires: fonts-ttf-bitstream-vera |
58 |
|
59 |
%description tests |
60 |
This package includes Zend Framework unit tests for all available subpackages. |
61 |
|
62 |
%package extras |
63 |
Summary: Zend Framework Extras (ZendX) |
64 |
Group: Development/PHP |
65 |
Requires: %{name} = %{version}-%{release} |
66 |
Provides: %{name}-ZendX = %{version}-%{release} |
67 |
|
68 |
%description extras |
69 |
This package includes the ZendX libraries. |
70 |
|
71 |
%package Cache-Backend-Apc |
72 |
Summary: Zend Framework APC cache backend |
73 |
Group: Development/PHP |
74 |
Requires: %{name} = %{version}-%{release} |
75 |
Requires: php-apc |
76 |
|
77 |
%description Cache-Backend-Apc |
78 |
This package contains the backend for Zend_Cache to store and retrieve data via |
79 |
APC. |
80 |
|
81 |
%package Cache-Backend-Memcached |
82 |
Summary: Zend Framework memcache cache backend |
83 |
Group: Development/PHP |
84 |
Requires: %{name} = %{version}-%{release} |
85 |
Requires: php-memcache |
86 |
|
87 |
%description Cache-Backend-Memcached |
88 |
This package contains the back end for Zend_Cache to store and retrieve data |
89 |
via memcache. |
90 |
|
91 |
#package Cache-Backend-Sqlite |
92 |
#Summary: Zend Framework sqlite back end |
93 |
#Group: Development/PHP |
94 |
#Requires: %{name} = %{version}-%{release} |
95 |
#Requires: php-sqlite |
96 |
|
97 |
#description Cache-Backend-Sqlite |
98 |
#This package contains the back end for Zend_Cache to store and retrieve data |
99 |
#via sqlite databases. |
100 |
|
101 |
%package Captcha |
102 |
Summary: Zend Framework CAPTCHA component |
103 |
Group: Development/PHP |
104 |
Requires: %{name} = %{version}-%{release} |
105 |
Requires: php-gd |
106 |
|
107 |
%description Captcha |
108 |
This package contains the Zend Framework CAPTCHA extension. |
109 |
|
110 |
%package Dojo |
111 |
Summary: Zend Framework Dojo Toolkit integration component |
112 |
Group: Development/PHP |
113 |
Requires: %{name} = %{version}-%{release} |
114 |
|
115 |
%description Dojo |
116 |
This package contains the Zend Framework Dojo Toolkit component as well as a |
117 |
copy of Dojo itself. |
118 |
|
119 |
#package Db-Adapter-Mysqli |
120 |
#Summary: Zend Framework database adapter for mysqli |
121 |
#Group: Development/PHP |
122 |
#Requires: %{name} = %{version}-%{release} |
123 |
#Requires: php-mysqli |
124 |
|
125 |
#description Db-Adapter-Mysqli |
126 |
#This package contains the files for Zend Framework necessary to connect to a |
127 |
#MySQL database via mysqli connector. |
128 |
|
129 |
#package Db-Adapter-Db2 |
130 |
#Summary: Zend Framework database adapter for DB2 |
131 |
#Group: Development/PHP |
132 |
#Requires: %{name} = %{version}-%{release} |
133 |
#Requires: php-ibm_db2 # Not available in Mandriva's PHP |
134 |
|
135 |
#description Db-Adapter-Db2 |
136 |
#This package contains the files for Zend Framework necessary to connect to an |
137 |
#IBM DB2 database. |
138 |
|
139 |
#package Db-Adapter-Firebird |
140 |
#Summary: Zend Framework database adapter for InterBase |
141 |
#Group: Development/PHP |
142 |
#Requires: %{name} = %{version}-%{release} |
143 |
#Requires: php-interbase |
144 |
|
145 |
#description Db-Adapter-Firebird |
146 |
#This package contains the files for Zend Framework necessary to connect to a |
147 |
#Firebird/InterBase database. |
148 |
|
149 |
#package Db-Adapter-Oracle |
150 |
#Summary: Zend Framework database adapter for Oracle |
151 |
#Group: Development/PHP |
152 |
#Requires: %{name} = %{version}-%{release} |
153 |
#Requires: php-oci8 # Not available in Mandriva's PHP |
154 |
|
155 |
#description Db-Adapter-Oracle |
156 |
#This package contains the files for Zend Framework necessary to connect to an |
157 |
#Oracle database. |
158 |
|
159 |
%package Feed |
160 |
Summary: Live syndication feeds helper |
161 |
Group: Development/PHP |
162 |
Requires: %{name} = %{version}-%{release} |
163 |
Requires: php-mbstring |
164 |
|
165 |
%description Feed |
166 |
This component provides a very simple way to work with live syndicated feeds. |
167 |
|
168 |
* consumes RSS and Atom feeds |
169 |
* provides utilities for discovering feed links |
170 |
* imports feeds from multiple sources |
171 |
* providers feed building and posting operations |
172 |
|
173 |
%package Gdata |
174 |
Summary: Google Data APIs |
175 |
Group: Development/PHP |
176 |
Requires: %{name} = %{version}-%{release} |
177 |
|
178 |
%description Gdata |
179 |
The Google Data APIs provide read/write access to such services hosted at |
180 |
google.com as Spreadsheets, Calendar, Blogger, and CodeSearch. |
181 |
|
182 |
* supports both authentication mechanisms of Google Data servers |
183 |
* supports queries and posting changes against Google Data services |
184 |
* supports service-specific element types in an object-oriented interface |
185 |
* matches functionality and design of other Google Data API clients |
186 |
|
187 |
%package Pdf |
188 |
Summary: PDF file handling helper |
189 |
Group: Development/PHP |
190 |
Requires: %{name} = %{version}-%{release} |
191 |
Requires: php-gd |
192 |
|
193 |
%description Pdf |
194 |
Portable Document Format (PDF) from Adobe is the de facto standard for |
195 |
cross-platform rich documents. Now, PHP applications can create or read PDF |
196 |
documents on the fly, without the need to call utilities from the shell, depend |
197 |
on PHP extensions, or pay licensing fees. Zend_Pdf can even modify existing PDF |
198 |
documents. |
199 |
|
200 |
* supports Adobe PDF file format |
201 |
* parses PDF structure and provides access to elements |
202 |
* creates or modifies PDF documents |
203 |
* utilizes memory efficiently |
204 |
|
205 |
%package Search-Lucene |
206 |
Summary: Apache Lucene engine PHP port |
207 |
Group: Development/PHP |
208 |
Requires: %{name} = %{version}-%{release} |
209 |
Requires: php-bitset |
210 |
|
211 |
%description Search-Lucene |
212 |
The Apache Lucene engine is a powerful, feature-rich Java search engine that is |
213 |
flexible about document storage and supports many complex query |
214 |
types. Zend_Search_Lucene is a port of this engine written entirely in PHP 5. |
215 |
|
216 |
* allows PHP-powered websites to leverage powerful search capabilities without |
217 |
the need for web services or Java |
218 |
* provides binary compatibility with Apache Lucene |
219 |
* matches Apache Lucene in performance |
220 |
|
221 |
%package Services |
222 |
Summary: Web service APIs for a number of providers |
223 |
Group: Development/PHP |
224 |
Requires: %{name} = %{version}-%{release} |
225 |
|
226 |
%description Services |
227 |
This package contains web service client APIs for the following services: |
228 |
|
229 |
- Akismet |
230 |
- Amazon |
231 |
- Audioscrobbler |
232 |
- del.icio.us |
233 |
- Flickr |
234 |
- Nirvanix |
235 |
- Simpy |
236 |
- SlideShare |
237 |
- StrikeIron |
238 |
- Technorati |
239 |
- Yahoo! |
240 |
|
241 |
%prep |
242 |
%setup -qn %{php_name}-%{version} |
243 |
|
244 |
%build |
245 |
find . -type f -perm /111 \ |
246 |
-fprint executables -exec %{__chmod} -x '{}' \; >/dev/null |
247 |
|
248 |
find . -type f -name \*.sh \ |
249 |
-fprint valid_executables -exec %{__chmod} +x '{}' \; >/dev/null |
250 |
|
251 |
%{__cat} executables valid_executables|sort|uniq -u > invalid_executables |
252 |
|
253 |
|
254 |
%install |
255 |
%{__rm} -rf %{buildroot} |
256 |
|
257 |
%{__mkdir_p} %{buildroot}%{_datadir}/php |
258 |
%{__cp} -pr library/Zend %{buildroot}%{_datadir}/php |
259 |
%{__cp} -pr demos/Zend %{buildroot}%{_datadir}/php/Zend/demos |
260 |
%{__cp} -pr tests %{buildroot}%{_datadir}/php/Zend |
261 |
%{__cp} -pr externals %{buildroot}%{_datadir}/php/Zend |
262 |
|
263 |
# ZendX |
264 |
cd extras |
265 |
%{__cp} -pr library/ZendX %{buildroot}%{_datadir}/php |
266 |
%{__cp} -pr tests %{buildroot}%{_datadir}/php/ZendX |
267 |
cd .. |
268 |
|
269 |
# rhbz 477440 |
270 |
pushd %{buildroot}%{_datadir}/php/Zend/tests/Zend/Pdf/_fonts |
271 |
for i in *.ttf; do |
272 |
ln -snf %{_datadir}/fonts/TTF/$i $i |
273 |
done |
274 |
popd |
275 |
|
276 |
%clean |
277 |
%{__rm} -rf %{buildroot} |
278 |
|
279 |
%files |
280 |
%defattr(-,root,root,-) |
281 |
%{_datadir}/php/Zend |
282 |
%exclude %{_datadir}/php/Zend/demos |
283 |
%exclude %{_datadir}/php/Zend/tests |
284 |
%exclude %{_datadir}/php/Zend/Cache/Backend/Apc.php |
285 |
%exclude %{_datadir}/php/Zend/Cache/Backend/Memcached.php |
286 |
%exclude %{_datadir}/php/Zend/Captcha |
287 |
%exclude %{_datadir}/php/Zend/Dojo.php |
288 |
%exclude %{_datadir}/php/Zend/Dojo |
289 |
%exclude %{_datadir}/php/Zend/Feed.php |
290 |
%exclude %{_datadir}/php/Zend/Feed |
291 |
%exclude %{_datadir}/php/Zend/Gdata.php |
292 |
%exclude %{_datadir}/php/Zend/Gdata |
293 |
%exclude %{_datadir}/php/Zend/Pdf.php |
294 |
%exclude %{_datadir}/php/Zend/Pdf |
295 |
%exclude %{_datadir}/php/Zend/Search |
296 |
%exclude %{_datadir}/php/Zend/Service/Akismet.php |
297 |
%exclude %{_datadir}/php/Zend/Service/Amazon.php |
298 |
%exclude %{_datadir}/php/Zend/Service/Amazon |
299 |
%exclude %{_datadir}/php/Zend/Service/Audioscrobbler.php |
300 |
%exclude %{_datadir}/php/Zend/Service/Delicious.php |
301 |
%exclude %{_datadir}/php/Zend/Service/Delicious |
302 |
%exclude %{_datadir}/php/Zend/Service/Flickr.php |
303 |
%exclude %{_datadir}/php/Zend/Service/Flickr |
304 |
%exclude %{_datadir}/php/Zend/Service/Nirvanix.php |
305 |
%exclude %{_datadir}/php/Zend/Service/Nirvanix |
306 |
%exclude %{_datadir}/php/Zend/Service/ReCaptcha.php |
307 |
%exclude %{_datadir}/php/Zend/Service/ReCaptcha |
308 |
%exclude %{_datadir}/php/Zend/Service/Simpy.php |
309 |
%exclude %{_datadir}/php/Zend/Service/Simpy |
310 |
%exclude %{_datadir}/php/Zend/Service/SlideShare.php |
311 |
%exclude %{_datadir}/php/Zend/Service/SlideShare |
312 |
%exclude %{_datadir}/php/Zend/Service/StrikeIron.php |
313 |
%exclude %{_datadir}/php/Zend/Service/StrikeIron |
314 |
%exclude %{_datadir}/php/Zend/Service/Technorati.php |
315 |
%exclude %{_datadir}/php/Zend/Service/Technorati |
316 |
%exclude %{_datadir}/php/Zend/Service/Yahoo.php |
317 |
%exclude %{_datadir}/php/Zend/Service/Yahoo |
318 |
%exclude %{_datadir}/php/Zend/externals/dojo |
319 |
|
320 |
%doc LICENSE.txt INSTALL.txt README.txt |
321 |
|
322 |
%files demos |
323 |
%defattr(-,root,root,-) |
324 |
%{_datadir}/php/Zend/demos |
325 |
%doc LICENSE.txt |
326 |
|
327 |
%files tests |
328 |
%defattr(-,root,root,-) |
329 |
%{_datadir}/php/Zend/tests |
330 |
%doc LICENSE.txt |
331 |
|
332 |
%files extras |
333 |
%defattr(-,root,root,-) |
334 |
%{_datadir}/php/ZendX |
335 |
%doc LICENSE.txt extras/documentation/api/extras/* |
336 |
|
337 |
%files Cache-Backend-Apc |
338 |
%defattr(-,root,root,-) |
339 |
%{_datadir}/php/Zend/Cache/Backend/Apc.php |
340 |
%doc LICENSE.txt |
341 |
|
342 |
%files Cache-Backend-Memcached |
343 |
%defattr(-,root,root,-) |
344 |
%{_datadir}/php/Zend/Cache/Backend/Memcached.php |
345 |
%doc LICENSE.txt |
346 |
|
347 |
%files Captcha |
348 |
%defattr(-,root,root,-) |
349 |
%{_datadir}/php/Zend/Captcha |
350 |
%doc LICENSE.txt |
351 |
|
352 |
%files Dojo |
353 |
%defattr(-,root,root,-) |
354 |
%{_datadir}/php/Zend/Dojo.php |
355 |
%{_datadir}/php/Zend/Dojo |
356 |
%{_datadir}/php/Zend/externals/dojo |
357 |
%doc LICENSE.txt |
358 |
|
359 |
%files Feed |
360 |
%defattr(-,root,root,-) |
361 |
%{_datadir}/php/Zend/Feed.php |
362 |
%{_datadir}/php/Zend/Feed |
363 |
%doc LICENSE.txt |
364 |
|
365 |
%files Gdata |
366 |
%defattr(-,root,root,-) |
367 |
%{_datadir}/php/Zend/Gdata.php |
368 |
%{_datadir}/php/Zend/Gdata |
369 |
%doc LICENSE.txt |
370 |
|
371 |
%files Pdf |
372 |
%defattr(-,root,root,-) |
373 |
%{_datadir}/php/Zend/Pdf.php |
374 |
%{_datadir}/php/Zend/Pdf |
375 |
%doc LICENSE.txt |
376 |
|
377 |
%files Search-Lucene |
378 |
%defattr(-,root,root,-) |
379 |
%{_datadir}/php/Zend/Search |
380 |
%doc LICENSE.txt |
381 |
|
382 |
%files Services |
383 |
%defattr(-,root,root,-) |
384 |
%{_datadir}/php/Zend/Service/Akismet.php |
385 |
%{_datadir}/php/Zend/Service/Amazon.php |
386 |
%{_datadir}/php/Zend/Service/Amazon |
387 |
%{_datadir}/php/Zend/Service/Audioscrobbler.php |
388 |
%{_datadir}/php/Zend/Service/Delicious.php |
389 |
%{_datadir}/php/Zend/Service/Delicious |
390 |
%{_datadir}/php/Zend/Service/Flickr.php |
391 |
%{_datadir}/php/Zend/Service/Flickr |
392 |
%{_datadir}/php/Zend/Service/Nirvanix.php |
393 |
%{_datadir}/php/Zend/Service/Nirvanix |
394 |
%{_datadir}/php/Zend/Service/ReCaptcha.php |
395 |
%{_datadir}/php/Zend/Service/ReCaptcha |
396 |
%{_datadir}/php/Zend/Service/Simpy.php |
397 |
%{_datadir}/php/Zend/Service/Simpy |
398 |
%{_datadir}/php/Zend/Service/SlideShare.php |
399 |
%{_datadir}/php/Zend/Service/SlideShare |
400 |
%{_datadir}/php/Zend/Service/StrikeIron.php |
401 |
%{_datadir}/php/Zend/Service/StrikeIron |
402 |
%{_datadir}/php/Zend/Service/Technorati.php |
403 |
%{_datadir}/php/Zend/Service/Technorati |
404 |
%{_datadir}/php/Zend/Service/Yahoo.php |
405 |
%{_datadir}/php/Zend/Service/Yahoo |
406 |
%doc LICENSE.txt |
407 |
|
408 |
|