/[packages]/updates/1/php-ZendFramework/current/SPECS/php-ZendFramework.spec
ViewVC logotype

Contents of /updates/1/php-ZendFramework/current/SPECS/php-ZendFramework.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30