/[packages]/updates/3/zarafa/current/SPECS/zarafa.spec
ViewVC logotype

Contents of /updates/3/zarafa/current/SPECS/zarafa.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 669311 - (show annotations) (download)
Fri Aug 29 20:41:43 2014 UTC (10 years, 1 month ago) by spuhler
File size: 29220 byte(s)
- upgrade to vers. 7.1.11
- enabled swig
1 %define _disable_ld_as_needed 1
2 %define _disable_ld_no_undefined 1
3 %define major 0
4 %define libname %mklibname %{name} %{major}
5 %define develname %mklibname %{name} -d
6
7 %define beta_or_rc 0
8 %define actual_release 1
9 %define svnrevision 45875
10 %define with_clucene 1
11 %define with_ldap 1
12 %define with_xmlto 1
13
14 %define _requires_exceptions pear(debug.php)\\|pear(mapi/
15 %define _provides_exceptions pear(debug.php)\\|pear(mapi/
16
17
18 Summary: Zarafa Outlook Sharing and Open Source Collaboration
19 Name: zarafa
20 Version: 7.1.11
21 %if %{beta_or_rc}
22 Release: %mkrel 0.svn%{svnrevision}.%{actual_release}
23 %else
24 Release: %mkrel %{actual_release}
25 %endif
26 # Red Hat Legal has been advised by email from Zarafa that no license is
27 # required in order to use the letter string "zarafa" (combined with other
28 # words) in the package naming, to refer to the software as "Zarafa" to
29 # indicate its intended purpose, and to modify packages with bug fixes and
30 # enhancements.
31 License: AGPLv3
32 #
33 # The zarafa website http://community.zarafa.com/
34 # states:
35 # The community version is available in precompiled packages or as source code.
36 # The source code is licensed under the Affero GPLv3 license.
37 #
38 Group: System/Servers
39 URL: http://www.zarafa.com/
40 # http://www.zarafa.com/download-community -> "Zarafa Source Package"
41 Source0: http://download.zarafa.com/community/final/7.1/%{version}-%{svnrevision}/sourcecode/zcp-%{version}.tar.gz
42 Source1: %{name}.ini
43 Source2: %{name}.logrotate
44 Source3: %{name}-webaccess.conf
45 Source4: %{name}.rpmlintrc
46 Patch0: zarafa-7.1.11-rpath.patch
47 Patch1: zarafa-7.1.10-kyotocabinet.patch
48 BuildRequires: byacc
49 BuildRequires: curl-devel
50 BuildRequires: flex
51 BuildRequires: gettext
52 BuildRequires: libical-devel >= 0.42
53 BuildRequires: libvmime-devel >= 0.9.0
54 BuildRequires: libxml2-devel
55 BuildRequires: mysql-devel >= 4.1
56 #BuildRequires: ncurses-devel
57 BuildRequires: pkgconfig(ncursesw)
58 BuildRequires: pam-devel
59 BuildRequires: perl
60 BuildRequires: perl-devel
61 BuildRequires: php-devel >= 3:5.2.0
62 BuildRequires: swig
63 BuildRequires: python-devel
64 BuildRequires: boost-devel
65 BuildRequires: libuuid-devel
66 BuildRequires: kyotocabinet-devel
67 %if %{with_clucene}
68 BuildRequires: clucene-devel >= 0.9.20
69 %endif
70 %if %{with_ldap}
71 BuildRequires: openldap-devel
72 %endif
73 %if %{with_xmlto}
74 BuildRequires: xmlto
75 %endif
76 # The normal zarafa package pulls in all of zarafa
77 Requires: mysql
78 Requires: locales-en
79 Requires: zarafa-ical >= %{version}-%{release}
80 Requires: zarafa-dagent >= %{version}-%{release}
81 Requires: zarafa-gateway >= %{version}-%{release}
82 Requires: zarafa-monitor >= %{version}-%{release}
83 Requires: zarafa-server >= %{version}-%{release}
84 Requires: zarafa-spooler >= %{version}-%{release}
85 Requires: zarafa-utils >= %{version}-%{release}
86 Requires: zarafa-config >= %{version}-%{release}
87 Requires: zarafa-webaccess >= %{version}-%{release}
88
89 %description
90 Zarafa Outlook Sharing is a Microsoft Exchange replacement. The Open Source
91 Collaboration provides an integration with your existing Linux mail server,
92 native mobile phone support by ActiveSync compatibility and a webaccess with
93 'Look & Feel' similar to Outlook using Ajax. Including an IMAP4 and a POP3
94 gateway as well as an iCal/CalDAV gateway, Zarafa can combine the usability
95 with the stability and flexibility of a Linux server.
96
97 The proven Zarafa groupware solution is using MAPI objects, provides a MAPI
98 client library as well as programming interfaces for C++, PHP and Perl. The
99 other Zarafa related packages need to be installed to gain all the features
100 and benefits of Zarafa Outlook Sharing and Open Source Collaboration.
101
102
103 %package client
104 Summary: Zarafa Client Library
105 Group: System/Servers
106 Requires: zarafa-common >= %{version}-%{release}
107
108 %description client
109 Zarafa client libraries for use with integrated MAPI clients.
110
111 %package common
112 Summary: Zarafa common files
113 Group: System/Servers
114
115 %description common
116 Common files and directories required by most Zarafa packages.
117
118 %package dagent
119 Summary: Zarafa Delivery Agent
120 Group: System/Servers
121 Requires: zarafa-client >= %{version}-%{release}
122 Requires: zarafa-common >= %{version}-%{release}
123 Requires(post): chkconfig
124 Requires(preun):/sbin/service
125 Requires(preun): chkconfig
126 Requires(postun):/sbin/service
127
128 %description dagent
129 The delivery agent delivers e-mails into the Zarafa server.
130 It can be used to trigger the local mailer or act as the LMTP
131 server.
132
133 %package -n %{develname}
134 Summary: Development files for several Zarafa libraries
135 Group: Development/C++
136 Requires: %{name} = %{version}-%{release}, pkgconfig
137 Requires: zarafa-common = %{version}-%{release}
138 Provides: %{name}-devel = %{version}-%{release}
139 Conflicts: %{_lib}zarafa0 < 7.1.8-7
140
141 %description -n %{develname}
142 The zarafa-devel package includes header files and libraries necessary for
143 developing programs which use features from the Zarafa Outlook Sharing and
144 Open Source Collaboration. The proven Zarafa groupware solution is using
145 MAPI objects, provides a MAPI client library and programming interfaces for
146 C++, PHP and Perl.
147
148 %package gateway
149 Summary: Zarafa Gateway server (POP3/IMAP access)
150 Group: System/Servers
151 Requires: zarafa-client >= %{version}-%{release}
152 Requires: zarafa-common >= %{version}-%{release}
153 Requires(post): chkconfig
154 Requires(preun):/sbin/service
155 Requires(preun):chkconfig
156 Requires(postun):/sbin/service
157
158 %description gateway
159 The gateway enables other e-mail clients to connect through
160 POP3 or IMAP to the Zarafa server to read their e-mail. With
161 IMAP, it is also possible to view the contents of shared
162 folders and subfolders. The gateway can be configured to
163 listen for POP3, POP3S, IMAP and/or IMAPS.
164
165 %package ical
166 Summary: The Zarafa iCal/CalDAV gateway
167 Group: System/Servers
168 Requires: zarafa-client >= %{version}-%{release}
169 Requires: zarafa-common >= %{version}-%{release}
170 Requires(post): chkconfig
171 Requires(preun):/sbin/service
172 Requires(preun):chkconfig
173 Requires(postun):/sbin/service
174 Provides: zarafa-caldav = %{version}-%{release}
175
176 %description ical
177 The iCal/CalDAV gateway enables users to retrieve their
178 calendar using iCalendar compliant clients. The iCal/CalDAV
179 gateway can be configured to listen for HTTP and HTTPS
180 requests.
181
182 %package caldav
183 Summary: The Zarafa iCal/CalDAV gateway
184 Group: System/Servers
185 Requires: zarafa-ical >= %{version}-%{release}
186
187 %description caldav
188 The iCal/CalDAV gateway enables users to retrieve their
189 calendar using iCalendar compliant clients. The iCal/CalDAV
190 gateway can be configured to listen for HTTP and HTTPS
191 requests.
192
193 %package monitor
194 Summary: Zarafa Monitoring service
195 Group: System/Servers
196 Requires: zarafa-client >= %{version}-%{release}
197 Requires: zarafa-common >= %{version}-%{release}
198 Requires(post): chkconfig
199 Requires(preun):/sbin/service
200 Requires(preun):chkconfig
201 Requires(postun):/sbin/service
202
203 %description monitor
204 The monitor checks user mailbox sizes. When a quotum is reached
205 the monitor sends a quota notification email.
206
207 %package server
208 Summary: Zarafa Backend Server
209 Group: System/Servers
210 Requires: zarafa-common >= %{version}-%{release}
211 Requires(post): chkconfig
212 Requires(preun):/sbin/service
213 Requires(preun):chkconfig
214 Requires(postun):/sbin/service
215 Provides: zarafa-config = %{version}-%{release}
216
217 %description server
218 The Zarafa groupware backend server
219
220 %package spooler
221 Summary: Zarafa Spooler Service
222 Group: System/Servers
223 Requires: zarafa-client >= %{version}-%{release}
224 Requires: zarafa-common >= %{version}-%{release}
225 Requires(post): chkconfig
226 Requires(preun): /sbin/service
227 Requires(preun): chkconfig
228 Requires(postun): /sbin/service
229
230 %description spooler
231 The spooler sends all pending Zarafa e-mail to the recipients,
232 from the Outbox of a user/all users.
233
234 %package utils
235 Summary: Zarafa Utilities
236 Group: System/Servers
237 Requires: zarafa-client >= %{version}-%{release}
238 Requires: zarafa-common >= %{version}-%{release}
239
240 %description utils
241 Administration utilities for the Zarafa Groupware environment
242 including reporting and password management.
243
244 %package -n %{libname}
245 Summary: Mapi libraries by Zarafa
246 Group: System/Libraries
247 Requires: zarafa-client >= %{version}-%{release}
248 Requires(post): /sbin/ldconfig
249 Requires(postun): /sbin/ldconfig
250
251 %description -n %{libname}
252 MAPI libraries by Zarafa.
253
254 %package -n python-MAPI
255 Summary: Python Mapi extension libraries by Zarafa
256 Group: Development/Python
257 Requires: python
258
259 %description -n python-MAPI
260 Python MAPI extension libraries by Zarafa.
261
262 %if %{with perl}
263 %package -n perl-MAPI
264 Summary: The Perl MAPI extension by Zarafa
265 Group: Development/Perl
266 %rename perl-libmapi
267
268 %description -n perl-MAPI
269 The perl-MAPI package contains the Perl MAPI extension to provide access
270 to Microsoft MAPI functions while using Perl.
271 %endif
272
273 %package -n php-mapi
274 Summary: A PHP Mapi client by Zarafa
275 Group: Development/PHP
276 # Bug: Without mod_ssl, reloading httpd causes core dump
277 Requires: apache-mod_ssl
278 Requires: apache-mod_php >= 5.2
279
280 %description -n php-mapi
281 PHP MAPI extension by Zarafa to enable MAPI communication in PHP.
282
283 %if %{with_clucene}
284 %package indexer
285 Summary: The Zarafa Indexing service
286 Group: System/Servers
287 Requires: zarafa-common >= %{version}-%{release}
288 Requires: catdoc
289 Requires: xsltproc
290 Requires: lynx
291 Requires: unzip
292 Requires: poppler
293 Requires: file
294 Requires(post): chkconfig
295 Requires(preun):/sbin/service
296 Requires(preun):chkconfig
297 Requires(postun):/sbin/service
298
299 %description indexer
300 The zarafa-indexer package includes the Zarafa Indexing service for fast
301 and full-text searching. Using CLucene search engine, this service makes
302 an index per user of messages and attachments for the Zarafa server. At
303 search queries, the server will use this index to quickly find messages,
304 items and even in contents of attached documents.
305 %endif
306
307 %package webaccess
308 Summary: Zarafa Webaccess featuring a 'Look & Feel' similar to Outlook
309 Group: Development/PHP
310 Requires: apache-mod_php >= 5.2
311 Requires: php-mapi >= %{version}-%{release}
312 BuildArch: noarch
313 Requires: php-pear
314 Requires: php-iconv
315
316 %description webaccess
317 Zarafa Webaccess features the familiar Outlook 'Look & Feel' interface
318 and you can keep using the features in Outlook that have always allowed
319 you to work efficiently. View your e-mail, calendar and contacts via a
320 web browser. And opening your colleagues calendar or sending a meeting
321 request is only a piece of cake. The Zarafa Webaccess is using the ajax
322 technology to give a more interactive feeling to the users.
323
324 %package archiver
325 Summary: Manages zarafa archives and perfoms the archive operation
326 Group: System/Servers
327 Requires: zarafa-client >= %{version}-%{release}
328 Requires: zarafa-common >= %{version}-%{release}
329 Requires: zarafa-utils >= %{version}-%{release}
330
331 %description archiver
332 This tool is used to attach or detach archives to a users store.
333 An archive is defined as a special non-active store or a folder inside such a
334 store.
335
336 On top of managing archives, this tool is used to perfom the actual archive
337 operation Using the -u option, the archiver can be instructed to archive a
338 single store or all stores.
339
340 %prep
341 %setup -q
342 %patch0 -p1 -b .rpath
343 touch -c -r aclocal.m4.rpath aclocal.m4
344 %patch1 -p1 -b .kyotocabinet
345
346 %build
347 #autoreconf -fi
348 CFLAGS="%{optflags} -fno-strict-aliasing" \
349 %configure2_5x \
350 --with-userscript-prefix=%{_sysconfdir}/%{name}/userscripts \
351 --with-quotatemplate-prefix=%{_sysconfdir}/%{name}/quotamail \
352 --with-clucene-lib-prefix=%{_libdir} \
353 --with-clucene-include-prefix=%{_includedir} \
354 --enable-release \
355 --enable-swig \
356 --disable-static \
357 --enable-unicode \
358 --enable-python
359
360 find swig -type f | xargs touch
361 make
362
363 %install
364 make \
365 docdir=%{_datadir}/doc/%{name}/ \
366 datarootdir=%{_datadir} \
367 DESTDIR=%{buildroot} \
368 INSTALL='install -p' \
369 BUILT_SOURCES='' \
370 install \
371 install-ajax-webaccess
372
373 # Nuke all leftovers from licensed, managed or other proprietary items
374 rm -rf %{buildroot}%{_sysconfdir}/{%{name}/{license,licensed.cfg,report-ca},cron.daily/%{name}-client-update}
375 rm -f %{buildroot}%{_mandir}/man?/{zarafa-{backup,restore,report,msr*,ldapms.cfg,licensed{,.cfg}},za-aclsync}.*
376
377 # Move all the initscripts to their appropriate place and
378 # ensure that all services are off by default at boot time
379 rm -rf %{buildroot}%{_sysconfdir}/init.d/
380 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d/
381 for service in dagent gateway ical indexer monitor server spooler; do
382 if [ -f installer/linux/%{name}-$service.init.rhel ]; then
383 sed -e 's@345@-@' installer/linux/%{name}-$service.init.rhel > \
384 %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}-$service
385 chmod 755 %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}-$service
386 touch -c -r installer/linux/%{name}-$service.init.rhel %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}-$service
387 fi
388 done
389
390 # Move the configuration files to their correct place and handle
391 # /usr/lib vs. /usr/lib64 for all architectures correct and set
392 # run_as_user, run_as_group and local_admin_users values correct
393 for config in %{buildroot}%{_datadir}/doc/%{name}/example-config/*.cfg; do
394 config=$(basename $config)
395 if [ -f %{buildroot}%{_datadir}/doc/%{name}/example-config/$config ]; then
396 sed -e 's@\(run_as_\(user\|group\)[[:space:]]*=\).*@\1 %{name}@' -e 's@/usr/lib/zarafa@%{_libdir}/%{name}@' \
397 -e 's@\(local_admin_users[[:space:]]*=[[:space:]]*root.*\)@\1 %{name}@' \
398 %{buildroot}%{_datadir}/doc/%{name}/example-config/$config > %{buildroot}%{_sysconfdir}/%{name}/$config
399 chmod 640 %{buildroot}%{_sysconfdir}/%{name}/$config
400 touch -c -r %{buildroot}%{_datadir}/doc/%{name}/example-config/$config %{buildroot}%{_sysconfdir}/%{name}/$config
401 fi
402 done
403
404 # Move the logrotate configuration file to its correct place
405 rm -f %{buildroot}%{_sysconfdir}/logrotate.d/*
406 install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
407
408 # Move the userscripts to their correct place and symlink them
409 mkdir -p %{buildroot}%{_datadir}/%{name}/userscripts/
410 for userscript in companies_common.sh groups_common.sh users_common.sh \
411 createcompany creategroup createuser deletecompany deletegroup deleteuser; do
412 mv -f %{buildroot}{%{_sysconfdir},%{_datadir}}/%{name}/userscripts/$userscript
413 ln -sf ../../..%{_datadir}/%{name}/userscripts/$userscript %{buildroot}%{_sysconfdir}/%{name}/userscripts/$userscript
414 done
415
416 # Create the data directory and install some files into
417 mkdir -p %{buildroot}%{_datadir}/%{name}/
418 install -m0755 installer/linux/db-{calc-storesize,convert-attachments-to-files} %{buildroot}%{_datadir}/%{name}/
419 install -m0755 installer/linux/ssl-certificates.sh %{buildroot}%{_datadir}/%{name}/
420 install -m0755 installer/linux/audit-parse.pl %{buildroot}%{_datadir}/%{name}/
421 %if %{with_ldap}
422 install -m0755 installer/linux/{db-upgrade-objectsid-to-objectguid,ldap-switch-sendas}.pl %{buildroot}%{_datadir}/%{name}/
423 install -m0644 installer/ldap/%{name}.schema %{buildroot}%{_datadir}/%{name}/
424 %else
425 rm -f %{buildroot}%{_sysconfdir}/%{name}/ldap.{active-directory,openldap,propmap}.cfg
426 rm -f %{buildroot}%{_mandir}/man5/%{name}-ldap.cfg.5*
427 %endif
428
429 # Create the default log and lib directory for packaging
430 mkdir -p %{buildroot}%{_localstatedir}/{log,lib}/%{name}/
431
432 # Remove all libtool .la files to avoid packaging of them
433 rm -f %{buildroot}{%{_libdir}/{,php/modules,php4,%{name}},%{perl_vendorarch}/auto/MAPI}/*.la
434
435 # Remove files that are anyway in %doc or %{_datadir}/%{name}/
436 rm -rf %{buildroot}%{_datadir}/doc/%{name}{,-indexer}/
437
438 # Remove unwanted/unused files that shouldn't exist anyway...
439 rm -f %{buildroot}%{_sysconfdir}/sysconfig/%{name}-indexer
440
441 # Move Indexer/CLucene related files to its correct places
442 %if !%{with_clucene}
443 rm -f %{buildroot}{%{_sysconfdir}/{rc.d/init.d,sysconfig},%{_mandir}/man?}/%{name}-indexer*
444 rm -rf %{buildroot}{%{_sysconfdir}/%{name}/indexer.cfg,%{_datadir}/%{name}/indexerscripts/}
445 %endif
446
447 # Move the webaccess configuration file to its correct place
448 mv -f %{buildroot}%{_sysconfdir}/%{name}/webaccess{-ajax,}
449 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/config.php
450 ln -sf ../../..%{_sysconfdir}/%{name}/webaccess/config.php %{buildroot}%{_datadir}/%{name}-webaccess/config.php
451
452 # Install the apache configuration file for webaccess
453 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
454 install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}-webaccess.conf
455
456 # Move the webaccess plugins directory to its correct place
457 rm -rf %{buildroot}{%{_datadir},%{_localstatedir}/lib}/%{name}-webaccess/plugins
458 mkdir -p %{buildroot}%{_datadir}/%{name}-webaccess/plugins/
459
460 # Remove unwanted language connectors and webaccess files
461 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/client/widgets/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.{cfm,pl}
462 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/{.htaccess,%{name}-webaccess.conf}
463 #rm -f %{buildroot}%{_libdir}/php/extensions/mapi.*a
464
465 # bork
466 install -m0644 doc/zarafa.1 %{buildroot}%{_mandir}/man1/
467 install -m0644 installer/linux/ldap.active-directory.cfg %{buildroot}%{_sysconfdir}/%{name}/
468 install -m0644 installer/linux/ldap.openldap.cfg %{buildroot}%{_sysconfdir}/%{name}/
469
470 # don't bundle PEAR
471
472 # php-pear
473 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/server/PEAR/PEAR.php
474 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/server/PEAR/XML/Util.php
475
476 # php-pear-XML_Serializer
477 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/server/PEAR/XML/Serializer.php
478 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/server/PEAR/XML/Unserializer.php
479
480 # php-pear-Services_JSON
481 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/server/PEAR/JSON.php
482
483 # php-pear-XML_Parser
484 rm -rf %{buildroot}%{_datadir}/%{name}-webaccess/server/PEAR/XML/Parser
485 rm -f %{buildroot}%{_datadir}/%{name}-webaccess/server/PEAR/XML/Parser.php
486
487 # Remove files only required by proprietary web services
488 rm -rf $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/ws.cfg,%{_datadir}/zarafa/timezones}
489
490 %find_lang %{name}
491
492 # XXX: why desn't spec-helper script take care of removing this..?
493 find %{buildroot} -name \*.la | xargs rm -f
494
495 # taken from mdv
496 %pre common
497 %_pre_useradd %{name} %{_localstatedir}/lib/%{name} /sbin/nologin
498
499 %post dagent
500 %_post_service %{name}-dagent %{name}-dagent.service
501 # Ensure correct log file ownership after upgrade from official packages
502 chown %{name}:%{name} %{_localstatedir}/log/%{name}/dagent.* > /dev/null 2>&1 || :
503
504 %post ical
505 %_post_service %{name}-ical %{name}-ical.service
506 # Ensure correct log file ownership after upgrade from official packages
507 chown %{name}:%{name} %{_localstatedir}/log/%{name}/ical.* > /dev/null 2>&1 || :
508
509 %post gateway
510 %_post_service %{name}-gateway %{name}-gateway.service
511 # Ensure correct log file ownership after upgrade from official packages
512 chown %{name}:%{name} %{_localstatedir}/log/%{name}/gateway.* > /dev/null 2>&1 || :
513
514 %post monitor
515 %_post_service %{name}-monitor %{name}-monitor.service
516 # Ensure correct log file ownership after upgrade from official packages
517 chown %{name}:%{name} %{_localstatedir}/log/%{name}/monitor.* > /dev/null 2>&1 || :
518
519 %post server
520 %_post_service %{name}-server %{name}-server.service
521 # Ensure correct log file ownership after upgrade from official packages
522 chown %{name}:%{name} %{_localstatedir}/log/%{name}/server.* > /dev/null 2>&1 || :
523
524 %post spooler
525 %_post_service %{name}-spooler %{name}-spooler.service
526 # Ensure correct log file ownership after upgrade from official packages
527 chown %{name}:%{name} %{_localstatedir}/log/%{name}/spooler.* > /dev/null 2>&1 || :
528
529 %preun dagent
530 if [ $1 -eq 0 ]; then
531 /sbin/service %{name}-dagent stop > /dev/null 2>&1 || :
532 chkconfig --del %{name}-dagent
533 fi
534
535 %preun ical
536 if [ $1 -eq 0 ]; then
537 /sbin/service %{name}-ical stop > /dev/null 2>&1 || :
538 chkconfig --del %{name}-ical
539 fi
540
541 %preun gateway
542 if [ $1 -eq 0 ]; then
543 /sbin/service %{name}-gateway stop > /dev/null 2>&1 || :
544 chkconfig --del %{name}-gateway
545 fi
546
547 %preun monitor
548 if [ $1 -eq 0 ]; then
549 /sbin/service %{name}-monitor stop > /dev/null 2>&1 || :
550 chkconfig --del %{name}-monitor
551 fi
552
553 %preun server
554 if [ $1 -eq 0 ]; then
555 /sbin/service %{name}-server stop > /dev/null 2>&1 || :
556 chkconfig --del %{name}-server
557 fi
558
559 %preun spooler
560 if [ $1 -eq 0 ]; then
561 /sbin/service %{name}-spooler stop > /dev/null 2>&1 || :
562 chkconfig --del %{name}-spooler
563 fi
564
565 %postun dagent
566 if [ $1 -ne 0 ]; then
567 /sbin/service %{name}-dagent condrestart > /dev/null 2>&1 || :
568 fi
569
570 %postun ical
571 if [ $1 -ne 0 ]; then
572 /sbin/service %{name}-ical condrestart > /dev/null 2>&1 || :
573 fi
574
575 %postun gateway
576 if [ $1 -ne 0 ]; then
577 /sbin/service %{name}-gateway condrestart > /dev/null 2>&1 || :
578 fi
579
580 %postun monitor
581 if [ $1 -ne 0 ]; then
582 /sbin/service %{name}-monitor condrestart > /dev/null 2>&1 || :
583 fi
584
585 %postun server
586 if [ $1 -ne 0 ]; then
587 /sbin/service %{name}-server condrestart > /dev/null 2>&1 || :
588 fi
589
590 %postun spooler
591 if [ $1 -ne 0 ]; then
592 /sbin/service %{name}-spooler condrestart > /dev/null 2>&1 || :
593 fi
594
595 %files
596 %doc installer/licenseagreement/AGPL-3
597
598 %files caldav
599 %doc installer/licenseagreement/AGPL-3
600
601 %files client
602 %doc installer/licenseagreement/AGPL-3
603 %{_libdir}/libzarafaclient.so
604 %{_libdir}/libzarafacontacts.so
605 %{_libdir}/libzarafasync.so.*
606
607 %files common
608 %doc installer/licenseagreement/AGPL-3
609 %dir %{_sysconfdir}/%{name}/
610 %dir %{_sysconfdir}/mapi/
611 %config(noreplace) %{_sysconfdir}/mapi/zarafa.inf
612 %config(noreplace) %{_sysconfdir}/mapi/zcontacts.inf
613 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
614 %dir %{_libdir}/%{name}/
615 %{_mandir}/man1/%{name}.1*
616 %{_mandir}/man1/zarafa-autorespond.1.*
617 %{_mandir}/man1/zarafa-mailbox-permissions.1.*
618 %{_mandir}/man1/zarafa-search.1.*
619 %{_mandir}/man1/zarafa-set-oof.1.*
620 %{_mandir}/man1/za-*
621 %{_mandir}/man5/%{name}*
622 %dir %{_datadir}/%{name}/
623 %dir %attr(0755,%{name},%{name}) %{_localstatedir}/lib/%{name}/
624 %dir %attr(0755,%{name},%{name}) %{_localstatedir}/log/%{name}/
625
626 %files dagent
627 %doc installer/licenseagreement/AGPL-3 installer/linux/createuser.dotforward
628 %{_bindir}/%{name}-autorespond
629 %{_bindir}/%{name}-dagent
630 %{_datadir}/%{name}-dagent/python/*
631 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/dagent.cfg
632 %config(noreplace) %{_sysconfdir}/%{name}/autorespond
633 %{_sysconfdir}/rc.d/init.d/%{name}-dagent
634 %{_mandir}/man1/%{name}-dagent.1*
635 %{_mandir}/man5/%{name}-dagent.cfg.5*
636
637 %files -n %{develname}
638 %doc installer/licenseagreement/AGPL-3
639 %{_libdir}/libarchiver-core.so
640 %{_libdir}/libarchiver.so
641 %{_libdir}/libicalmapi.so
642 %{_libdir}/libinetmapi.so
643 %{_libdir}/libmapi.so
644 %{_libdir}/libmapicalendar.so
645 %{_libdir}/libmapitimezone.so
646 %{_libdir}/libmapicalendar.so.*
647 %{_libdir}/libmapitimezone.so.*
648 %{_libdir}/libcommon_mapi.a
649 %{_libdir}/libcommon_ssl.a
650 %{_libdir}/libcommon_util.a
651 %{_libdir}/libcommon_service.a
652 %{_libdir}/libfreebusy.a
653 %{_libdir}/libzarafasync.so
654 %{_includedir}/icalmapi/
655 %{_includedir}/inetmapi/
656 %{_includedir}/mapi4linux/
657 %{_includedir}/libfreebusy/
658 %{_includedir}/libzarafasync
659 %{_includedir}/%{name}/
660 %{_includedir}/libmapicalendar/
661 %{_includedir}/mapitimezone/
662 %{_libdir}/pkgconfig/%{name}.pc
663 %{_mandir}/man1/zarafa-archiver.1.*
664 %{_mandir}/man5/zarafa-archiver.cfg.5.*
665
666 %files gateway
667 %doc installer/licenseagreement/AGPL-3
668 %{_bindir}/%{name}-gateway
669 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/gateway.cfg
670 %{_sysconfdir}/rc.d/init.d/%{name}-gateway
671 %{_mandir}/man1/%{name}-gateway.1*
672 %{_mandir}/man5/%{name}-gateway.cfg.5*
673
674 %files ical
675 %doc installer/licenseagreement/AGPL-3
676 %{_bindir}/%{name}-ical
677 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/ical.cfg
678 %{_sysconfdir}/rc.d/init.d/%{name}-ical
679 %{_mandir}/man1/%{name}-ical.1*
680 %{_mandir}/man5/%{name}-ical.cfg.5*
681
682 %files monitor
683 %doc installer/licenseagreement/AGPL-3
684 %{_bindir}/%{name}-monitor
685 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/monitor.cfg
686 %dir %{_sysconfdir}/%{name}/quotamail/
687 %config(noreplace) %{_sysconfdir}/%{name}/quotamail/companywarning.mail
688 %config(noreplace) %{_sysconfdir}/%{name}/quotamail/userhard.mail
689 %config(noreplace) %{_sysconfdir}/%{name}/quotamail/usersoft.mail
690 %config(noreplace) %{_sysconfdir}/%{name}/quotamail/userwarning.mail
691 %{_sysconfdir}/rc.d/init.d/%{name}-monitor
692 %{_mandir}/man1/%{name}-monitor.1*
693 %{_mandir}/man5/%{name}-monitor.cfg.5*
694
695 %files server -f %{name}.lang
696 %doc installer/licenseagreement/AGPL-3
697 %{_bindir}/%{name}-server
698 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/server.cfg
699 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/unix.cfg
700 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/zarafa
701 %{_sysconfdir}/rc.d/init.d/%{name}-server
702 %dir %{_sysconfdir}/%{name}/userscripts/
703 %{_sysconfdir}/%{name}/userscripts/createuser
704 %{_sysconfdir}/%{name}/userscripts/creategroup
705 %{_sysconfdir}/%{name}/userscripts/createcompany
706 %{_sysconfdir}/%{name}/userscripts/deleteuser
707 %{_sysconfdir}/%{name}/userscripts/deletegroup
708 %{_sysconfdir}/%{name}/userscripts/deletecompany
709 %{_sysconfdir}/%{name}/userscripts/*common.sh
710 %dir %{_sysconfdir}/%{name}/userscripts/createuser.d/
711 %dir %{_sysconfdir}/%{name}/userscripts/creategroup.d/
712 %dir %{_sysconfdir}/%{name}/userscripts/createcompany.d/
713 %dir %{_sysconfdir}/%{name}/userscripts/deleteuser.d/
714 %dir %{_sysconfdir}/%{name}/userscripts/deletegroup.d/
715 %dir %{_sysconfdir}/%{name}/userscripts/deletecompany.d/
716 %config(noreplace) %{_sysconfdir}/%{name}/userscripts/createcompany.d/00createpublic
717 %config(noreplace) %{_sysconfdir}/%{name}/userscripts/createuser.d/00createstore
718 %{_datadir}/%{name}/userscripts/
719 %{_libdir}/%{name}/dbplugin.so
720 %{_libdir}/%{name}/unixplugin.so
721 %{_mandir}/man1/%{name}-server.1*
722 %{_mandir}/man5/%{name}-server.cfg.5*
723 %{_mandir}/man5/%{name}-unix.cfg.5*
724 %if %{with_ldap}
725 %doc installer/ldap/%{name}.schema
726 %{_datadir}/%{name}/%{name}.schema
727 %{_datadir}/%{name}/db-upgrade-objectsid-to-objectguid.pl
728 %{_datadir}/%{name}/ldap-switch-sendas.pl
729 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/ldap.active-directory.cfg
730 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/ldap.openldap.cfg
731 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/ldap.propmap.cfg
732 %{_libdir}/%{name}/ldapplugin.so
733 %{_mandir}/man5/%{name}-ldap.cfg.5*
734 %endif
735 %{_datadir}/%{name}/audit-parse.pl
736
737 %files spooler
738 %doc installer/licenseagreement/AGPL-3
739 %{_bindir}/%{name}-spooler
740 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/spooler.cfg
741 %{_sysconfdir}/rc.d/init.d/%{name}-spooler
742 %{_datadir}/%name-spooler/python/*
743 %{_mandir}/man1/%{name}-spooler.1*
744 %{_mandir}/man5/%{name}-spooler.cfg.5*
745
746 %files utils
747 %doc installer/licenseagreement/AGPL-3
748 %{_bindir}/%{name}-mailbox-permissions
749 %{_bindir}/%{name}-admin
750 %{_bindir}/%{name}-mr-accept
751 %{_bindir}/%{name}-set-oof
752 %{_bindir}/%{name}-fsck
753 %{_bindir}/%{name}-passwd
754 %if %{with_clucene}
755 %{_bindir}/%{name}-search
756 %endif
757 %{_bindir}/%{name}-stats
758 %{_datadir}/%{name}/db-calc-storesize
759 %{_datadir}/%{name}/db-convert-attachments-to-files
760 %{_datadir}/%{name}/ssl-certificates.sh
761 %{_mandir}/man1/%{name}-admin.1*
762 %{_mandir}/man1/%{name}-fsck.1*
763 %{_mandir}/man1/%{name}-passwd.1*
764 %{_mandir}/man1/%{name}-stats.1*
765
766 %files -n %{libname}
767 %doc installer/licenseagreement/AGPL-3
768 %{_libdir}/libarchiver.so.*
769 %{_libdir}/libarchiver-core.so.*
770 %{_libdir}/libicalmapi.so.*
771 %{_libdir}/libinetmapi.so.*
772 %{_libdir}/libmapi.so.*
773
774 %if %{with perl}
775 %files -n perl-MAPI
776 %dir %{perl_vendorarch}/auto/MAPICore/
777 %{perl_vendorarch}/auto/MAPICore/MAPICore.so
778 %endif
779
780 %files -n php-mapi
781 %doc installer/licenseagreement/AGPL-3
782 %config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
783 %{_datadir}/php/mapi/
784 %{_libdir}/php/extensions/mapi.so
785
786 %if %{with_clucene}
787 %files indexer
788 %doc installer/licenseagreement/AGPL-3
789 #%{_bindir}/%{name}-indexer
790 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/search.cfg
791 #%{_sysconfdir}/rc.d/init.d/%{name}-indexer
792 %dir %{_sysconfdir}/%{name}/searchscripts/
793 %config(noreplace) %{_sysconfdir}/%{name}/searchscripts/attachments_parser.db
794 %{_sysconfdir}/%{name}/searchscripts/attachments_parser
795 %{_sysconfdir}/%{name}/searchscripts/xmltotext.xslt
796 %{_sysconfdir}/%{name}/searchscripts/zmktemp
797 #########%{_mandir}/man1/%{name}-indexer.1.*
798 #######%{_mandir}/man5/%{name}-indexer.cfg.5*
799 %endif
800
801 %files webaccess
802 %doc installer/licenseagreement/AGPL-3
803 %config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}-webaccess.conf
804 %dir %{_sysconfdir}/%{name}/
805 %dir %{_sysconfdir}/%{name}/webaccess/
806 %config(noreplace) %{_sysconfdir}/%{name}/webaccess/config.php
807 %{_datadir}/%{name}-webaccess/
808 %dir %{_localstatedir}/lib/%{name}-webaccess/
809 %attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name}-webaccess/tmp/
810
811 %files -n python-MAPI
812 %doc installer/licenseagreement/AGPL-3
813 %{py_platsitedir}/*MAPI*
814 %{py_platsitedir}/icalmapi*
815 %{py_platsitedir}/inetmapi*
816 %{py_platsitedir}/_icalmapi*
817 %{py_platsitedir}/_inetmapi*
818 %{py_platsitedir}/_licenseclient*
819 %{py_platsitedir}/licenseclient.py*
820 %{py_platsitedir}/_mapicalendar.so
821 %{py_platsitedir}/_mapitimezone.so
822 %{py_platsitedir}/mapicalendar.py*
823 %{py_platsitedir}/mapitimezone.py*
824
825
826
827 %files archiver
828 %doc installer/licenseagreement/AGPL-3
829 %config(noreplace) %attr(0640,%{name},%{name}) %{_sysconfdir}/%{name}/archiver.cfg
830 %{_bindir}/%{name}-archiver

  ViewVC Help
Powered by ViewVC 1.1.30