2 # - separate htdocs and includedirs
3 # - list of bundled software (to use pld packages instead):
7 Summary: eGroupWare - a web-based groupware suite written in PHP
8 Summary(pl.UTF-8): eGroupWAre - oparte na WWW oprogramowanie do pracy grupowej napisane w PHP
13 Group: Applications/WWW
14 Source0: http://dl.sourceforge.net/egroupware/eGroupWare-%{version}-2.tar.bz2
15 # Source0-md5: 2758792188125086f815e0e412a30904
16 Source1: http://dl.sourceforge.net/egroupware/eGroupWare-contrib-%{version}-2.tar.bz2
17 # Source1-md5: 574b71590449f7650aecd61cda496aec
20 Patch0: %{name}-setup.patch
21 Patch1: %{name}-ttfdir.patch
22 URL: http://www.egroupware.org/
23 BuildRequires: rpmbuild(macros) >= 1.304
24 BuildRequires: sed >= 4.0
25 Requires: %{name}-addressbook = %{version}-%{release}
26 Requires: %{name}-bookmarks = %{version}-%{release}
27 Requires: %{name}-calendar = %{version}-%{release}
28 Requires: %{name}-core = %{version}-%{release}
29 Requires: %{name}-developer_tools = %{version}-%{release}
30 Requires: %{name}-emailadmin = %{version}-%{release}
31 Requires: %{name}-felamimail = %{version}-%{release}
32 Requires: %{name}-filemanager = %{version}-%{release}
33 Requires: %{name}-infolog = %{version}-%{release}
34 Requires: %{name}-manual = %{version}-%{release}
35 Requires: %{name}-mydms = %{version}-%{release}
36 Requires: %{name}-news_admin = %{version}-%{release}
37 Requires: %{name}-phpbrain = %{version}-%{release}
38 Requires: %{name}-polls = %{version}-%{release}
39 Requires: %{name}-projectmanager = %{version}-%{release}
40 Requires: %{name}-registration = %{version}-%{release}
41 Requires: %{name}-resources = %{version}-%{release}
42 Requires: %{name}-sambaadmin = %{version}-%{release}
43 Requires: %{name}-sitemgr = %{version}-%{release}
44 Requires: %{name}-syncml = %{version}-%{release}
45 Requires: %{name}-timesheet = %{version}-%{release}
46 Requires: %{name}-wiki = %{version}-%{release}
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %define _webapps /etc/webapps
51 %define _webapp %{name}
52 %define _sysconfdir %{_webapps}/%{_webapp}
53 %define _appdir %{_datadir}/%{_webapp}
54 %define schemadir /usr/share/openldap/schema
57 eGroupWare is a multi-user, web-based groupware suite developed on a
58 custom set of PHP-based APIs.
60 This package provides the eGroupWare default applications:
62 egroupware core with: admin, api, docs, etemplate, preferences,
63 addressbook, bookmarks, calendar, translation-tools, emailadmin,
64 felamimail, filemanager, infolog, manual, mydms, news admin,
65 knowledgebase, polls, projectmanager, resources, sambaadmin, sitemgr,
66 syncml, timesheet, wiki, workflow
68 It also provides an API for developing additional applications.
70 Further contributed applications are avalible in single packages.
72 %description -l pl.UTF-8
73 eGroupWare to wieloużytkownikowe, oparte na WWW oprogramowanie do
74 pracy grupowej stworzone na własnym zestawie API opartych na PHP.
75 Aktualnie dostępne moduły obejmują: pocztę elektroniczną, książkę
76 adresową, kalendarz, infolog (notatki, rzeczy do zrobienia, rozmowy
77 telefoniczne), zarządzanie treścią, forum, zakładki, wiki.
80 Summary: The eGroupWare core package
81 Group: Applications/WWW
82 Requires: %{name}(DB_Driver) = %{version}-%{release}
83 Requires: /usr/bin/php
85 Requires: fonts-TTF-bitstream-vera
89 Requires: php(mbstring)
92 Requires: webserver(php) >= 4.3
93 Provides: %{name}-etemplate = %{version}-%{release}
94 Provides: %{name}-syncml = %{version}-%{release}
97 This package provides the eGroupWare core applications.
100 Summary: The eGroupWare addressbook application
101 Group: Applications/WWW
102 Requires: %{name}-core = %{version}-%{release}
104 %description addressbook
105 Contact manager with Vcard support. addressbook is the egroupware
106 default contact application. It makes use of the egroupware contacts
107 class to store and retrieve contact information via SQL, LDAP or
111 Summary: The eGroupWare backup application
112 Group: Applications/WWW
113 Requires: %{name}-core = %{version}-%{release}
116 An online configurable backup app to store data offline. Can store
117 files in zip, tar.gz and tar.bz2 on the local machine or Remote via
121 Summary: The eGroupWare browser application
122 Group: Applications/WWW
123 Requires: %{name}-core = %{version}-%{release}
126 Intergrated browser to surf the web within eGroupWare.
129 Summary: The eGroupWare bookmarks application
130 Group: Applications/WWW
131 Requires: %{name}-core = %{version}-%{release}
133 %description bookmarks
134 Manage your bookmarks with eGroupWare. Has Netscape plugin.
137 Summary: The eGroupWare calendar application
138 Group: Applications/WWW
139 Requires: %{name}-core = %{version}-%{release}
140 Requires: %{name}-etemplate = %{version}-%{release}
142 %description calendar
143 Powerful calendar with meeting request system, Alarms, ICal and E-Mail
144 support, and ACL security.
147 Summary: Instant messenger for eGroupWare
148 Group: Applications/WWW
149 Requires: %{name}-core = %{version}-%{release}
152 Instant messenger application using AJAX.
155 Summary: The eGroupWare comic application
156 Group: Applications/WWW
157 Requires: %{name}-core = %{version}-%{release}
160 This application display comic strips.
162 %package developer_tools
163 Summary: The eGroupWare developer_tools application
164 Group: Applications/WWW
166 %description developer_tools
167 The TranslationTools allow to create and extend translations-files for
168 eGroupWare. They can search the sources for new / added phrases and
169 show you the ones missing in your language.
172 Summary: The eGroupWare email application
173 Group: Applications/WWW
174 Requires: %{name}-addressbook = %{version}-%{release}
175 Requires: %{name}-core = %{version}-%{release}
178 AngleMail for eGroupWare at www.anglemail.org is an Email reader with
179 multiple accounts and mailbox filtering. Also Anglemail support IMAP,
180 IMAPS, POP3 and POP3S accounts.
183 Summary: The eGroupWare emailadmin application
184 Group: Applications/WWW
185 Requires: %{name}-core = %{version}-%{release}
187 %description emailadmin
188 EmailAdmin allow to maintain User email accounts
191 Summary: The eGroupWare egwical application
192 Group: Applications/WWW
193 Requires: %{name}-core = %{version}-%{release}
196 This is the egwical app for eGroupWare.
199 Summary: The eGroupWare felamimail application
200 Group: Applications/WWW
201 Requires: %{name}-core = %{version}-%{release}
202 Requires: %{name}-emailadmin = %{version}-%{release}
204 %description felamimail
205 The felamimail Email Reader is a other Email application for
209 Summary: The eGroupWare filemanager application
210 Group: Applications/WWW
211 Requires: %{name}-core = %{version}-%{release}
213 %description filemanager
214 This is the filemanager app for eGroupWare.
217 Summary: The eGroupWare filescenter application
218 Group: Applications/WWW
219 Requires: %{name}-core = %{version}-%{release}
221 %description filescenter
222 This is the filescenter app for eGroupWare.
225 Summary: The eGroupWare forum application
226 Group: Applications/WWW
227 Requires: %{name}-core = %{version}-%{release}
230 This is the forum app for eGroupWare.
233 Summary: The eGroupWare ftp application
234 Group: Applications/WWW
235 Requires: %{name}-core = %{version}-%{release}
238 This is the ftp app for eGroupWare.
241 Summary: The eGroupWare fudforum application
242 Group: Applications/WWW
243 Requires: %{name}-core = %{version}-%{release}
245 %description fudforum
246 This is the fudforum app for eGroupWare.
249 Summary: The eGroupWare headlines application
250 Group: Applications/WWW
251 Requires: %{name}-core = %{version}-%{release}
253 %description headlines
254 This is the headlines app for eGroupWare.
257 Summary: The eGroupWare icalsrv application
258 Group: Applications/WWW
259 Requires: %{name}-core = %{version}-%{release}
262 This is the icalsrv app for eGroupWare.
265 Summary: The eGroupWare infolog application
266 Group: Applications/WWW
267 Requires: %{name}-core = %{version}-%{release}
268 Requires: %{name}-etemplate = %{version}-%{release}
271 This is the infolog app for eGroupWare (Notes, ToDo, Phonelogs, CRM).
274 Summary: The eGroupWare jinn application
275 Group: Applications/WWW
276 Requires: %{name}-core = %{version}-%{release}
279 The jinn app is a multi-site, multi-database, multi-user/-group,
280 database driven Content Management System written in and for the
281 eGroupWare Framework.
284 Summary: The eGroupWare manual application
285 Group: Applications/WWW
286 Requires: %{name}-core = %{version}-%{release}
289 This is the manual app for eGroupWare: online help system.
292 Summary: The eGroupWare messenger application
293 Group: Applications/WWW
294 Requires: %{name}-core = %{version}-%{release}
296 %description messenger
297 This is the messenger app for eGroupWare.
300 Summary: The eGroupWare mydms application
301 Group: Applications/WWW
302 Requires: %{name}-core = %{version}-%{release}
305 This is a mydms port to eGroupWare.
308 Summary: The eGroupWare news_admin application
309 Group: Applications/WWW
310 Requires: %{name}-core = %{version}-%{release}
312 %description news_admin
313 This is the news_admin app for eGroupWare.
316 Summary: The eGroupWare phpbrain application
317 Group: Applications/WWW
318 Requires: %{name}-addressbook = %{version}-%{release}
319 Requires: %{name}-core = %{version}-%{release}
321 %description phpbrain
322 This is the phpbrain app for eGroupWare.
324 %package phpldapadmin
325 Summary: The eGroupWare phpldapadmin application
326 Group: Applications/WWW
327 Requires: %{name}-core = %{version}-%{release}
329 %description phpldapadmin
330 This is the cire phpldapadmin of eGroupWare.
333 Summary: The eGroupWare phpsysinfo application
334 Group: Applications/WWW
335 Requires: %{name}-core = %{version}-%{release}
337 %description phpsysinfo
338 This is the phpsysinfo app for eGroupWare.
341 Summary: The eGroupWare polls application
342 Group: Applications/WWW
343 Requires: %{name}-core = %{version}-%{release}
346 This is the polls app for eGroupWare.
348 %package projectmanager
349 Summary: The eGroupWare projectmanager application
350 Group: Applications/WWW
351 Requires: %{name}-core = %{version}-%{release}
352 Requires: %{name}-etemplate = %{version}-%{release}
354 %description projectmanager
355 The projectmanager is eGroupWare's new project management application.
356 It's fully integrated into eGroupWare and use the data of InfoLog and
357 Calendar. Plugable datasources allow to support and manage further
361 Summary: The eGroupWare projects application
362 Group: Applications/WWW
363 Requires: %{name}-core = %{version}-%{release}
364 Requires: %{name}-infolog = %{version}-%{release}
366 %description projects
367 This is the projects app for eGroupWare.
369 %package registration
370 Summary: The eGroupWare registration application
371 Group: Applications/WWW
372 Requires: %{name}-core = %{version}-%{release}
374 %description registration
375 This is the registration app for eGroupWare.
378 Summary: The eGroupWare resources application
379 Group: Applications/WWW
380 Requires: %{name}-core = %{version}-%{release}
381 Requires: %{name}-etemplate = %{version}-%{release}
383 %description resources
384 resources is a resource booking sysmtem for eGroupWare. Which
385 integrates into the calendar.
388 Summary: The eGroupWare sambaadmin application
389 Group: Applications/WWW
390 Requires: %{name}-core = %{version}-%{release}
392 %description sambaadmin
393 Manage LDAP based sambaacounts and workstations.
396 Summary: The eGroupWare Sitemanager CMS application
397 Group: Applications/WWW
398 Requires: %{name}-core = %{version}-%{release}
401 This is the Sitemanager CMS app for eGroupWare.
404 Summary: The eGroupWare stocks application
405 Group: Applications/WWW
406 Requires: %{name}-core = %{version}-%{release}
409 This is the stocks app for eGroupWare.
412 Summary: The eGroupWare timesheet application
413 Group: Applications/WWW
414 Requires: %{name}-core = %{version}-%{release}
415 Requires: %{name}-etemplate = %{version}-%{release}
417 %description timesheet
418 Simple timesheet application, which allow to record and report the
419 times and other expenses. It can be uses as well standalone as
420 together with the ProjectManager application.
423 Summary: The eGroupWare trouble ticket system application
424 Group: Applications/WWW
425 Requires: %{name}-core = %{version}-%{release}
428 This is the trouble ticket system} app for eGroupWare.
431 Summary: The eGroupWare wiki application
432 Group: Applications/WWW
433 Requires: %{name}-core = %{version}-%{release}
436 This is the wiki app for eGroupWare.
439 Summary: The eGroupWare workflow application
440 Group: Applications/WWW
441 Requires: %{name}-core = %{version}-%{release}
443 %description workflow
444 This is the workflow app for eGroupWare.
447 Summary: eGroupware setup package
448 Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji eGroupware
449 Group: Applications/WWW
450 Requires: %{name}-core = %{version}-%{release}
453 Install this package to configure initial eGroupware installation. You
454 should uninstall this package when you're done, as it considered
455 insecure to keep the setup files in place.
457 %description setup -l pl.UTF-8
458 Ten pakiet należy zainstalować w celu wstępnej konfiguracji eGroupware
459 po pierwszej instalacji. Potem należy go odinstalować, jako że
460 pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
463 Summary: eGroupware DB Driver for MySQL
464 Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla MySQL-a
465 Group: Applications/WWW
467 Provides: %{name}(DB_Driver) = %{version}-%{release}
469 %description db-mysql
470 This virtual package provides MySQL database backend for eGroupware.
472 You will need MySQL server >= 4.0 to use this driver.
474 %description db-mysql -l pl.UTF-8
475 Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla
479 Summary: eGroupware DB Driver for PostgreSQL
480 Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla PostgreSQL-a
481 Group: Applications/WWW
483 Provides: %{name}(DB_Driver) = %{version}-%{release}
485 %description db-pgsql
486 This virtual package provides PostgreSQL database backend for
489 %description db-pgsql -l pl.UTF-8
490 Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
494 Summary: eGroupware DB Driver for MS SQL
495 Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla MS SQL-a
496 Group: Applications/WWW
498 Provides: %{name}(DB_Driver) = %{version}-%{release}
500 %description db-mssql
501 This virtual package provides MS SQL database backend for eGroupware.
503 %description db-mssql -l pl.UTF-8
504 Ten wirtualny pakiet dostarcza backend bazy danych MS SQL dla
507 %package -n openldap-schema-egroupware
508 Summary: eGroupWare LDAP schemas
509 Group: Networking/Daemons
510 Requires(post,postun): sed >= 4.0
511 Requires: openldap-servers
514 %description -n openldap-schema-egroupware
515 This package contains phpgwaccount.schema and phpgwcontact.schema for
519 %setup -q -n %{name} -a1
522 # remove as did upstream
529 # remove CVS control files
530 find -name .svn -print0 | xargs -0 rm -rf
532 find -regex '.*\.\(php\|inc\|html\|txt\|js\)$' -print0 | xargs -0 sed -i -e 's,\r$,,'
544 rm -r projectmanager/inc/ttf-bitstream-vera-1.10
546 # support just OpenLDAP
547 mv phpgwapi/doc/ldap/phpgw{account,contact}.schema .
548 mv phpgwapi/doc/ldap/README README.ldap
549 rm -rf phpgwapi/doc/ldap
552 rm -rf $RPM_BUILD_ROOT
553 install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/{lib/%{name}/default/{files,backup},run/%{name}}}
555 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
556 cp -a */ $RPM_BUILD_ROOT%{_appdir}
558 > $RPM_BUILD_ROOT%{_sysconfdir}/header.php
559 ln -s %{_sysconfdir}/header.php $RPM_BUILD_ROOT%{_appdir}/header.inc.php
561 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
562 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
563 install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}
565 # needed by setup script
566 install header.inc.php.template $RPM_BUILD_ROOT%{_appdir}
569 install -d $RPM_BUILD_ROOT%{schemadir}
570 cp -a *.schema $RPM_BUILD_ROOT%{schemadir}
572 rm -rf $RPM_BUILD_ROOT%{_appdir}/doc
575 rm -rf $RPM_BUILD_ROOT
577 %triggerin core -- apache1 < 1.3.37-3, apache1-base
578 %webapp_register apache %{_webapp}
580 %triggerun core -- apache1 < 1.3.37-3, apache1-base
581 %webapp_unregister apache %{_webapp}
583 %triggerin core -- apache < 2.2.0, apache-base
584 %webapp_register httpd %{_webapp}
586 %triggerun core -- apache < 2.2.0, apache-base
587 %webapp_unregister httpd %{_webapp}
589 %post -n openldap-schema-egroupware
590 %openldap_schema_register %{schemadir}/phpgw{account,contact}.schema
591 %service -q ldap restart
593 %postun -n openldap-schema-egroupware
594 if [ "$1" = "0" ]; then
595 %openldap_schema_unregister %{schemadir}/phpgw{account,contact}.schema
596 %service -q ldap restart
600 %defattr(644,root,root,755)
601 %doc doc/* README.ldap
604 %defattr(644,root,root,755)
605 %dir %attr(750,root,http) %{_sysconfdir}
606 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
607 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
608 %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/header.php
609 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
613 %dir %{_appdir}/phpgwapi
614 %{_appdir}/phpgwapi/*.php
615 %{_appdir}/phpgwapi/cron
616 %{_appdir}/phpgwapi/doc
617 %{_appdir}/phpgwapi/inc
618 %{_appdir}/phpgwapi/js
619 %{_appdir}/phpgwapi/setup
620 %{_appdir}/phpgwapi/templates
621 %{_appdir}/phpgwapi/themes
622 %{_appdir}/phpgwapi/tests
623 %dir %attr(775,root,http) %{_appdir}/phpgwapi/images
624 %{_appdir}/phpgwapi/images/*
626 # maybe separate these apps?
630 %{_appdir}/preferences
633 %dir /var/lib/%{name}/default
634 %dir %attr(775,root,http) /var/lib/%{name}/default/backup
635 %dir %attr(775,root,http) /var/lib/%{name}/default/files
636 %dir %attr(775,root,http) /var/run/%{name}
639 %defattr(644,root,root,755)
640 %{_appdir}/addressbook
643 %defattr(644,root,root,755)
647 %defattr(644,root,root,755)
651 %defattr(644,root,root,755)
655 %defattr(644,root,root,755)
659 %defattr(644,root,root,755)
663 %defattr(644,root,root,755)
666 %files developer_tools
667 %defattr(644,root,root,755)
668 %{_appdir}/developer_tools
671 %defattr(644,root,root,755)
675 %defattr(644,root,root,755)
676 %{_appdir}/emailadmin
679 %defattr(644,root,root,755)
683 %defattr(644,root,root,755)
684 %{_appdir}/felamimail
687 %defattr(644,root,root,755)
688 %{_appdir}/filemanager
691 %defattr(644,root,root,755)
692 %{_appdir}/filescenter
695 %defattr(644,root,root,755)
699 %defattr(644,root,root,755)
703 %defattr(644,root,root,755)
707 %defattr(644,root,root,755)
711 %defattr(644,root,root,755)
715 %defattr(644,root,root,755)
719 %defattr(644,root,root,755)
723 %defattr(644,root,root,755)
727 %defattr(644,root,root,755)
731 %defattr(644,root,root,755)
735 %defattr(644,root,root,755)
736 %{_appdir}/news_admin
739 %defattr(644,root,root,755)
743 %defattr(644,root,root,755)
744 %{_appdir}/phpldapadmin
747 %defattr(644,root,root,755)
748 %{_appdir}/phpsysinfo
751 %defattr(644,root,root,755)
754 %files projectmanager
755 %defattr(644,root,root,755)
756 %{_appdir}/projectmanager
759 %defattr(644,root,root,755)
763 %defattr(644,root,root,755)
764 %{_appdir}/registration
767 %defattr(644,root,root,755)
771 %defattr(644,root,root,755)
772 %{_appdir}/sambaadmin
775 %defattr(644,root,root,755)
779 %defattr(644,root,root,755)
783 %defattr(644,root,root,755)
787 %defattr(644,root,root,755)
791 %defattr(644,root,root,755)
795 %defattr(644,root,root,755)
799 %defattr(644,root,root,755)
800 %{_appdir}/header.inc.php.template
804 %defattr(644,root,root,755)
807 %defattr(644,root,root,755)
810 %defattr(644,root,root,755)
812 %files -n openldap-schema-egroupware
813 %defattr(644,root,root,755)
814 %{schemadir}/phpgwaccount.schema
815 %{schemadir}/phpgwcontact.schema