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: rpm-pythonprov
25 BuildRequires: sed >= 4.0
26 Requires: %{name}-addressbook = %{version}-%{release}
27 Requires: %{name}-bookmarks = %{version}-%{release}
28 Requires: %{name}-calendar = %{version}-%{release}
29 Requires: %{name}-core = %{version}-%{release}
30 Requires: %{name}-developer_tools = %{version}-%{release}
31 Requires: %{name}-emailadmin = %{version}-%{release}
32 Requires: %{name}-felamimail = %{version}-%{release}
33 Requires: %{name}-filemanager = %{version}-%{release}
34 Requires: %{name}-infolog = %{version}-%{release}
35 Requires: %{name}-manual = %{version}-%{release}
36 Requires: %{name}-mydms = %{version}-%{release}
37 Requires: %{name}-news_admin = %{version}-%{release}
38 Requires: %{name}-phpbrain = %{version}-%{release}
39 Requires: %{name}-polls = %{version}-%{release}
40 Requires: %{name}-projectmanager = %{version}-%{release}
41 Requires: %{name}-registration = %{version}-%{release}
42 Requires: %{name}-resources = %{version}-%{release}
43 Requires: %{name}-sambaadmin = %{version}-%{release}
44 Requires: %{name}-sitemgr = %{version}-%{release}
45 Requires: %{name}-syncml = %{version}-%{release}
46 Requires: %{name}-timesheet = %{version}-%{release}
47 Requires: %{name}-wiki = %{version}-%{release}
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 %define _webapps /etc/webapps
52 %define _webapp %{name}
53 %define _sysconfdir %{_webapps}/%{_webapp}
54 %define _appdir %{_datadir}/%{_webapp}
55 %define schemadir /usr/share/openldap/schema
58 eGroupWare is a multi-user, web-based groupware suite developed on a
59 custom set of PHP-based APIs.
61 This package provides the eGroupWare default applications:
63 egroupware core with: admin, api, docs, etemplate, preferences,
64 addressbook, bookmarks, calendar, translation-tools, emailadmin,
65 felamimail, filemanager, infolog, manual, mydms, news admin,
66 knowledgebase, polls, projectmanager, resources, sambaadmin, sitemgr,
67 syncml, timesheet, wiki, workflow
69 It also provides an API for developing additional applications.
71 Further contributed applications are avalible in single packages.
73 %description -l pl.UTF-8
74 eGroupWare to wieloużytkownikowe, oparte na WWW oprogramowanie do
75 pracy grupowej stworzone na własnym zestawie API opartych na PHP.
76 Aktualnie dostępne moduły obejmują: pocztę elektroniczną, książkę
77 adresową, kalendarz, infolog (notatki, rzeczy do zrobienia, rozmowy
78 telefoniczne), zarządzanie treścią, forum, zakładki, wiki.
81 Summary: The eGroupWare core package
82 Group: Applications/WWW
83 Requires: %{name}(DB_Driver) = %{version}-%{release}
84 Requires: /usr/bin/php
86 Requires: fonts-TTF-bitstream-vera
90 Requires: php(mbstring)
93 Requires: webserver(php) >= 4.3
94 Provides: %{name}-etemplate = %{version}-%{release}
95 Provides: %{name}-syncml = %{version}-%{release}
98 This package provides the eGroupWare core applications.
101 Summary: The eGroupWare addressbook application
102 Group: Applications/WWW
103 Requires: %{name}-core = %{version}-%{release}
105 %description addressbook
106 Contact manager with Vcard support. addressbook is the egroupware
107 default contact application. It makes use of the egroupware contacts
108 class to store and retrieve contact information via SQL, LDAP or
112 Summary: The eGroupWare backup application
113 Group: Applications/WWW
114 Requires: %{name}-core = %{version}-%{release}
117 An online configurable backup app to store data offline. Can store
118 files in zip, tar.gz and tar.bz2 on the local machine or Remote via
122 Summary: The eGroupWare browser application
123 Group: Applications/WWW
124 Requires: %{name}-core = %{version}-%{release}
127 Intergrated browser to surf the web within eGroupWare.
130 Summary: The eGroupWare bookmarks application
131 Group: Applications/WWW
132 Requires: %{name}-core = %{version}-%{release}
134 %description bookmarks
135 Manage your bookmarks with eGroupWare. Has Netscape plugin.
138 Summary: The eGroupWare calendar application
139 Group: Applications/WWW
140 Requires: %{name}-core = %{version}-%{release}
141 Requires: %{name}-etemplate = %{version}-%{release}
143 %description calendar
144 Powerful calendar with meeting request system, Alarms, ICal and E-Mail
145 support, and ACL security.
148 Summary: Instant messenger for eGroupWare
149 Group: Applications/WWW
150 Requires: %{name}-core = %{version}-%{release}
153 Instant messenger application using AJAX.
156 Summary: The eGroupWare comic application
157 Group: Applications/WWW
158 Requires: %{name}-core = %{version}-%{release}
161 This application display comic strips.
163 %package developer_tools
164 Summary: The eGroupWare developer_tools application
165 Group: Applications/WWW
167 %description developer_tools
168 The TranslationTools allow to create and extend translations-files for
169 eGroupWare. They can search the sources for new / added phrases and
170 show you the ones missing in your language.
173 Summary: The eGroupWare email application
174 Group: Applications/WWW
175 Requires: %{name}-addressbook = %{version}-%{release}
176 Requires: %{name}-core = %{version}-%{release}
179 AngleMail for eGroupWare at www.anglemail.org is an Email reader with
180 multiple accounts and mailbox filtering. Also Anglemail support IMAP,
181 IMAPS, POP3 and POP3S accounts.
184 Summary: The eGroupWare emailadmin application
185 Group: Applications/WWW
186 Requires: %{name}-core = %{version}-%{release}
188 %description emailadmin
189 EmailAdmin allow to maintain User email accounts
192 Summary: The eGroupWare egwical application
193 Group: Applications/WWW
194 Requires: %{name}-core = %{version}-%{release}
197 This is the egwical app for eGroupWare.
200 Summary: The eGroupWare felamimail application
201 Group: Applications/WWW
202 Requires: %{name}-core = %{version}-%{release}
203 Requires: %{name}-emailadmin = %{version}-%{release}
205 %description felamimail
206 The felamimail Email Reader is a other Email application for
210 Summary: The eGroupWare filemanager application
211 Group: Applications/WWW
212 Requires: %{name}-core = %{version}-%{release}
214 %description filemanager
215 This is the filemanager app for eGroupWare.
218 Summary: The eGroupWare filescenter application
219 Group: Applications/WWW
220 Requires: %{name}-core = %{version}-%{release}
222 %description filescenter
223 This is the filescenter app for eGroupWare.
226 Summary: The eGroupWare forum application
227 Group: Applications/WWW
228 Requires: %{name}-core = %{version}-%{release}
231 This is the forum app for eGroupWare.
234 Summary: The eGroupWare ftp application
235 Group: Applications/WWW
236 Requires: %{name}-core = %{version}-%{release}
239 This is the ftp app for eGroupWare.
242 Summary: The eGroupWare fudforum application
243 Group: Applications/WWW
244 Requires: %{name}-core = %{version}-%{release}
246 %description fudforum
247 This is the fudforum app for eGroupWare.
250 Summary: The eGroupWare headlines application
251 Group: Applications/WWW
252 Requires: %{name}-core = %{version}-%{release}
254 %description headlines
255 This is the headlines app for eGroupWare.
258 Summary: The eGroupWare icalsrv application
259 Group: Applications/WWW
260 Requires: %{name}-core = %{version}-%{release}
263 This is the icalsrv app for eGroupWare.
266 Summary: The eGroupWare infolog application
267 Group: Applications/WWW
268 Requires: %{name}-core = %{version}-%{release}
269 Requires: %{name}-etemplate = %{version}-%{release}
272 This is the infolog app for eGroupWare (Notes, ToDo, Phonelogs, CRM).
275 Summary: The eGroupWare jinn application
276 Group: Applications/WWW
277 Requires: %{name}-core = %{version}-%{release}
280 The jinn app is a multi-site, multi-database, multi-user/-group,
281 database driven Content Management System written in and for the
282 eGroupWare Framework.
285 Summary: The eGroupWare manual application
286 Group: Applications/WWW
287 Requires: %{name}-core = %{version}-%{release}
290 This is the manual app for eGroupWare: online help system.
293 Summary: The eGroupWare messenger application
294 Group: Applications/WWW
295 Requires: %{name}-core = %{version}-%{release}
297 %description messenger
298 This is the messenger app for eGroupWare.
301 Summary: The eGroupWare mydms application
302 Group: Applications/WWW
303 Requires: %{name}-core = %{version}-%{release}
306 This is a mydms port to eGroupWare.
309 Summary: The eGroupWare news_admin application
310 Group: Applications/WWW
311 Requires: %{name}-core = %{version}-%{release}
313 %description news_admin
314 This is the news_admin app for eGroupWare.
317 Summary: The eGroupWare phpbrain application
318 Group: Applications/WWW
319 Requires: %{name}-addressbook = %{version}-%{release}
320 Requires: %{name}-core = %{version}-%{release}
322 %description phpbrain
323 This is the phpbrain app for eGroupWare.
325 %package phpldapadmin
326 Summary: The eGroupWare phpldapadmin application
327 Group: Applications/WWW
328 Requires: %{name}-core = %{version}-%{release}
330 %description phpldapadmin
331 This is the cire phpldapadmin of eGroupWare.
334 Summary: The eGroupWare phpsysinfo application
335 Group: Applications/WWW
336 Requires: %{name}-core = %{version}-%{release}
338 %description phpsysinfo
339 This is the phpsysinfo app for eGroupWare.
342 Summary: The eGroupWare polls application
343 Group: Applications/WWW
344 Requires: %{name}-core = %{version}-%{release}
347 This is the polls app for eGroupWare.
349 %package projectmanager
350 Summary: The eGroupWare projectmanager application
351 Group: Applications/WWW
352 Requires: %{name}-core = %{version}-%{release}
353 Requires: %{name}-etemplate = %{version}-%{release}
355 %description projectmanager
356 The projectmanager is eGroupWare's new project management application.
357 It's fully integrated into eGroupWare and use the data of InfoLog and
358 Calendar. Plugable datasources allow to support and manage further
362 Summary: The eGroupWare projects application
363 Group: Applications/WWW
364 Requires: %{name}-core = %{version}-%{release}
365 Requires: %{name}-infolog = %{version}-%{release}
367 %description projects
368 This is the projects app for eGroupWare.
370 %package registration
371 Summary: The eGroupWare registration application
372 Group: Applications/WWW
373 Requires: %{name}-core = %{version}-%{release}
375 %description registration
376 This is the registration app for eGroupWare.
379 Summary: The eGroupWare resources application
380 Group: Applications/WWW
381 Requires: %{name}-core = %{version}-%{release}
382 Requires: %{name}-etemplate = %{version}-%{release}
384 %description resources
385 resources is a resource booking sysmtem for eGroupWare. Which
386 integrates into the calendar.
389 Summary: The eGroupWare sambaadmin application
390 Group: Applications/WWW
391 Requires: %{name}-core = %{version}-%{release}
393 %description sambaadmin
394 Manage LDAP based sambaacounts and workstations.
397 Summary: The eGroupWare Sitemanager CMS application
398 Group: Applications/WWW
399 Requires: %{name}-core = %{version}-%{release}
402 This is the Sitemanager CMS app for eGroupWare.
405 Summary: The eGroupWare stocks application
406 Group: Applications/WWW
407 Requires: %{name}-core = %{version}-%{release}
410 This is the stocks app for eGroupWare.
413 Summary: The eGroupWare timesheet application
414 Group: Applications/WWW
415 Requires: %{name}-core = %{version}-%{release}
416 Requires: %{name}-etemplate = %{version}-%{release}
418 %description timesheet
419 Simple timesheet application, which allow to record and report the
420 times and other expenses. It can be uses as well standalone as
421 together with the ProjectManager application.
424 Summary: The eGroupWare trouble ticket system application
425 Group: Applications/WWW
426 Requires: %{name}-core = %{version}-%{release}
429 This is the trouble ticket system} app for eGroupWare.
432 Summary: The eGroupWare wiki application
433 Group: Applications/WWW
434 Requires: %{name}-core = %{version}-%{release}
437 This is the wiki app for eGroupWare.
440 Summary: The eGroupWare workflow application
441 Group: Applications/WWW
442 Requires: %{name}-core = %{version}-%{release}
444 %description workflow
445 This is the workflow app for eGroupWare.
448 Summary: eGroupware setup package
449 Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji eGroupware
450 Group: Applications/WWW
451 Requires: %{name}-core = %{version}-%{release}
454 Install this package to configure initial eGroupware installation. You
455 should uninstall this package when you're done, as it considered
456 insecure to keep the setup files in place.
458 %description setup -l pl.UTF-8
459 Ten pakiet należy zainstalować w celu wstępnej konfiguracji eGroupware
460 po pierwszej instalacji. Potem należy go odinstalować, jako że
461 pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
464 Summary: eGroupware DB Driver for MySQL
465 Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla MySQL-a
466 Group: Applications/WWW
468 Provides: %{name}(DB_Driver) = %{version}-%{release}
470 %description db-mysql
471 This virtual package provides MySQL database backend for eGroupware.
473 You will need MySQL server >= 4.0 to use this driver.
475 %description db-mysql -l pl.UTF-8
476 Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla
480 Summary: eGroupware DB Driver for PostgreSQL
481 Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla PostgreSQL-a
482 Group: Applications/WWW
484 Provides: %{name}(DB_Driver) = %{version}-%{release}
486 %description db-pgsql
487 This virtual package provides PostgreSQL database backend for
490 %description db-pgsql -l pl.UTF-8
491 Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
495 Summary: eGroupware DB Driver for MS SQL
496 Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla MS SQL-a
497 Group: Applications/WWW
499 Provides: %{name}(DB_Driver) = %{version}-%{release}
501 %description db-mssql
502 This virtual package provides MS SQL database backend for eGroupware.
504 %description db-mssql -l pl.UTF-8
505 Ten wirtualny pakiet dostarcza backend bazy danych MS SQL dla
508 %package -n openldap-schema-egroupware
509 Summary: eGroupWare LDAP schemas
510 Group: Networking/Daemons
511 Requires(post,postun): sed >= 4.0
512 Requires: openldap-servers
515 %description -n openldap-schema-egroupware
516 This package contains phpgwaccount.schema and phpgwcontact.schema for
520 %setup -q -n %{name} -a1
523 # remove as did upstream
530 # remove CVS control files
531 find -name .svn -print0 | xargs -0 rm -rf
533 find -regex '.*\.\(php\|inc\|html\|txt\|js\)$' -print0 | xargs -0 sed -i -e 's,\r$,,'
545 rm -r projectmanager/inc/ttf-bitstream-vera-1.10
547 # support just OpenLDAP
548 mv phpgwapi/doc/ldap/phpgw{account,contact}.schema .
549 mv phpgwapi/doc/ldap/README README.ldap
550 rm -rf phpgwapi/doc/ldap
553 rm -rf $RPM_BUILD_ROOT
554 install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/{lib/%{name}/default/{files,backup},run/%{name}}}
556 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
557 cp -a */ $RPM_BUILD_ROOT%{_appdir}
559 > $RPM_BUILD_ROOT%{_sysconfdir}/header.php
560 ln -s %{_sysconfdir}/header.php $RPM_BUILD_ROOT%{_appdir}/header.inc.php
562 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
563 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
564 install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}
566 # needed by setup script
567 install header.inc.php.template $RPM_BUILD_ROOT%{_appdir}
570 install -d $RPM_BUILD_ROOT%{schemadir}
571 cp -a *.schema $RPM_BUILD_ROOT%{schemadir}
573 rm -rf $RPM_BUILD_ROOT%{_appdir}/doc
576 rm -rf $RPM_BUILD_ROOT
578 %triggerin core -- apache1 < 1.3.37-3, apache1-base
579 %webapp_register apache %{_webapp}
581 %triggerun core -- apache1 < 1.3.37-3, apache1-base
582 %webapp_unregister apache %{_webapp}
584 %triggerin core -- apache < 2.2.0, apache-base
585 %webapp_register httpd %{_webapp}
587 %triggerun core -- apache < 2.2.0, apache-base
588 %webapp_unregister httpd %{_webapp}
590 %post -n openldap-schema-egroupware
591 %openldap_schema_register %{schemadir}/phpgw{account,contact}.schema
592 %service -q ldap restart
594 %postun -n openldap-schema-egroupware
595 if [ "$1" = "0" ]; then
596 %openldap_schema_unregister %{schemadir}/phpgw{account,contact}.schema
597 %service -q ldap restart
601 %defattr(644,root,root,755)
602 %doc doc/* README.ldap
605 %defattr(644,root,root,755)
606 %dir %attr(750,root,http) %{_sysconfdir}
607 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
608 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
609 %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/header.php
610 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
614 %dir %{_appdir}/phpgwapi
615 %{_appdir}/phpgwapi/*.php
616 %{_appdir}/phpgwapi/cron
617 %{_appdir}/phpgwapi/doc
618 %{_appdir}/phpgwapi/inc
619 %{_appdir}/phpgwapi/js
620 %{_appdir}/phpgwapi/setup
621 %{_appdir}/phpgwapi/templates
622 %{_appdir}/phpgwapi/themes
623 %{_appdir}/phpgwapi/tests
624 %dir %attr(775,root,http) %{_appdir}/phpgwapi/images
625 %{_appdir}/phpgwapi/images/*
627 # maybe separate these apps?
631 %{_appdir}/preferences
634 %dir /var/lib/%{name}/default
635 %dir %attr(775,root,http) /var/lib/%{name}/default/backup
636 %dir %attr(775,root,http) /var/lib/%{name}/default/files
637 %dir %attr(775,root,http) /var/run/%{name}
640 %defattr(644,root,root,755)
641 %{_appdir}/addressbook
644 %defattr(644,root,root,755)
648 %defattr(644,root,root,755)
652 %defattr(644,root,root,755)
656 %defattr(644,root,root,755)
660 %defattr(644,root,root,755)
664 %defattr(644,root,root,755)
667 %files developer_tools
668 %defattr(644,root,root,755)
669 %{_appdir}/developer_tools
672 %defattr(644,root,root,755)
676 %defattr(644,root,root,755)
677 %{_appdir}/emailadmin
680 %defattr(644,root,root,755)
684 %defattr(644,root,root,755)
685 %{_appdir}/felamimail
688 %defattr(644,root,root,755)
689 %{_appdir}/filemanager
692 %defattr(644,root,root,755)
693 %{_appdir}/filescenter
696 %defattr(644,root,root,755)
700 %defattr(644,root,root,755)
704 %defattr(644,root,root,755)
708 %defattr(644,root,root,755)
712 %defattr(644,root,root,755)
716 %defattr(644,root,root,755)
720 %defattr(644,root,root,755)
724 %defattr(644,root,root,755)
728 %defattr(644,root,root,755)
732 %defattr(644,root,root,755)
736 %defattr(644,root,root,755)
737 %{_appdir}/news_admin
740 %defattr(644,root,root,755)
744 %defattr(644,root,root,755)
745 %{_appdir}/phpldapadmin
748 %defattr(644,root,root,755)
749 %{_appdir}/phpsysinfo
752 %defattr(644,root,root,755)
755 %files projectmanager
756 %defattr(644,root,root,755)
757 %{_appdir}/projectmanager
760 %defattr(644,root,root,755)
764 %defattr(644,root,root,755)
765 %{_appdir}/registration
768 %defattr(644,root,root,755)
772 %defattr(644,root,root,755)
773 %{_appdir}/sambaadmin
776 %defattr(644,root,root,755)
780 %defattr(644,root,root,755)
784 %defattr(644,root,root,755)
788 %defattr(644,root,root,755)
792 %defattr(644,root,root,755)
796 %defattr(644,root,root,755)
800 %defattr(644,root,root,755)
801 %{_appdir}/header.inc.php.template
805 %defattr(644,root,root,755)
808 %defattr(644,root,root,755)
811 %defattr(644,root,root,755)
813 %files -n openldap-schema-egroupware
814 %defattr(644,root,root,755)
815 %{schemadir}/phpgwaccount.schema
816 %{schemadir}/phpgwcontact.schema