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.2.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}
19 # fool adapter: allow version macro in url
20 %define docver %{version}
23 eZ Components is an enterprise ready general purpose PHP components
24 library used independently or together for PHP application
25 development. With eZ Components, developers do not have to reinvent
26 the wheel, instead they can concentrate on solving customer-specific
31 Group: Development/Languages/PHP
32 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Archive.html
33 Requires: %{name} = %{version}-%{release}
36 The component allows you to create, modify, and extract archive files
37 of various formats. The currently supported archives formats are Tar
38 (with the flavours: ustar, v7, pax, and gnu) and Zip.
40 %package Authentication
41 Summary: Authentication
42 Group: Development/Languages/PHP
43 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Authentication.html
44 Requires: %{name} = %{version}-%{release}
46 %description Authentication
47 The purpose of the Authentication component is to provide support for
48 different means of identification and authentication of users using
49 different providers and protocols.
51 %package AuthenticationDatabaseTiein
52 Summary: AuthenticationDatabaseTiein
53 Group: Development/Languages/PHP
54 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_AuthenticationDatabaseTiein.html
55 Requires: %{name} = %{version}-%{release}
57 %description AuthenticationDatabaseTiein
58 The purpose of the Authentication component is to provide support for
59 different means of identification and authentication of users using
60 different providers and protocols.
64 Group: Development/Languages/PHP
65 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Base.html
66 Requires: %{name} = %{version}-%{release}
69 The Base package provides the basic infrastructure that all packages
70 rely on. Therefore every component relies on this package.
74 Group: Development/Languages/PHP
75 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Cache.html
76 Requires: %{name} = %{version}-%{release}
79 A solution for caching, supporting multiple backends allowing you to
80 specify the best performing solution for your caching-problem.
82 %package Configuration
83 Summary: Configuration
84 Group: Development/Languages/PHP
85 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Configuration.html
86 Requires: %{name} = %{version}-%{release}
88 %description Configuration
89 A component that allows you to use configuration files in different
90 formats. The formats include the standard .ini file, and an array
95 Group: Development/Languages/PHP
96 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_ConsoleTools.html
97 Requires: %{name} = %{version}-%{release}
99 %description ConsoleTools
100 A set of classes to do different actions with the console (also called
101 shell). It can render a progress bar, tables and a status bar and
102 contains a class for parsing command line options.
106 Group: Development/Languages/PHP
107 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Database.html
108 Requires: %{name} = %{version}-%{release}
110 %description Database
111 A lightweight database layer on top of PHP's PDO that allows you to
112 utilize a database without having to take care of differences in SQL
115 %package DatabaseSchema
116 Summary: DatabaseSchema
117 Group: Development/Languages/PHP
118 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_DatabaseSchema.html
119 Requires: %{name} = %{version}-%{release}
121 %description DatabaseSchema
122 A set of classes that allow you to extract information from a database
123 schema, compare database schemas and apply a set of changes to a
128 Group: Development/Languages/PHP
129 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Debug.html
130 Requires: %{name} = %{version}-%{release}
133 This component provides a set of classes that help you to debug an
134 application. It provides timers and report generators for different
135 formats that give a summary of warnings and errors that occurred
136 within your application.
140 Group: Development/Languages/PHP
141 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Document.html
142 Requires: %{name} = %{version}-%{release}
144 %description Document
145 The Document components provides a general conversion framework for
146 different semantic document markup languages like XHTML, Docbook, RST
151 Group: Development/Languages/PHP
152 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_EventLog.html
153 Requires: %{name} = %{version}-%{release}
155 %description EventLog
156 Allows you to log events or audit trails into files or other storage
157 spaces in different formats.
159 %package EventLogDatabaseTiein
160 Summary: EventLogDatabaseTiein
161 Group: Development/Languages/PHP
162 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_EventLogDatabaseTiein.html
163 Requires: %{name} = %{version}-%{release}
165 %description EventLogDatabaseTiein
166 Contains the database writer backend for the EventLog component.
170 Group: Development/Languages/PHP
171 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Execution.html
172 Requires: %{name} = %{version}-%{release}
174 %description Execution
175 Provides functionality to give feedback to your application's users
176 when a fatal error happened or an uncaught exception was thrown.
180 Group: Development/Languages/PHP
181 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Feed.html
182 Requires: %{name} = %{version}-%{release}
185 This component handles parsing and creating RSS1, RSS2 and ATOM feeds,
186 with support for different feed modules (dc, content, creativeCommons,
191 Group: Development/Languages/PHP
192 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_File.html
193 Requires: %{name} = %{version}-%{release}
196 Provides support for file operations which are not covered by PHP or
201 Group: Development/Languages/PHP
202 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Graph.html
203 Requires: %{name} = %{version}-%{release}
206 A component for creating pie charts, line graphs and other kinds of
209 %package GraphDatabaseTiein
210 Summary: GraphDatabaseTiein
211 Group: Development/Languages/PHP
212 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_GraphDatabaseTiein.html
213 Requires: %{name} = %{version}-%{release}
215 %description GraphDatabaseTiein
216 The GraphDatabaseTiein provides functionality to directly use PDO
217 statements as basis for ezcGraph Datasets.
219 %package ImageAnalysis
220 Summary: ImageAnalysis
221 Group: Development/Languages/PHP
222 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_ImageAnalysis.html
223 Requires: %{name} = %{version}-%{release}
225 %description ImageAnalysis
226 This class allows you to analyse image files in different ways. At
227 least the MIME type of the file is returned. In some cases (JPEG, TIFF
228 and GIF) additional information is gathered as well.
230 %package ImageConversion
231 Summary: ImageConversion
232 Group: Development/Languages/PHP
233 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_ImageConversion.html
234 Requires: %{name} = %{version}-%{release}
236 %description ImageConversion
237 A set of classes to apply different filters on images, such as colour
238 changes, resizing and special effects.
242 Group: Development/Languages/PHP
243 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Mail.html
244 Requires: %{name} = %{version}-%{release}
247 The component allows you construct and/or parse Mail messages
248 conforming to the mail standard. It has support for attachments,
249 multipart messages and HTML mail. It also interfaces with SMTP to send
250 mail or IMAP, POP3 or mbox to retrieve e-mail.
252 %package MvcMailTiein
253 Summary: MvcMailTiein
254 Group: Development/Languages/PHP
255 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_MvcMailTiein.html
256 Requires: %{name} = %{version}-%{release}
258 %description MvcMailTiein
259 This component provides a request parser that extracts request data
260 from e-mail messages.
262 %package MvcTemplateTiein
263 Summary: MvcTemplateTiein
264 Group: Development/Languages/PHP
265 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_MvcTemplateTiein.html
266 Requires: %{name} = %{version}-%{release}
268 %description MvcTemplateTiein
269 This component provides a view handler that renders result data with
270 the Template component.
274 Group: Development/Languages/PHP
275 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_MvcTools.html
276 Requires: %{name} = %{version}-%{release}
278 %description MvcTools
279 The MvcTools component provides functionality for request parsing,
280 routing, dispatching, views and response writing. With the tools in
281 this component you can very easily build an MVC framework.
283 %package PersistentObject
284 Summary: PersistentObject
285 Group: Development/Languages/PHP
286 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_PersistentObject.html
287 Requires: %{name} = %{version}-%{release}
289 %description PersistentObject
290 This component allows you to store an arbitrary data structures to a
291 fixed database table. The component provides all the functionality
292 needed to fetch, list, delete etc these datastructures.
294 %package PersistentObjectDatabaseSchemaTiein
295 Summary: PersistentObjectDatabaseSchemaTiein
296 Group: Development/Languages/PHP
297 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_PersistentObjectDatabaseSchemaTiein.html
298 Requires: %{name} = %{version}-%{release}
300 %description PersistentObjectDatabaseSchemaTiein
301 This component allows the automatic generation of PersistentObject
302 definition files from DatabaseSchema definitions.
304 %package PhpGenerator
305 Summary: PhpGenerator
306 Group: Development/Languages/PHP
307 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_PhpGenerator.html
308 Requires: %{name} = %{version}-%{release}
310 %description PhpGenerator
311 Provides a simple interface for creating PHP files and executing PHP
316 Group: Development/Languages/PHP
317 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Search.html
318 Requires: %{name} = %{version}-%{release}
321 The Search component provides an interface to index and query
322 documents with different search engine backends.
326 Group: Development/Languages/PHP
327 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_SignalSlot.html
328 Requires: %{name} = %{version}-%{release}
330 %description SignalSlot
331 The SignalSlot component implements a mechanism for inter and intra
332 object communication through the use of signals and slots.
334 %package SystemInformation
335 Summary: SystemInformation
336 Group: Development/Languages/PHP
337 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_SystemInformation.html
338 Requires: %{name} = %{version}-%{release}
340 %description SystemInformation
341 Provides access to common system variables, such as CPU type and
342 speed, and the available amount of memory.
346 Group: Development/Languages/PHP
347 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Template.html
348 Requires: %{name} = %{version}-%{release}
350 %description Template
351 A fully functional Templating system, supporting template compilation
352 in different levels, user defined functions and operators, an
353 optimizer, output escaping for different output handlers to prevent
354 XSS and other security problems and a plug in system for extra
355 functionality (such as a Translation system).
357 %package TemplateTranslationTiein
358 Summary: TemplateTranslationTiein
359 Group: Development/Languages/PHP
360 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_TemplateTranslationTiein.html
361 Requires: %{name} = %{version}-%{release}
363 %description TemplateTranslationTiein
364 Provides functionality to use translations inside templates.
368 Group: Development/Languages/PHP
369 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Translation.html
370 Requires: %{name} = %{version}-%{release}
372 %description Translation
373 A component that reads XML translation definitions (the Qt Linguist
374 format), supports caching of translation contexts and presents you
375 with a class to apply translations to strings. A filter system allows
376 you to transform translation definitions for special use.
378 %package TranslationCacheTiein
379 Summary: TranslationCacheTiein
380 Group: Development/Languages/PHP
381 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_TranslationCacheTiein.html
382 Requires: %{name} = %{version}-%{release}
384 %description TranslationCacheTiein
385 This component adds the TranslationCache backend to the Translation
386 component and allows cached translations.
390 Group: Development/Languages/PHP
391 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Tree.html
392 Requires: %{name} = %{version}-%{release}
395 The Tree component handles the creating, manipulating and querying of
396 tree structures. The component supports different storage algorithms
397 for optimal performance.
399 %package TreeDatabaseTiein
400 Summary: TreeDatabaseTiein
401 Group: Development/Languages/PHP
402 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_TreeDatabaseTiein.html
403 Requires: %{name} = %{version}-%{release}
405 %description TreeDatabaseTiein
406 The Tree component handles the creating, manipulating and querying of
407 tree structures. This component implements the database related
408 backends and data stores.
410 %package TreePersistentObjectTiein
411 Summary: TreePersistentObjectTiein
412 Group: Development/Languages/PHP
413 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_TreePersistentObjectTiein.html
414 Requires: %{name} = %{version}-%{release}
416 %description TreePersistentObjectTiein
417 The Tree component handles the creating, manipulating and querying of
418 tree structures. This component uses persistent objects as data
419 storage for the data elements of the tree nodes.
423 Group: Development/Languages/PHP
424 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Url.html
425 Requires: %{name} = %{version}-%{release}
428 The Url package provides basic operations to handle urls (parse,
429 build, get/set path, get/set query).
433 Group: Development/Languages/PHP
434 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_UserInput.html
435 Requires: %{name} = %{version}-%{release}
437 %description UserInput
438 A component that assists you to safely user input variables coming
439 into your application. It builds on top of PHP's filter extension and
440 extends it by providing a more inituitive API.
444 Group: Development/Languages/PHP
445 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Webdav.html
446 Requires: %{name} = %{version}-%{release}
449 This component allows you to set up and run your own WebDAV (RFC 2518)
450 server, to enable online content editing for the users of your system
451 through the WebDAV HTTP extension.
455 Group: Development/Languages/PHP
456 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_Workflow.html
457 Requires: %{name} = %{version}-%{release}
459 %description Workflow
460 The purpose of the Workflow component is to provide the core
461 functionality of an activity-based workflow system including the
462 definition and execution of workflow specifications.
464 %package WorkflowDatabaseTiein
465 Summary: WorkflowDatabaseTiein
466 Group: Development/Languages/PHP
467 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_WorkflowDatabaseTiein.html
468 Requires: %{name} = %{version}-%{release}
470 %description WorkflowDatabaseTiein
471 Contains the database backend for the Workflow component.
473 %package WorkflowEventLogTiein
474 Summary: WorkflowEventLogTiein
475 Group: Development/Languages/PHP
476 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_WorkflowEventLogTiein.html
477 Requires: %{name} = %{version}-%{release}
479 %description WorkflowEventLogTiein
480 Contains the EventLog listener for the Workflow component.
482 %package WorkflowSignalSlotTiein
483 Summary: WorkflowSignalSlotTiein
484 Group: Development/Languages/PHP
485 URL: http://www.ezcomponents.org/docs/api/%{docver}/classtrees_WorkflowSignalSlotTiein.html
486 Requires: %{name} = %{version}-%{release}
488 %description WorkflowSignalSlotTiein
489 Contains the SignalSlot links for the Workflow component.
495 rm -rf $RPM_BUILD_ROOT
496 install -d $RPM_BUILD_ROOT%{_appdir}
498 cp -a autoload $RPM_BUILD_ROOT%{_appdir}
502 cp -a $a/src $RPM_BUILD_ROOT%{_appdir}/$a
504 # produce spec template
505 cat > $a-desc.spec <<-EOF
508 Group: Development/Languages/PHP
509 URL: http://www.ezcomponents.org/docs/api/%%{version}/classtrees_$a.html
510 Requires: %%{name} = %%{version}-%%{release}
513 $(cat $a/DESCRIPTION)
517 cat > $a-files.spec <<-EOF
519 %%defattr(644,root,root,755)
520 %%doc $a/{ChangeLog,CREDITS}$(
521 if [ "$(ls $a/*.txt 2>/dev/null)" ]; then
523 echo "%%doc $a/*.txt"
530 cat *-desc.spec *-files.spec > ez.spec
531 rm -f *-desc.spec *-files.spec
534 rm -rf $RPM_BUILD_ROOT
537 %defattr(644,root,root,755)
542 %defattr(644,root,root,755)
543 %doc Archive/{ChangeLog,CREDITS}
546 %files Authentication
547 %defattr(644,root,root,755)
548 %doc Authentication/{ChangeLog,CREDITS}
549 %doc Authentication/*.txt
550 %{_appdir}/Authentication
552 %files AuthenticationDatabaseTiein
553 %defattr(644,root,root,755)
554 %doc AuthenticationDatabaseTiein/{ChangeLog,CREDITS}
555 %{_appdir}/AuthenticationDatabaseTiein
558 %defattr(644,root,root,755)
559 %doc Base/{ChangeLog,CREDITS}
564 %defattr(644,root,root,755)
565 %doc Cache/{ChangeLog,CREDITS}
570 %defattr(644,root,root,755)
571 %doc Configuration/{ChangeLog,CREDITS}
572 %{_appdir}/Configuration
575 %defattr(644,root,root,755)
576 %doc ConsoleTools/{ChangeLog,CREDITS}
577 %doc ConsoleTools/*.txt
578 %{_appdir}/ConsoleTools
581 %defattr(644,root,root,755)
582 %doc Database/{ChangeLog,CREDITS}
585 %files DatabaseSchema
586 %defattr(644,root,root,755)
587 %doc DatabaseSchema/{ChangeLog,CREDITS}
588 %doc DatabaseSchema/*.txt
589 %{_appdir}/DatabaseSchema
592 %defattr(644,root,root,755)
593 %doc Debug/{ChangeLog,CREDITS}
598 %defattr(644,root,root,755)
599 %doc Document/{ChangeLog,CREDITS}
604 %defattr(644,root,root,755)
605 %doc EventLog/{ChangeLog,CREDITS}
608 %files EventLogDatabaseTiein
609 %defattr(644,root,root,755)
610 %doc EventLogDatabaseTiein/{ChangeLog,CREDITS}
611 %{_appdir}/EventLogDatabaseTiein
614 %defattr(644,root,root,755)
615 %doc Execution/{ChangeLog,CREDITS}
619 %defattr(644,root,root,755)
620 %doc Feed/{ChangeLog,CREDITS}
625 %defattr(644,root,root,755)
626 %doc File/{ChangeLog,CREDITS}
630 %defattr(644,root,root,755)
631 %doc Graph/{ChangeLog,CREDITS}
634 %files GraphDatabaseTiein
635 %defattr(644,root,root,755)
636 %doc GraphDatabaseTiein/{ChangeLog,CREDITS}
637 %{_appdir}/GraphDatabaseTiein
640 %defattr(644,root,root,755)
641 %doc ImageAnalysis/{ChangeLog,CREDITS}
642 %{_appdir}/ImageAnalysis
644 %files ImageConversion
645 %defattr(644,root,root,755)
646 %doc ImageConversion/{ChangeLog,CREDITS}
647 %doc ImageConversion/*.txt
648 %{_appdir}/ImageConversion
651 %defattr(644,root,root,755)
652 %doc Mail/{ChangeLog,CREDITS}
657 %defattr(644,root,root,755)
658 %doc MvcMailTiein/{ChangeLog,CREDITS}
659 %{_appdir}/MvcMailTiein
661 %files MvcTemplateTiein
662 %defattr(644,root,root,755)
663 %doc MvcTemplateTiein/{ChangeLog,CREDITS}
664 %{_appdir}/MvcTemplateTiein
667 %defattr(644,root,root,755)
668 %doc MvcTools/{ChangeLog,CREDITS}
672 %files PersistentObject
673 %defattr(644,root,root,755)
674 %doc PersistentObject/{ChangeLog,CREDITS}
675 %doc PersistentObject/*.txt
676 %{_appdir}/PersistentObject
678 %files PersistentObjectDatabaseSchemaTiein
679 %defattr(644,root,root,755)
680 %doc PersistentObjectDatabaseSchemaTiein/{ChangeLog,CREDITS}
681 %{_appdir}/PersistentObjectDatabaseSchemaTiein
684 %defattr(644,root,root,755)
685 %doc PhpGenerator/{ChangeLog,CREDITS}
686 %{_appdir}/PhpGenerator
689 %defattr(644,root,root,755)
690 %doc Search/{ChangeLog,CREDITS}
695 %defattr(644,root,root,755)
696 %doc SignalSlot/{ChangeLog,CREDITS}
697 %{_appdir}/SignalSlot
699 %files SystemInformation
700 %defattr(644,root,root,755)
701 %doc SystemInformation/{ChangeLog,CREDITS}
702 %{_appdir}/SystemInformation
705 %defattr(644,root,root,755)
706 %doc Template/{ChangeLog,CREDITS}
710 %files TemplateTranslationTiein
711 %defattr(644,root,root,755)
712 %doc TemplateTranslationTiein/{ChangeLog,CREDITS}
713 %{_appdir}/TemplateTranslationTiein
716 %defattr(644,root,root,755)
717 %doc Translation/{ChangeLog,CREDITS}
718 %doc Translation/*.txt
719 %{_appdir}/Translation
721 %files TranslationCacheTiein
722 %defattr(644,root,root,755)
723 %doc TranslationCacheTiein/{ChangeLog,CREDITS}
724 %{_appdir}/TranslationCacheTiein
727 %defattr(644,root,root,755)
728 %doc Tree/{ChangeLog,CREDITS}
731 %files TreeDatabaseTiein
732 %defattr(644,root,root,755)
733 %doc TreeDatabaseTiein/{ChangeLog,CREDITS}
734 %{_appdir}/TreeDatabaseTiein
736 %files TreePersistentObjectTiein
737 %defattr(644,root,root,755)
738 %doc TreePersistentObjectTiein/{ChangeLog,CREDITS}
739 %{_appdir}/TreePersistentObjectTiein
742 %defattr(644,root,root,755)
743 %doc Url/{ChangeLog,CREDITS}
748 %defattr(644,root,root,755)
749 %doc UserInput/{ChangeLog,CREDITS}
753 %defattr(644,root,root,755)
754 %doc Webdav/{ChangeLog,CREDITS}
759 %defattr(644,root,root,755)
760 %doc Workflow/{ChangeLog,CREDITS}
764 %files WorkflowDatabaseTiein
765 %defattr(644,root,root,755)
766 %doc WorkflowDatabaseTiein/{ChangeLog,CREDITS}
767 %{_appdir}/WorkflowDatabaseTiein
769 %files WorkflowEventLogTiein
770 %defattr(644,root,root,755)
771 %doc WorkflowEventLogTiein/{ChangeLog,CREDITS}
772 %{_appdir}/WorkflowEventLogTiein
774 %files WorkflowSignalSlotTiein
775 %defattr(644,root,root,755)
776 %doc WorkflowSignalSlotTiein/{ChangeLog,CREDITS}
777 %{_appdir}/WorkflowSignalSlotTiein