1 %include /usr/lib/rpm/macros.php
6 License: New BSD License
7 Group: Development/Languages/PHP
8 Source0: http://ezcomponents.org/files/downloads/%{name}-%{version}.tar.bz2
9 # Source0-md5: 57b211e2e85670633ebb165e14742f95
10 URL: http://www.ezcomponents.org/
11 BuildRequires: php-common >= 4:5.1
12 BuildRequires: rpm-php-pearprov >= 4.4.2-11
13 BuildRequires: rpmbuild(macros) >= 1.461
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _appdir %{php_data_dir}/%{name}
20 eZ Components is an enterprise ready general purpose PHP components
21 library used independently or together for PHP application
22 development. With eZ Components, developers do not have to reinvent
23 the wheel, instead they can concentrate on solving customer-specific
28 Group: Development/Languages/PHP
29 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Archive.html
30 Requires: %{name} = %{version}-%{release}
33 The component allows you to create, modify, and extract archive files
34 of various formats. The currently supported archives formats are Tar
35 (with the flavours: ustar, v7, pax, and gnu) and Zip.
37 %package Authentication
38 Summary: Authentication
39 Group: Development/Languages/PHP
40 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Authentication.html
41 Requires: %{name} = %{version}-%{release}
43 %description Authentication
44 The purpose of the Authentication component is to provide support for
45 different means of identification and authentication of users using
46 different providers and protocols.
48 %package AuthenticationDatabaseTiein
49 Summary: AuthenticationDatabaseTiein
50 Group: Development/Languages/PHP
51 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_AuthenticationDatabaseTiein.html
52 Requires: %{name} = %{version}-%{release}
54 %description AuthenticationDatabaseTiein
55 The purpose of the Authentication component is to provide support for
56 different means of identification and authentication of users using
57 different providers and protocols.
61 Group: Development/Languages/PHP
62 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Base.html
63 Requires: %{name} = %{version}-%{release}
66 The Base package provides the basic infrastructure that all packages
67 rely on. Therefore every component relies on this package.
71 Group: Development/Languages/PHP
72 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Cache.html
73 Requires: %{name} = %{version}-%{release}
76 A solution for caching, supporting multiple backends allowing you to
77 specify the best performing solution for your caching-problem.
79 %package Configuration
80 Summary: Configuration
81 Group: Development/Languages/PHP
82 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Configuration.html
83 Requires: %{name} = %{version}-%{release}
85 %description Configuration
86 A component that allows you to use configuration files in different
87 formats. The formats include the standard .ini file, and an array
92 Group: Development/Languages/PHP
93 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_ConsoleTools.html
94 Requires: %{name} = %{version}-%{release}
96 %description ConsoleTools
97 A set of classes to do different actions with the console (also called
98 shell). It can render a progress bar, tables and a status bar and
99 contains a class for parsing command line options.
103 Group: Development/Languages/PHP
104 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Database.html
105 Requires: %{name} = %{version}-%{release}
107 %description Database
108 A lightweight database layer on top of PHP's PDO that allows you to
109 utilize a database without having to take care of differences in SQL
112 %package DatabaseSchema
113 Summary: DatabaseSchema
114 Group: Development/Languages/PHP
115 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_DatabaseSchema.html
116 Requires: %{name} = %{version}-%{release}
118 %description DatabaseSchema
119 A set of classes that allow you to extract information from a database
120 schema, compare database schemas and apply a set of changes to a
125 Group: Development/Languages/PHP
126 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Debug.html
127 Requires: %{name} = %{version}-%{release}
130 This component provides a set of classes that help you to debug an
131 application. It provides timers and report generators for different
132 formats that give a summary of warnings and errors that occurred
133 within your application.
137 Group: Development/Languages/PHP
138 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Document.html
139 Requires: %{name} = %{version}-%{release}
141 %description Document
142 The Document components provides a general conversion framework for
143 different semantic document markup languages like XHTML, Docbook, RST
148 Group: Development/Languages/PHP
149 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_EventLog.html
150 Requires: %{name} = %{version}-%{release}
152 %description EventLog
153 Allows you to log events or audit trails into files or other storage
154 spaces in different formats.
156 %package EventLogDatabaseTiein
157 Summary: EventLogDatabaseTiein
158 Group: Development/Languages/PHP
159 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_EventLogDatabaseTiein.html
160 Requires: %{name} = %{version}-%{release}
162 %description EventLogDatabaseTiein
163 Contains the database writer backend for the EventLog component.
167 Group: Development/Languages/PHP
168 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Execution.html
169 Requires: %{name} = %{version}-%{release}
171 %description Execution
172 Provides functionality to give feedback to your application's users
173 when a fatal error happened or an uncaught exception was thrown.
177 Group: Development/Languages/PHP
178 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Feed.html
179 Requires: %{name} = %{version}-%{release}
182 This component handles parsing and creating RSS1, RSS2 and ATOM feeds,
183 with support for different feed modules (dc, content, creativeCommons,
188 Group: Development/Languages/PHP
189 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_File.html
190 Requires: %{name} = %{version}-%{release}
193 Provides support for file operations which are not covered by PHP or
198 Group: Development/Languages/PHP
199 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Graph.html
200 Requires: %{name} = %{version}-%{release}
203 A component for creating pie charts, line graphs and other kinds of
206 %package GraphDatabaseTiein
207 Summary: GraphDatabaseTiein
208 Group: Development/Languages/PHP
209 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_GraphDatabaseTiein.html
210 Requires: %{name} = %{version}-%{release}
212 %description GraphDatabaseTiein
213 The GraphDatabaseTiein provides functionality to directly use PDO
214 statements as basis for ezcGraph Datasets.
216 %package ImageAnalysis
217 Summary: ImageAnalysis
218 Group: Development/Languages/PHP
219 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_ImageAnalysis.html
220 Requires: %{name} = %{version}-%{release}
222 %description ImageAnalysis
223 This class allows you to analyse image files in different ways. At
224 least the MIME type of the file is returned. In some cases (JPEG, TIFF
225 and GIF) additional information is gathered as well.
227 %package ImageConversion
228 Summary: ImageConversion
229 Group: Development/Languages/PHP
230 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_ImageConversion.html
231 Requires: %{name} = %{version}-%{release}
233 %description ImageConversion
234 A set of classes to apply different filters on images, such as colour
235 changes, resizing and special effects.
239 Group: Development/Languages/PHP
240 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Mail.html
241 Requires: %{name} = %{version}-%{release}
244 The component allows you construct and/or parse Mail messages
245 conforming to the mail standard. It has support for attachments,
246 multipart messages and HTML mail. It also interfaces with SMTP to send
247 mail or IMAP, POP3 or mbox to retrieve e-mail.
249 %package MvcMailTiein
250 Summary: MvcMailTiein
251 Group: Development/Languages/PHP
252 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_MvcMailTiein.html
253 Requires: %{name} = %{version}-%{release}
255 %description MvcMailTiein
256 This component provides a request parser that extracts request data
257 from e-mail messages.
259 %package MvcTemplateTiein
260 Summary: MvcTemplateTiein
261 Group: Development/Languages/PHP
262 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_MvcTemplateTiein.html
263 Requires: %{name} = %{version}-%{release}
265 %description MvcTemplateTiein
266 This component provides a view handler that renders result data with
267 the Template component.
271 Group: Development/Languages/PHP
272 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_MvcTools.html
273 Requires: %{name} = %{version}-%{release}
275 %description MvcTools
276 The MvcTools component provides functionality for request parsing,
277 routing, dispatching, views and response writing. With the tools in
278 this component you can very easily build an MVC framework.
280 %package PersistentObject
281 Summary: PersistentObject
282 Group: Development/Languages/PHP
283 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_PersistentObject.html
284 Requires: %{name} = %{version}-%{release}
286 %description PersistentObject
287 This component allows you to store an arbitrary data structures to a
288 fixed database table. The component provides all the functionality
289 needed to fetch, list, delete etc these datastructures.
291 %package PersistentObjectDatabaseSchemaTiein
292 Summary: PersistentObjectDatabaseSchemaTiein
293 Group: Development/Languages/PHP
294 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_PersistentObjectDatabaseSchemaTiein.html
295 Requires: %{name} = %{version}-%{release}
297 %description PersistentObjectDatabaseSchemaTiein
298 This component allows the automatic generation of PersistentObject
299 definition files from DatabaseSchema definitions.
301 %package PhpGenerator
302 Summary: PhpGenerator
303 Group: Development/Languages/PHP
304 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_PhpGenerator.html
305 Requires: %{name} = %{version}-%{release}
307 %description PhpGenerator
308 Provides a simple interface for creating PHP files and executing PHP
313 Group: Development/Languages/PHP
314 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Search.html
315 Requires: %{name} = %{version}-%{release}
318 The Search component provides an interface to index and query
319 documents with different search engine backends.
323 Group: Development/Languages/PHP
324 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_SignalSlot.html
325 Requires: %{name} = %{version}-%{release}
327 %description SignalSlot
328 The SignalSlot component implements a mechanism for inter and intra
329 object communication through the use of signals and slots.
331 %package SystemInformation
332 Summary: SystemInformation
333 Group: Development/Languages/PHP
334 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_SystemInformation.html
335 Requires: %{name} = %{version}-%{release}
337 %description SystemInformation
338 Provides access to common system variables, such as CPU type and
339 speed, and the available amount of memory.
343 Group: Development/Languages/PHP
344 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Template.html
345 Requires: %{name} = %{version}-%{release}
347 %description Template
348 A fully functional Templating system, supporting template compilation
349 in different levels, user defined functions and operators, an
350 optimizer, output escaping for different output handlers to prevent
351 XSS and other security problems and a plug in system for extra
352 functionality (such as a Translation system).
354 %package TemplateTranslationTiein
355 Summary: TemplateTranslationTiein
356 Group: Development/Languages/PHP
357 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_TemplateTranslationTiein.html
358 Requires: %{name} = %{version}-%{release}
360 %description TemplateTranslationTiein
361 Provides functionality to use translations inside templates.
365 Group: Development/Languages/PHP
366 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Translation.html
367 Requires: %{name} = %{version}-%{release}
369 %description Translation
370 A component that reads XML translation definitions (the Qt Linguist
371 format), supports caching of translation contexts and presents you
372 with a class to apply translations to strings. A filter system allows
373 you to transform translation definitions for special use.
375 %package TranslationCacheTiein
376 Summary: TranslationCacheTiein
377 Group: Development/Languages/PHP
378 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_TranslationCacheTiein.html
379 Requires: %{name} = %{version}-%{release}
381 %description TranslationCacheTiein
382 This component adds the TranslationCache backend to the Translation
383 component and allows cached translations.
387 Group: Development/Languages/PHP
388 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Tree.html
389 Requires: %{name} = %{version}-%{release}
392 The Tree component handles the creating, manipulating and querying of
393 tree structures. The component supports different storage algorithms
394 for optimal performance.
396 %package TreeDatabaseTiein
397 Summary: TreeDatabaseTiein
398 Group: Development/Languages/PHP
399 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_TreeDatabaseTiein.html
400 Requires: %{name} = %{version}-%{release}
402 %description TreeDatabaseTiein
403 The Tree component handles the creating, manipulating and querying of
404 tree structures. This component implements the database related
405 backends and data stores.
407 %package TreePersistentObjectTiein
408 Summary: TreePersistentObjectTiein
409 Group: Development/Languages/PHP
410 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_TreePersistentObjectTiein.html
411 Requires: %{name} = %{version}-%{release}
413 %description TreePersistentObjectTiein
414 The Tree component handles the creating, manipulating and querying of
415 tree structures. This component uses persistent objects as data
416 storage for the data elements of the tree nodes.
420 Group: Development/Languages/PHP
421 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Url.html
422 Requires: %{name} = %{version}-%{release}
425 The Url package provides basic operations to handle urls (parse,
426 build, get/set path, get/set query).
430 Group: Development/Languages/PHP
431 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_UserInput.html
432 Requires: %{name} = %{version}-%{release}
434 %description UserInput
435 A component that assists you to safely user input variables coming
436 into your application. It builds on top of PHP's filter extension and
437 extends it by providing a more inituitive API.
441 Group: Development/Languages/PHP
442 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Webdav.html
443 Requires: %{name} = %{version}-%{release}
446 This component allows you to set up and run your own WebDAV (RFC 2518)
447 server, to enable online content editing for the users of your system
448 through the WebDAV HTTP extension.
452 Group: Development/Languages/PHP
453 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_Workflow.html
454 Requires: %{name} = %{version}-%{release}
456 %description Workflow
457 The purpose of the Workflow component is to provide the core
458 functionality of an activity-based workflow system including the
459 definition and execution of workflow specifications.
461 %package WorkflowDatabaseTiein
462 Summary: WorkflowDatabaseTiein
463 Group: Development/Languages/PHP
464 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_WorkflowDatabaseTiein.html
465 Requires: %{name} = %{version}-%{release}
467 %description WorkflowDatabaseTiein
468 Contains the database backend for the Workflow component.
470 %package WorkflowEventLogTiein
471 Summary: WorkflowEventLogTiein
472 Group: Development/Languages/PHP
473 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_WorkflowEventLogTiein.html
474 Requires: %{name} = %{version}-%{release}
476 %description WorkflowEventLogTiein
477 Contains the EventLog listener for the Workflow component.
479 %package WorkflowSignalSlotTiein
480 Summary: WorkflowSignalSlotTiein
481 Group: Development/Languages/PHP
482 URL: http://www.ezcomponents.org/docs/api/2008.2/classtrees_WorkflowSignalSlotTiein.html
483 Requires: %{name} = %{version}-%{release}
485 %description WorkflowSignalSlotTiein
486 Contains the SignalSlot links for the Workflow component.
492 rm -rf $RPM_BUILD_ROOT
493 install -d $RPM_BUILD_ROOT%{_appdir}
495 cp -a autoload $RPM_BUILD_ROOT%{_appdir}
499 cp -a $a/src $RPM_BUILD_ROOT%{_appdir}/$a
501 # produce spec template
502 cat > $a-desc.spec <<-EOF
505 Group: Development/Languages/PHP
506 URL: http://www.ezcomponents.org/docs/api/%%{version}/classtrees_$a.html
507 Requires: %%{name} = %%{version}-%%{release}
510 $(cat $a/DESCRIPTION)
514 cat > $a-files.spec <<-EOF
516 %%defattr(644,root,root,755)
517 %%doc $a/{ChangeLog,CREDITS}$(
518 if [ "$(ls $a/*.txt 2>/dev/null)" ]; then
520 echo "%%doc $a/*.txt"
527 cat *-desc.spec *-files.spec > ez.spec
528 rm -f *-desc.spec *-files.spec
531 rm -rf $RPM_BUILD_ROOT
534 %defattr(644,root,root,755)
539 %defattr(644,root,root,755)
540 %doc Archive/{ChangeLog,CREDITS}
543 %files Authentication
544 %defattr(644,root,root,755)
545 %doc Authentication/{ChangeLog,CREDITS}
546 %doc Authentication/*.txt
547 %{_appdir}/Authentication
549 %files AuthenticationDatabaseTiein
550 %defattr(644,root,root,755)
551 %doc AuthenticationDatabaseTiein/{ChangeLog,CREDITS}
552 %{_appdir}/AuthenticationDatabaseTiein
555 %defattr(644,root,root,755)
556 %doc Base/{ChangeLog,CREDITS}
561 %defattr(644,root,root,755)
562 %doc Cache/{ChangeLog,CREDITS}
567 %defattr(644,root,root,755)
568 %doc Configuration/{ChangeLog,CREDITS}
569 %{_appdir}/Configuration
572 %defattr(644,root,root,755)
573 %doc ConsoleTools/{ChangeLog,CREDITS}
574 %doc ConsoleTools/*.txt
575 %{_appdir}/ConsoleTools
578 %defattr(644,root,root,755)
579 %doc Database/{ChangeLog,CREDITS}
582 %files DatabaseSchema
583 %defattr(644,root,root,755)
584 %doc DatabaseSchema/{ChangeLog,CREDITS}
585 %doc DatabaseSchema/*.txt
586 %{_appdir}/DatabaseSchema
589 %defattr(644,root,root,755)
590 %doc Debug/{ChangeLog,CREDITS}
595 %defattr(644,root,root,755)
596 %doc Document/{ChangeLog,CREDITS}
601 %defattr(644,root,root,755)
602 %doc EventLog/{ChangeLog,CREDITS}
605 %files EventLogDatabaseTiein
606 %defattr(644,root,root,755)
607 %doc EventLogDatabaseTiein/{ChangeLog,CREDITS}
608 %{_appdir}/EventLogDatabaseTiein
611 %defattr(644,root,root,755)
612 %doc Execution/{ChangeLog,CREDITS}
616 %defattr(644,root,root,755)
617 %doc Feed/{ChangeLog,CREDITS}
622 %defattr(644,root,root,755)
623 %doc File/{ChangeLog,CREDITS}
627 %defattr(644,root,root,755)
628 %doc Graph/{ChangeLog,CREDITS}
631 %files GraphDatabaseTiein
632 %defattr(644,root,root,755)
633 %doc GraphDatabaseTiein/{ChangeLog,CREDITS}
634 %{_appdir}/GraphDatabaseTiein
637 %defattr(644,root,root,755)
638 %doc ImageAnalysis/{ChangeLog,CREDITS}
639 %{_appdir}/ImageAnalysis
641 %files ImageConversion
642 %defattr(644,root,root,755)
643 %doc ImageConversion/{ChangeLog,CREDITS}
644 %doc ImageConversion/*.txt
645 %{_appdir}/ImageConversion
648 %defattr(644,root,root,755)
649 %doc Mail/{ChangeLog,CREDITS}
654 %defattr(644,root,root,755)
655 %doc MvcMailTiein/{ChangeLog,CREDITS}
656 %{_appdir}/MvcMailTiein
658 %files MvcTemplateTiein
659 %defattr(644,root,root,755)
660 %doc MvcTemplateTiein/{ChangeLog,CREDITS}
661 %{_appdir}/MvcTemplateTiein
664 %defattr(644,root,root,755)
665 %doc MvcTools/{ChangeLog,CREDITS}
669 %files PersistentObject
670 %defattr(644,root,root,755)
671 %doc PersistentObject/{ChangeLog,CREDITS}
672 %doc PersistentObject/*.txt
673 %{_appdir}/PersistentObject
675 %files PersistentObjectDatabaseSchemaTiein
676 %defattr(644,root,root,755)
677 %doc PersistentObjectDatabaseSchemaTiein/{ChangeLog,CREDITS}
678 %{_appdir}/PersistentObjectDatabaseSchemaTiein
681 %defattr(644,root,root,755)
682 %doc PhpGenerator/{ChangeLog,CREDITS}
683 %{_appdir}/PhpGenerator
686 %defattr(644,root,root,755)
687 %doc Search/{ChangeLog,CREDITS}
692 %defattr(644,root,root,755)
693 %doc SignalSlot/{ChangeLog,CREDITS}
694 %{_appdir}/SignalSlot
696 %files SystemInformation
697 %defattr(644,root,root,755)
698 %doc SystemInformation/{ChangeLog,CREDITS}
699 %{_appdir}/SystemInformation
702 %defattr(644,root,root,755)
703 %doc Template/{ChangeLog,CREDITS}
707 %files TemplateTranslationTiein
708 %defattr(644,root,root,755)
709 %doc TemplateTranslationTiein/{ChangeLog,CREDITS}
710 %{_appdir}/TemplateTranslationTiein
713 %defattr(644,root,root,755)
714 %doc Translation/{ChangeLog,CREDITS}
715 %doc Translation/*.txt
716 %{_appdir}/Translation
718 %files TranslationCacheTiein
719 %defattr(644,root,root,755)
720 %doc TranslationCacheTiein/{ChangeLog,CREDITS}
721 %{_appdir}/TranslationCacheTiein
724 %defattr(644,root,root,755)
725 %doc Tree/{ChangeLog,CREDITS}
728 %files TreeDatabaseTiein
729 %defattr(644,root,root,755)
730 %doc TreeDatabaseTiein/{ChangeLog,CREDITS}
731 %{_appdir}/TreeDatabaseTiein
733 %files TreePersistentObjectTiein
734 %defattr(644,root,root,755)
735 %doc TreePersistentObjectTiein/{ChangeLog,CREDITS}
736 %{_appdir}/TreePersistentObjectTiein
739 %defattr(644,root,root,755)
740 %doc Url/{ChangeLog,CREDITS}
745 %defattr(644,root,root,755)
746 %doc UserInput/{ChangeLog,CREDITS}
750 %defattr(644,root,root,755)
751 %doc Webdav/{ChangeLog,CREDITS}
756 %defattr(644,root,root,755)
757 %doc Workflow/{ChangeLog,CREDITS}
761 %files WorkflowDatabaseTiein
762 %defattr(644,root,root,755)
763 %doc WorkflowDatabaseTiein/{ChangeLog,CREDITS}
764 %{_appdir}/WorkflowDatabaseTiein
766 %files WorkflowEventLogTiein
767 %defattr(644,root,root,755)
768 %doc WorkflowEventLogTiein/{ChangeLog,CREDITS}
769 %{_appdir}/WorkflowEventLogTiein
771 %files WorkflowSignalSlotTiein
772 %defattr(644,root,root,755)
773 %doc WorkflowSignalSlotTiein/{ChangeLog,CREDITS}
774 %{_appdir}/WorkflowSignalSlotTiein