]> git.pld-linux.org Git - packages/eventum.git/blob - eventum.spec
- add draftbug patch
[packages/eventum.git] / eventum.spec
1 # TODO
2 # - discard bundled packages (from INSTALL):
3 #  - JpGraph 1.5.3 (last GPL version)
4 #  - dTree 2.0.5 (http://www.destroydrop.com/javascript/tree/)
5 #  - dynCalendar.js (http://www.phpguru.org/dyncalendar.html)
6 #  - overLIB 3.5.1 (http://www.bosrup.com/web/overlib/)
7 #  - A few other small javascript libraries
8 # - 64bit platforms beware? http://bugs.php.net/bug.php?id=30215 (it's actually Smarty related problem)
9 #
10 # Conditional build:
11 %bcond_with     qmail   # build the router-qmail subpackage
12 %bcond_with     order_patch     # with custom issue order patch
13
14 %define _snap   20060830
15 #define _rc             RC3
16 %define _rel    2.89
17
18 %include        /usr/lib/rpm/macros.php
19 Summary:        Eventum Issue / Bug tracking system
20 Summary(pl):    Eventum - system ¶ledzenia spraw/b³êdów
21 Name:           eventum
22 Version:        1.7.1
23 Release:        %{?_rc:%{_rc}.}%{_rel}%{?_snap:.%{_snap}}
24 License:        GPL
25 Group:          Applications/WWW
26 Source0:        http://downloads.mysql.com/snapshots/eventum/%{name}-nightly-%{_snap}.tar.gz
27 # Source0-md5:  4c92f74c4e8d6ef67e7ccaed879d6f2b
28 Source1:        %{name}-apache.conf
29 Source2:        %{name}-mail-queue.cron
30 Source3:        %{name}-mail-download.cron
31 Source4:        %{name}-reminder.cron
32 Source5:        %{name}-monitor.cron
33 Source6:        %{name}-cvs.php
34 Source7:        %{name}-irc.php
35 Source8:        %{name}-irc.init
36 Source9:        %{name}-irc.sysconfig
37 Source10:       %{name}-config.php
38 Source11:       %{name}-router-qmail.sh
39 Source12:       %{name}-config-setup.php
40 Source13:       %{name}-upgrade.sh
41 Source14:       %{name}-router-postfix.sh
42 Source15:       %{name}.logrotate
43 Source16:       %{name}-lighttpd.conf
44 Source17:       http://eventum.mysql.org/patches/process_svn_commits_new.phps
45 # Source17-md5: 48a1bc003907101e4052e5232047e6b2
46 Patch0:         %{name}-lf.patch
47 Patch1:         %{name}-perms.patch
48 Patch2:         %{name}-cli-wr-separated.patch
49 Patch3:         %{name}-scm-parse-response.patch
50 Patch4:         %{name}-double-decode.patch
51 Patch5:         %{name}-route-mem.patch
52 Patch6:         %{name}-scm-pluscharisbad.patch
53 Patch7:         %{name}-scm-updates.patch
54 Patch8:         %{name}-close-signature.patch
55 Patch9:         %{name}-list-sorting.patch
56 Patch10:        %{name}-workflow-handlenewnote-note_id.patch
57 Patch11:        %{name}-order4b.patch
58 Patch12:        %{name}-cli-errorcheck.patch
59 Patch13:        %{name}-combined.patch
60 Patch14:        %{name}-xml-inline.patch
61 Patch15:        %{name}-timetracking-advanced-logic.patch
62 Patch16:        %{name}-timedisplay.patch
63 Patch17:        %{name}-email-notify-display.patch
64 Patch18:        %{name}-compact-issue-display.patch
65 Patch19:        %{name}-fixed-nav.patch
66 Patch20:        %{name}-scm-ssl.patch
67 Patch21:        %{name}-scm-quick-out.patch
68 Patch22:        %{name}-mem-limits.patch
69 Patch23:        %{name}-backtraces.patch
70 Patch24:        %{name}-errorhandler.patch
71 Patch25:        http://glen.alkohol.ee/pld/eventum/upgrade-2.0.patch
72 Patch26:        %{name}-tpl-fixes.patch
73 Patch27:        %{name}-xss.patch
74 Patch28:        %{name}-tpl-fixes2.patch
75 Patch29:        %{name}-svn.patch
76 Patch30:        %{name}-tpl-fixes3.patch
77 Patch31:        %{name}-sid.patch
78 Patch32:        %{name}-charset.patch
79 Patch33:        %{name}-view_headers-tab.patch
80 Patch34:        http://glen.alkohol.ee/pld/eventum/%{name}-tpl-fixes4.patch
81 Patch35:        http://glen.alkohol.ee/pld/eventum/%{name}-tpl-fixes5.patch
82 Patch36:        %{name}-draftbug.patch
83 # packaging patches that probably never go upstream
84 Patch100:       %{name}-paths.patch
85 Patch101:       %{name}-cvs-config.patch
86 Patch102:       %{name}-irc-mem.patch
87 Patch103:       %{name}-irc-config.patch
88 Patch104:       %{name}-PEAR.patch
89 Patch105:       %{name}-httpclient-clientside.patch
90 Patch106:       %{name}-bot-reconnect.patch
91 Patch107:       %{name}-private-key.patch
92 URL:            http://dev.mysql.com/downloads/other/eventum/
93 BuildRequires:  rpm-php-pearprov >= 4.0.2-98
94 BuildRequires:  rpmbuild(macros) >= 1.268
95 BuildRequires:  sed >= 4.0
96 Requires(triggerpostun):        /usr/bin/php
97 Requires(triggerpostun):        sed >= 4.0
98 Requires:       %{name}-base = %{version}-%{release}
99 Requires:       Smarty >= 2.6.10-4
100 Requires:       apache(mod_dir)
101 Requires:       php >= 3:4.2.0
102 Requires:       php-gd
103 Requires:       php-imap
104 Requires:       php-mysql
105 Requires:       php-pcre
106 Requires:       php-pear-Benchmark
107 Requires:       php-pear-DB
108 Requires:       php-pear-Date
109 Requires:       php-pear-HTTP_Request
110 Requires:       php-pear-Mail
111 Requires:       php-pear-Mail_Mime
112 Requires:       php-pear-Math_Stats
113 Requires:       php-pear-Net_DIME
114 Requires:       php-pear-Net_SMTP
115 Requires:       php-pear-Net_Socket
116 Requires:       php-pear-Net_URL
117 Requires:       php-pear-Net_UserAgent_Detect
118 Requires:       php-pear-PEAR-core
119 Requires:       php-pear-Text_Diff
120 Requires:       php-pear-XML_RPC
121 Requires:       php-session
122 Requires:       smarty-gettext
123 Requires:       webapps
124 Requires:       webserver(access)
125 Requires:       webserver(alias)
126 BuildArch:      noarch
127 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
128
129 %define         _noautoreq      'pear(/etc/webapps/.*)' 'pear(jpgraph_dir.php)' 'pear(.*Smarty.class.php)'
130
131 %define         _libdir         %{_prefix}/lib/%{name}
132 %define         _appdir         %{_datadir}/%{name}
133 %define         _smartyplugindir        %{_appdir}/include/smarty
134 %define         _smartydir      /usr/share/php/Smarty
135 %define         _webapps        /etc/webapps
136 %define         _webapp         %{name}
137 %define         _webappdir      %{_webapps}/%{_webapp}
138 %define         _sysconfdir     /etc/%{name}
139
140 %description
141 Eventum is a user-friendly and flexible issue tracking system that can
142 be used by a support department to track incoming technical support
143 requests, or by a software development team to quickly organize tasks
144 and bugs. Eventum is used by the MySQL AB Technical Support team, and
145 has allowed us to dramatically improve our response times.
146
147 %description -l pl
148 Eventum to przyjazny dla u¿ytkownika system ¶ledzenia spraw, który
149 mo¿e byæ u¿ywany przez dzia³ obs³ugi do ¶ledzenia przychodz±cych ¿±dañ
150 obs³ugi technicznej albo przez zespó³ tworz±cy oprogramowanie do
151 szybkiej organizacji zadañ i b³êdów. Eventum jest u¿ywany przez zespó³
152 Technical Support MySQL AB i umo¿liwi³ im znacz±co poprawiæ czasy
153 reakcji.
154
155 %package base
156 Summary:        Eventum base package
157 Summary(pl):    Podstawowy pakiet Eventum
158 Group:          Applications/WWW
159 Requires(postun):       /usr/sbin/groupdel
160 Requires(postun):       /usr/sbin/userdel
161 Requires(pre):  /bin/id
162 Requires(pre):  /usr/bin/getgid
163 Requires(pre):  /usr/sbin/groupadd
164 Requires(pre):  /usr/sbin/useradd
165 Provides:       group(eventum)
166 Provides:       user(eventum)
167
168 %description base
169 This package contains base directory structure for Eventum.
170
171 %description base -l pl
172 Ten pakiet zawiera podstawow± strukturê katalogów dla Eventum.
173
174 %package setup
175 Summary:        Eventum setup package
176 Summary(pl):    Pakiet do wstêpnej konfiguracji Eventum
177 Group:          Applications/WWW
178 Requires:       %{name} = %{version}-%{release}
179
180 %description setup
181 Install this package to configure initial Eventum installation. You
182 should uninstall this package when you're done, as it considered
183 insecure to keep the setup files in place.
184
185 %description setup -l pl
186 Ten pakiet nale¿y zainstalowaæ w celu wstêpnej konfiguracji Eventum po
187 pierwszej instalacji. Potem nale¿y go odinstalowaæ, jako ¿e
188 pozostawienie plików instalacyjnych mog³oby byæ niebezpieczne.
189
190 %package mail-queue
191 Summary:        Eventum mail queue process
192 Summary(pl):    Przetwarzanie kolejki poczty Eventum
193 Group:          Applications/WWW
194 Requires:       %{name} = %{version}-%{release}
195 Requires:       crondaemon
196
197 %description mail-queue
198 Beginning with the first release of Eventum, emails are not directly
199 sent out from the various scripts, but rather added to a mail queue
200 table that is processed by a cron job. If an email cannot be sent, it
201 will be marked as such in the mail queue log, and the cron job script
202 will re-try to send it again the next time it runs.
203
204 This package contains the cron job.
205
206 %description mail-queue -l pl
207 Od pierwszego wydania Eventum poczta nie jest wysy³ana bezpo¶rednio z
208 ró¿nych skryptów, lecz dodawana do kolejki przetwarzanej z crona.
209 Je¶li poczta nie mo¿e byæ wys³ana, bêdzie odpowiednio oznaczona w logu
210 kolejki poczty, a skrypt z crona bêdzie próbowa³ wys³aæ j± ponownie
211 nastêpnym razem.
212
213 Ten pakiet zawiera zadanie dla crona.
214
215 %package mail-download
216 Summary:        Eventum email download
217 Summary(pl):    ¦ci±ganie poczty Eventum
218 Group:          Applications/WWW
219 Requires:       %{name} = %{version}-%{release}
220 Requires:       crondaemon
221
222 %description mail-download
223 In order for Eventum's email integration feature to work, you need to
224 setup a cron job to run the script every so often.
225
226 This package contains the cron job.
227
228 %description mail-download -l pl
229 Aby integracja poczty elektronicznej w Eventum dzia³a³a, trzeba
230 ustawiæ zadanie crona, aby uruchamia³ odpowiedni skrypt wystarczaj±co
231 czêsto.
232
233 Ten pakiet zawiera zadanie dla crona.
234
235 %package reminder
236 Summary:        Eventum Reminder System
237 Summary(pl):    System przypominania dla Eventum
238 Group:          Applications/WWW
239 Requires:       %{name} = %{version}-%{release}
240 Requires:       crondaemon
241
242 %description reminder
243 The reminder system was designed with the objective as serving as a
244 safe net for issues that need attention. Depending on what
245 configuration you create, you may have several reminders (or alerts)
246 be sent out whenever an issue needs attention, for whatever parameter
247 you may deem necessary.
248
249 This package contains the cron job.
250
251 %description reminder -l pl
252 System przypominania zosta³ zaprojektowany tak, aby s³u¿y³ jako
253 bezpieczna sieæ dla spraw wymagaj±cych uwagi. W zale¿no¶ci od
254 konfiguracji mo¿na ustawiæ ró¿ne przypominajki (lub alarmy) wysy³ane
255 przy ka¿dej sprawie wymagaj±cej uwagi lub przy parametrze, który mo¿na
256 uwa¿aæ za potrzebny.
257
258 Ten pakiet zawiera zadanie dla crona.
259
260 %package monitor
261 Summary:        Eventum Heartbeat Monitor
262 Summary(pl):    Monitor ¿ycia dla Eventum
263 Group:          Applications/WWW
264 Requires:       %{name} = %{version}-%{release}
265 Requires:       crondaemon
266 Requires:       php-posix
267
268 %description monitor
269 The heartbeat monitor is a feature designed for the administrator that
270 wants to be alerted whenever a common problem in Eventum is detected,
271 like the database server not being available anymore, or maybe when
272 the recommended permissions for certain configuration files are
273 changed.
274
275 Please note that before running the heartbeat monitor, you may need to
276 customize some of the checks to be appropriate for your own system,
277 particularly the permission and file checks on
278 Monitor::checkConfiguration().
279
280 This package contains the cron job.
281
282 %description monitor -l pl
283 Monitor ¿ycia to funkcjonalno¶æ zaprojektowana dla administratora
284 chc±cego byæ alarmowanym przy ka¿dym wykryciu popularnego problemu z
285 Eventum, jak nie dzia³anie serwera bazy danych albo zmiana uprawnieñ
286 do plików konfiguracyjnych.
287
288 Nale¿y zauwa¿yæ, ¿e przed uruchomieniem tego monitora mo¿e byæ
289 konieczne dostosowanie niektórych testów do systemu, w szczególno¶ci
290 testów uprawnieñ i plików w Monitor::checkConfiguration().
291
292 Ten pakiet zawiera zadanie dla crona.
293
294 %package route-drafts
295 Summary:        Eventum Draft Routing
296 Summary(pl):    Przekazywanie szkiców dla Eventum
297 Group:          Applications/WWW
298 Requires:       %{name} = %{version}-%{release}
299 Requires:       eventum(router)
300
301 %description route-drafts
302 The draft routing feature is used to automatically associate a thread
303 of drafts into an Eventum issue. By setting up qmail (or even Postfix)
304 to deliver emails sent to a specific address (usually
305 draft-<number>@<domain>) to the above script, users are able to send
306 drafts written in their mail client to be stored in Eventum. These
307 drafts will NOT broadcasted to the notification list.
308
309 %description route-drafts -l pl
310 Przekazywanie szkiców s³u¿y do automatycznego wi±zania w±tku szkiców z
311 problemem w Eventum. Ustawiaj±c qmaila (czy nawet Postfiksa), aby
312 dostarcza³ pocztê wys³an± na podany adres (zwykle
313 draft-<liczba>@<domena>) do tego skryptu umo¿liwia siê u¿ytkownikom
314 wysy³anie szkiców napisanych w ich kliencie pocztowym do zapisania w
315 Eventum. Szkice te NIE bêd± wysy³ane na listê powiadomieñ.
316
317 %package route-emails
318 Summary:        Eventum Email Routing
319 Summary(pl):    Przekazywanie poczty dla Eventum
320 Group:          Applications/WWW
321 Requires:       %{name} = %{version}-%{release}
322 Requires:       eventum(router)
323
324 %description route-emails
325 The email routing feature is used to automatically associate a thread
326 of emails into an Eventum issue. By setting up qmail (or even postfix)
327 to deliver emails sent to a specific address (usually
328 issue-<number>@<domain>) to the above script, users are able to use
329 their email clients to reply to emails coming from Eventum, and those
330 replies will be automatically associated with the issue and
331 broadcasted to the entire notification list.
332
333 %description route-emails -l pl
334 Funkcjonalno¶æ przekazywania poczty s³u¿y do automatycznego wi±zania
335 w±tku listów ze spraw± w Eventum. Po ustawieniu qmaila (czy nawet
336 postfiksa), aby dostarcza³ listy wysy³ane na pewien adres (zwykle
337 issue-<numer>@<domena>) na powy¿szy skrypt, u¿ytkownicy bêd± mogli
338 u¿ywaæ klientów pocztowych do odpowiadania na listy przychodz±ce z
339 Eventum, a odpowiedzi te bêd± automatycznie wi±zane ze spraw± i
340 rozprowadzane do ca³ej listy og³oszeniowej.
341
342 %package route-notes
343 Summary:        Eventum Note Routing
344 Summary(pl):    Przekazywanie notatek dla Eventum
345 Group:          Applications/WWW
346 Requires:       %{name} = %{version}-%{release}
347 Requires:       eventum(router)
348
349 %description route-notes
350 The note routing feature is used to automatically associate a thread
351 of notes into an Eventum issue. By setting up qmail (or even postfix)
352 to deliver emails sent to a specific address (usually
353 note-<number>@<domain>) to the above script, users are able to use
354 their email clients to reply to internal notes coming from Eventum,
355 and those replies will be automatically associated with the issue and
356 broadcasted to the notification list staff members.
357
358 %description route-notes -l pl
359 Funkcjonalno¶æ przekazywania notatek s³u¿y do automatycznego wi±zania
360 w±tku notatek ze spraw± w Eventum. Po ustawieniu qmaila (czy nawet
361 postfiksa), aby dostarcza³ listy wysy³ane na pewien adres (zwykle
362 note-<numer>@<domena>) na powy¿szy skrypt, u¿ytkownicy bêd± mogli
363 u¿ywaæ klientów pocztowych do odpowiadania na wewnêtrzne notatki
364 pochodz±ce od Eventu, a odpowiedzi te bêd± automatycznie wi±zane ze
365 spraw± i rozprowadzane do cz³onków personelu listy og³oszeniowej.
366
367 %package router-qmail
368 Summary:        Eventum Mail Routing - qmail
369 Summary(pl):    Przekazywanie poczty Eventum - qmail
370 Group:          Applications/Mail
371 # loose dep is intentional. qmail subpackage isn't built on PLD
372 # builders and there really nothing changes.
373 Requires:       %{name} >= %{version}-%{release}
374 Requires:       qmail >= 1.03
375 Provides:       eventum(router)
376 Obsoletes:      eventum(router)
377
378 %description router-qmail
379 This package provides way of routing notes and emails back to Eventum
380 via qmail.
381
382 %description router-qmail -l pl
383 Ten pakiet udostêpnia metodê przekazywania notatek i listów do Eventum
384 przez qmaila.
385
386 %package router-postfix
387 Summary:        Eventum Mail Routing - Postfix
388 Summary(pl):    Przekazywanie poczty Eventum - Postfix
389 Group:          Applications/Mail
390 Requires:       %{name} = %{version}-%{release}
391 Requires:       postfix
392 Provides:       eventum(router)
393 Obsoletes:      eventum(router)
394
395 %description router-postfix
396 This package provides way of routing notes and emails back to Eventum
397 via Postfix.
398
399 The Postfix configuration instructions you can find from
400 <http://eventum.mysql.org/wiki/index.php/Setting_up_email_routing_with_postfix>.
401
402 %description router-postfix -l pl
403 Ten pakiet udostêpnia metodê przekazywania notatek i listów do Eventum
404 przez Postfiksa.
405
406 Opis konfiguracji Postfiksa mo¿na znale¼æ pod adresem
407 <http://eventum.mysql.org/wiki/index.php/Setting_up_email_routing_with_postfix>.
408
409 %package irc
410 Summary:        Eventum IRC Notification Bot
411 Summary(pl):    IRC-owy bot powiadamiaj±cy dla Eventum
412 Group:          Applications/WWW
413 Requires(post,preun):   /sbin/chkconfig
414 Requires(triggerpostun):        sed >= 4.0
415 Requires:       %{name} = %{version}-%{release}
416 Requires:       php-pear-Net_SmartIRC
417 Requires:       php-sockets
418 Requires:       rc-scripts >= 0.4.0.18
419
420 %description irc
421 The IRC notification bot is a nice feature for remote teams that want
422 to handle issues and want to have a quick and easy way to get simple
423 notifications. Right now the bot notifies of the following actions:
424 - New Issues
425 - Blocked emails
426 - Issues that got their assignment list changed
427
428 NOTE: You will need to manually edit the bot.php script to set your
429 appropriate preferences, like IRC server and channel that the bot
430 should join.
431
432 %description irc -l pl
433 IRC-owy bot powiadamiaj±cy to mi³a funkcjonalno¶æ dla zdalnych
434 zespo³ów chc±cych obs³ugiwaæ sprawy i mieæ szybki i ³atwy sposób na
435 uzyskiwanie prostych powiadomieñ. Aktualnie bot powiadamia o
436 nastêpuj±cych zdarzeniach:
437 - nowych sprawach
438 - zablokowanych listach
439 - sprawach, dla których zmieni³a siê lista powi±zañ
440
441 UWAGA: w celu wprowadzenia w³asnych ustawieñ, takich jak serwer IRC i
442 kana³ u¿ywany przez bota, trzeba rêcznie zmodyfikowaæ skrypt bot.php .
443
444 %package cli
445 Summary:        Eventum command-line interface
446 Summary(pl):    Interfejs linii poleceñ dla Eventum
447 Group:          Applications/WWW
448 Requires:       %{name}-base = %{version}-%{release}
449 Requires:       php-cli
450 Requires:       php-common >= 3:4.1.0
451 Requires:       php-pear-XML_RPC
452
453 %description cli
454 The Eventum command-line interface allows you to access most of the
455 features of the web interface straight from your command shell.
456
457 %description cli -l pl
458 Interfejs linii poleceñ Eventum pozwala na dostêp do wiêkszo¶ci
459 funkcji interfejsu WWW prosto z linii poleceñ pow³oki.
460
461 %package scm
462 Summary:        Eventum SCM integration
463 Summary(pl):    Integracja SCM dla Eventum
464 Group:          Applications/WWW
465 Requires:       %{name}-base = %{version}-%{release}
466 Requires:       php-cli
467 Requires:       php-common >= 3:4.1.0
468 Requires:       php-pcre
469
470 %description scm
471 This feature allows your software development teams to integrate your
472 Source Control Management system with your Issue Tracking System.
473
474 The integration is implemented in such a way that it will be forward
475 compatible with pretty much any SCM system, such as CVS.
476
477 For installation see
478 </eventum/help.php?topic=scm_integration_installation>.
479
480 %description scm -l pl
481 Ten pakiet pozwala zespo³om programistów na integracjê systemu
482 zarz±dzania ¼ród³ami (SCM - Source Control Management) z systemem
483 ¶ledzenia spraw.
484
485 Integracja jest zaimplementowana tak, aby byæ kompatybilna w przód z
486 prawie ka¿dym systemem SCM, jak np. CVS.
487
488 Szczegó³y na temat instalacji mo¿na przeczytaæ pod
489 </eventum/help.php?topic=scm_integration_installation>.
490
491 %prep
492 %setup -q %{?_snap:-n %{name}-%{_snap}}
493 cp %{SOURCE17} misc/scm/process_svn_commits.php
494 # undos the source
495 find . -type f -print0 | xargs -0 sed -i -e 's,\r$,,'
496
497 %patch25 -p1
498
499 rm -f setup.conf.php # not to be installed by *.php glob
500 rm -rf misc/upgrade/*v1.[123]* # too old to support in PLD Linux
501 rm -f misc/upgrade/flush_compiled_templates.php
502 rm -rf misc/upgrade/*/upgrade_config.php # not needed in PLD Linux
503 rm -rf misc/upgrade/*/index.html # not needed in PLD Linux
504
505 # sample, not used in eventum
506 rm -f rpc/xmlrpc_client.php
507
508 # bug fixes.
509 %patch0 -p1
510 %patch1 -p1
511 %patch2 -p1
512 %patch3 -p1
513 %patch4 -p1
514 %patch5 -p1
515 %patch6 -p1
516 %patch7 -p1
517 %patch8 -p1
518 %patch9 -p1
519 %patch10 -p1
520 %{?with_order_patch:%patch11 -p1}
521 %patch12 -p1
522 %patch13 -p1
523 %patch14 -p1
524 %patch15 -p1
525 %patch16 -p1
526
527 %patch18 -p1
528 #%patch19 -p1
529 %patch20 -p1
530 %patch21 -p1
531 %patch22 -p1
532 %patch23 -p1
533 %patch24 -p1
534 %patch26 -p1
535 %patch27 -p1
536 %patch28 -p1
537 %patch29 -p1
538 %patch30 -p1
539 %patch31 -p1
540 %patch32 -p1
541 %patch33 -p1
542 %patch34 -p1
543 %patch35 -p1
544 %patch17 -p1
545 %patch36 -p1
546
547 # packaging
548 %patch100 -p1
549 %patch101 -p1
550 %patch102 -p1
551 %patch103 -p1
552 %patch104 -p1
553 %patch105 -p1
554 %patch106 -p1
555 %patch107 -p1
556
557 cat <<'EOF'> mysql-permissions.sql
558 # use this schema if you want to grant permissions manually instead of using setup
559 # this schema is extracted from setup/index.php.
560 GRANT SELECT, UPDATE, DELETE, INSERT, ALTER, DROP, CREATE, INDEX ON eventum.* TO 'eventum'@'localhost' IDENTIFIED BY 'password';
561 EOF
562
563 mv misc/localization/de{_DE,}
564 mv misc/localization/es{_ES,}
565 mv misc/localization/fi{_FI,}
566 mv misc/localization/fr{_FR,}
567 mv misc/localization/it{_IT,}
568 mv misc/localization/nl{_NL,}
569 mv misc/localization/ru{_RU,}
570
571 # oops, the file got truncated - quick fix
572 cp misc/localization/eventum.po misc/localization/de/LC_MESSAGES/eventum.po
573 cp misc/localization/eventum.po misc/localization/es/LC_MESSAGES/eventum.po
574 cp misc/localization/eventum.po misc/localization/fi/LC_MESSAGES/eventum.po
575 cp misc/localization/eventum.po misc/localization/fr/LC_MESSAGES/eventum.po
576 cp misc/localization/eventum.po misc/localization/it/LC_MESSAGES/eventum.po
577 cp misc/localization/eventum.po misc/localization/nl/LC_MESSAGES/eventum.po
578 cp misc/localization/eventum.po misc/localization/ru/LC_MESSAGES/eventum.po
579 cp misc/localization/eventum.po misc/localization/en_US/LC_MESSAGES/eventum.po
580
581 sed -e '1s,#!.*/bin/php -q,#!%{_bindir}/php,' misc/cli/eventum > %{name}-cli
582 sed -e '1i#!%{_bindir}/php' misc/scm/process_cvs_commits.php > process_cvs_commits
583 sed -e '1i#!%{_bindir}/php' misc/scm/process_svn_commits.php > process_svn_commits
584 sed -e '1i#!%{_bindir}/php' misc/irc/bot.php > %{name}-bot
585 mv misc/cli/eventumrc_example eventumrc
586 sed -i -e '1i#!%{_bindir}/php' misc/*.php
587 chmod +x misc/*.php
588 mv include/private_key.php private_key.php.in
589
590 # replace in remaining scripts config.inc.php to system one
591 grep -rl 'include_once(".*config.inc.php")' . | xargs sed -i -e '
592         s,include_once(".*config.inc.php"),include_once("%{_webappdir}/core.php"),
593 '
594
595 grep -rl 'APP_INC_PATH..*"private_key.php"' . | xargs sed -i -e '
596         s,include_once(APP_INC_PATH.*"private_key.php"),include_once("%{_webappdir}/private_key.php"),
597 '
598
599 # remove backups from patching as we use globs to package files to buildroot
600 find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
601
602 %build
603 cd misc/localization
604 for a in */LC_MESSAGES; do
605         msgfmt -o $a/eventum.mo $a/eventum.po
606 done
607
608 %install
609 rm -rf $RPM_BUILD_ROOT
610 install -d \
611         $RPM_BUILD_ROOT{%{_webappdir},%{_sysconfdir},%{_bindir},%{_sbindir},%{_libdir}} \
612         $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,sysconfig} \
613         $RPM_BUILD_ROOT/var/{run,cache,lib}/%{name} \
614         $RPM_BUILD_ROOT/var/log/{archiv/,}%{name} \
615         $RPM_BUILD_ROOT/var/lib/%{name}/routed_{emails,drafts,notes} \
616         $RPM_BUILD_ROOT%{_appdir}/{include,htdocs/misc,upgrade} \
617
618 cp -a *.php css customer images js manage reports rpc setup $RPM_BUILD_ROOT%{_appdir}/htdocs
619 cp -a misc/*.html $RPM_BUILD_ROOT%{_appdir}/htdocs/misc
620 cp -a misc/*.php $RPM_BUILD_ROOT%{_appdir}
621 cp -a templates $RPM_BUILD_ROOT%{_appdir}
622 cp -a include/{customer,custom_field,jpgraph,workflow} $RPM_BUILD_ROOT%{_appdir}/include
623 cp -a include/*.php $RPM_BUILD_ROOT%{_appdir}/include
624 cp -a logs/* $RPM_BUILD_ROOT/var/log/%{name}
625 cp -a misc/upgrade $RPM_BUILD_ROOT%{_appdir}
626
627 cp -a favicon.ico $RPM_BUILD_ROOT%{_appdir}/htdocs/favicon.ico
628 install %{SOURCE12} $RPM_BUILD_ROOT%{_appdir}/htdocs/setup/config.inc.php
629 install %{SOURCE13} $RPM_BUILD_ROOT%{_appdir}/upgrade/upgrade.sh
630
631 # cli
632 install -d $RPM_BUILD_ROOT%{_appdir}/cli
633 cp -a misc/cli/include/class.{misc,command_line}.php $RPM_BUILD_ROOT%{_appdir}/cli
634 cp -a misc/cli/config.inc.php $RPM_BUILD_ROOT%{_sysconfdir}/cli.php
635 install %{name}-cli $RPM_BUILD_ROOT%{_bindir}/%{name}
636 install %{name}-bot $RPM_BUILD_ROOT%{_sbindir}
637
638 # scm
639 install process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/process_cvs_commits
640 install process_svn_commits $RPM_BUILD_ROOT%{_libdir}/process_svn_commits
641 ln -s process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/scm
642 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/scm.php
643
644 # private key
645 cp -a private_key.php.in $RPM_BUILD_ROOT%{_webappdir}/private_key.php
646 touch $RPM_BUILD_ROOT%{_webappdir}/htpasswd
647
648 install %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
649 install %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
650 install %{SOURCE16} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
651 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-queue
652 install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-download
653 install %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/%{name}-reminder
654 install %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/%{name}-monitor
655 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/irc.php
656 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/eventum-irc
657 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/eventum-irc
658
659 sed -e '
660 s,%%{APP_VERSION}%%,%{version}%{?_snap:-%{_snap}}%{?_rc:-%{_rc}},
661 s,%%{PHP_PEAR_DIR}%%,%{php_pear_dir},
662 s,%%{APP_PATH}%%,%{_appdir},
663 s,%%{SMARTY_DIR}%%,%{_smartydir},
664 s,%%{SYSCONFDIR}%%,%{_webappdir},
665 ' %{SOURCE10} > $RPM_BUILD_ROOT%{_webappdir}/core.php
666
667 # config
668 > $RPM_BUILD_ROOT%{_webappdir}/setup.php
669 mv $RPM_BUILD_ROOT{%{_appdir}/htdocs/config.inc,%{_webappdir}/config}.php
670
671 install -d $RPM_BUILD_ROOT%{_smartyplugindir}
672 # These plugins are not in Smarty package (Smarty-2.6.2-3)
673 cp -a \
674         include/Smarty/plugins/function.{calendar,get_{display_style,innerhtml,textarea_size}}.php \
675         include/Smarty/plugins/modifier.highlight_quoted.php \
676         $RPM_BUILD_ROOT%{_smartyplugindir}
677
678 # qmail router
679 %if %{with qmail}
680 d=$RPM_BUILD_ROOT/var/lib/%{name}
681 echo 'root' > $d/.qmail
682 echo 'root' > $d/.qmail-default
683 echo '| %{_libdir}/router-qmail drafts' > $d/.qmail-draft-default
684 echo '| %{_libdir}/router-qmail emails 1' > $d/.qmail-issue-default
685 echo '| %{_libdir}/router-qmail notes' > $d/.qmail-note-default
686 install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/router-qmail
687 %endif
688 # postfix router
689 install %{SOURCE14} $RPM_BUILD_ROOT%{_libdir}/router-postfix
690
691 install -D %{SOURCE15} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
692 # locale
693 cd misc/localization
694 for a in */LC_MESSAGES; do
695         install -d $RPM_BUILD_ROOT%{_datadir}/locale/$a
696         cp -a $a/%{name}.mo $RPM_BUILD_ROOT%{_datadir}/locale/$a
697 done
698 cd -
699
700 #%find_lang %{name}
701
702 %clean
703 rm -rf $RPM_BUILD_ROOT
704
705 %pre
706 %addusertogroup http %{name}
707
708 %post
709 # check if the package is configured.
710 if grep -q 'header("Location: setup/")' %{_webappdir}/config.php; then
711 if [ -f %{_appdir}/htdocs/setup/index.php ]; then
712 %banner %{name} -e <<EOF
713
714 You haven't yet configured Eventum!
715 Please open in browser <http://localhost/eventum/>
716 If you need access from elsewhere, you need to edit
717 %{_webappdir}/apache.conf and restart apache.
718
719 IMPORTANT: When You have configured Eventum, please uninstall the
720 setup package, so that %{name}-setup is able to secure your Eventum
721 installation.
722
723 EOF
724 #' vim syntax hack
725 else
726 %banner %{name} -e <<EOF
727
728 You haven't yet configured Eventum!
729
730 To setup eventum, please install %{name}-setup and open in browser
731 <http://localhost/eventum/>.
732 If you need access from elsewhere, you need to edit
733 %{_webappdir}/apache.conf and restart apache.
734
735 IMPORTANT: When You have configured Eventum, please uninstall the
736 setup package, so that %{name}-setup is able to secure your Eventum
737 installation.
738
739 EOF
740 #' vim syntax hack
741 fi
742
743 elif grep -q 'DEFAULTPRIVATEKEY' %{_webappdir}/private_key.php; then
744 %banner %{name} -e <<EOF
745
746 You have default private key installed!
747
748 Install %{name}-setup and open up http://yourserver/eventum/setup/
749 -- that will help you setup initial config.
750
751 when have configured Eventum, please uninstall the setup package,
752 so that %{name}-setup is able to secure your Eventum installation.
753
754 EOF
755         elif [ -d %{_appdir}/setup ]; then
756 %banner %{name} -e <<EOF
757
758 If you have have configured Eventum, please uninstall the setup package,
759 so that %{name}-setup is able to secure your Eventum installation.
760
761 EOF
762 fi
763
764 # nuke Smarty templates cache after upgrade
765 rm -f /var/cache/eventum/*.php
766
767 %preun
768 if [ "$1" = "0" ]; then
769         # nuke cache
770         rm -f /var/cache/eventum/*.php 2>/dev/null || :
771 fi
772
773 %pre base
774 %groupadd -P %{name}-base -g 146 %{name}
775 %useradd -P %{name}-base -u 146 -d /var/lib/%{name} -g %{name} -c "Eventum User" %{name}
776
777 %postun base
778 if [ "$1" = "0" ]; then
779         %userremove %{name}
780         %groupremove %{name}
781 fi
782
783 %post router-qmail
784 CF=/etc/qmail/control/virtualdomains
785 if ! grep -q ':%{name}\b' $CF 2>/dev/null; then
786         FQDN=$(awk -F'"' '/define/ && $2 ~ /APP_HOSTNAME/ {print $4}' %{_webappdir}/config.php 2>/dev/null)
787         [ "$FQDN" ] || FQDN=$(hostname -f 2>/dev/null || echo localhost)
788         umask 022
789         echo "#${FQDN}:%{name}" >> $CF
790
791 %banner %{name}-qmail -e <<EOF
792
793 Added "#${FQDN}:%{name}" to $CF,
794 Please verify that it is correct and restart qmail:
795 # service qmail reload
796
797 Consult qmail-send(8) for more information on virtualdomains.
798
799 EOF
800 fi
801
802 %preun router-qmail
803 if [ "$1" = "0" ]; then
804         sed -i -e '/:%{name}\b/d' /etc/qmail/control/virtualdomains
805 fi
806
807 %post setup
808 chmod 660 %{_webappdir}/{config,private_key}.php
809 chown root:eventum %{_webappdir}/{config,private_key}.php
810
811 %postun setup
812 if [ "$1" = "0" ]; then
813         chmod 640 %{_webappdir}/{config,private_key}.php
814         chown root:eventum %{_webappdir}/{config,private_key}.php
815 fi
816
817 %post irc
818 /sbin/chkconfig --add eventum-irc
819 %service eventum-irc restart "Eventum IRC Bot"
820
821 %preun irc
822 if [ "$1" = 0 ]; then
823         %service eventum-irc stop
824         /sbin/chkconfig --del eventum-irc
825 fi
826
827 %triggerin -- apache1
828 %webapp_register apache %{_webapp}
829
830 %triggerun -- apache1
831 %webapp_unregister apache %{_webapp}
832
833 %triggerin -- apache < 2.2.0, apache-base
834 %webapp_register httpd %{_webapp}
835
836 %triggerun -- apache < 2.2.0, apache-base
837 %webapp_unregister httpd %{_webapp}
838
839 %triggerin -- lighttpd
840 %webapp_register lighttpd %{_webapp}
841
842 %triggerun -- lighttpd
843 %webapp_unregister lighttpd %{_webapp}
844
845 # FIXME
846 # only one upgrade trigger is called if you're upgrading over two
847 # versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
848 # use common trigger (the highest version and rpmvercmp from poldek?)
849 %triggerpostun -- eventum < 1.5.1-0.257
850 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5_to_v1.5.1 <<EOF
851 database_changes.php Perform database changes
852 EOF
853
854 %triggerpostun -- eventum < 1.5.2-0.289
855 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.1_to_v1.5.2 <<EOF
856 database_changes.php Perform database changes
857 set_priority_ranks.php Fix the ranking of priority values
858 EOF
859
860 %triggerpostun -- eventum < 1.5.3-0.291
861 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.2_to_v1.5.3 <<EOF
862 database_changes.php Perform database changes
863 EOF
864
865 %triggerpostun -- eventum < 1.5.4-1.12
866 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.3_to_v1.5.4 <<EOF
867 database_changes.php Perform database changes
868 EOF
869
870 %triggerpostun -- eventum < 1.6.0-RC2.6
871 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.5_to_v1.6.0 <<EOF
872 database_changes.php Perform database changes
873 upgrade_saved_searches.php Upgrade existing custom filters (saved searches)
874 EOF
875
876 %triggerpostun -- eventum < 1.6.1-0.2
877 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.6.0_to_v1.6.1 <<EOF
878 database_changes.php Perform database changes
879 EOF
880
881 %triggerpostun -- eventum < 1.7.1-2.48.20060717
882 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.7.1_to_v2.0 <<EOF
883 database_changes.php Perform database changes
884 EOF
885
886 %triggerpostun irc -- eventum-irc < 1.6.1-3.14
887 sed -i -e '
888 s,\$irc_host,$irc_server_hostname,
889 s,\$irc_port,$irc_server_port,
890 s,\$irc_nick,$nickname,
891 s,\$irc_realname,$realname,
892 s,\$irc_username,$username,
893 s,\$irc_password,$password,
894 ' /etc/eventum/irc.php
895
896 %triggerpostun -- eventum < 1.7.0-2.0.48
897 # migrate from apache-config macros
898 if [ -f /etc/%{name}/apache.conf.rpmsave ]; then
899         if [ -d /etc/apache/webapps.d ]; then
900                 cp -f %{_webapps}/%{_webapp}/apache.conf{,.rpmnew}
901                 cp -f /etc/%{name}/apache.conf.rpmsave %{_webapps}/%{_webapp}/apache.conf
902         fi
903
904         if [ -d /etc/httpd/webapps.d ]; then
905                 cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
906                 cp -f /etc/%{name}/apache.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
907         fi
908 fi
909
910 if [ -L /etc/apache/conf.d/99_%{_webapp}.conf ]; then
911         /usr/sbin/webapp register apache %{_webapp}
912         rm -f /etc/apache/conf.d/99_%{_webapp}.conf
913         %service -q apache reload
914 fi
915 if [ -L /etc/httpd/httpd.conf/99_%{_webapp}.conf ]; then
916         /usr/sbin/webapp register httpd %{_webapp}
917         rm -f /etc/httpd/httpd.conf/99_%{_webapp}.conf
918         %service -q httpd reload
919 fi
920
921 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.6.1_to_v1.7.0 <<EOF
922 database_changes.php Perform database changes
923 set_root_message_ids.php Set iss_root_message_id
924 EOF
925
926 # regular configs
927 for i in apache.conf config.php private_key.php setup.php; do
928         if [ -f /etc/eventum/$i.rpmsave ]; then
929                 mv -f %{_webappdir}/$i{,.rpmnew}
930                 mv -f /etc/eventum/$i.rpmsave %{_webappdir}/$i
931         fi
932 done
933
934 %triggerpostun cli -- %{name}-cli < 1.7.0-3.4
935 if [ -f %{_webappdir}/cli.php.rpmsave ]; then
936         mv -f %{_sysconfdir}/cli.php{,.rpmnew}
937         mv -f %{_webappdir}/cli.php.rpmsave %{_sysconfdir}/cli.php
938 fi
939
940 %triggerpostun irc -- %{name}-irc < 1.7.0-3.4
941 if [ -f %{_webappdir}/irc.php.rpmsave ]; then
942         mv -f %{_sysconfdir}/irc.php{,.rpmnew}
943         mv -f %{_webappdir}/irc.php.rpmsave %{_sysconfdir}/irc.php
944 fi
945
946 %triggerpostun scm -- %{name}-scm < 1.7.1-2.70.20060724
947 if [ -f %{_sysconfdir}/cvs.php.rpmsave ]; then
948         mv -f %{_sysconfdir}/scm.php{,.rpmnew}
949         mv -f %{_sysconfdir}/cvs.php.rpmsave %{_sysconfdir}/scm.php
950 fi
951 ln -sf process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/scm
952
953 %files
954 %defattr(644,root,root,755)
955 %doc ChangeLog FAQ INSTALL README UPGRADE CONTRIB
956 %doc docs/* setup/schema.sql mysql-permissions.sql
957 %attr(751,root,root) %dir %{_webappdir}
958 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
959 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
960 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
961 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/config.php
962 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/private_key.php
963 %attr(660,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/setup.php
964 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/htpasswd
965 %attr(640,root,eventum) %config %verify(not mtime) %{_webappdir}/core.php
966
967 %dir %attr(731,root,eventum) /var/log/%{name}
968 %attr(620,root,eventum) %ghost /var/log/%{name}/*
969 %dir %attr(750,root,root) /var/log/archiv/%{name}
970 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
971
972 %dir %{_appdir}/htdocs
973 %{_appdir}/htdocs/*.php
974 %{_appdir}/htdocs/*.ico
975 %{_appdir}/htdocs/css
976 %{_appdir}/htdocs/customer
977 %{_appdir}/htdocs/images
978 %{_appdir}/htdocs/js
979 %{_appdir}/htdocs/manage
980 %{_appdir}/htdocs/reports
981 %{_appdir}/htdocs/rpc
982 %{_appdir}/htdocs/misc
983 %{_appdir}/templates
984 %dir %{_appdir}/upgrade
985 %attr(755,root,root) %{_appdir}/upgrade/upgrade.sh
986 %{_appdir}/upgrade/[!u]*
987 %{_smartyplugindir}
988
989 %dir %{_appdir}/include
990 %{_appdir}/include/customer
991 %{_appdir}/include/custom_field
992 %{_appdir}/include/jpgraph
993 %{_appdir}/include/workflow
994 %{_appdir}/include/class.[!m]*.php
995 %{_appdir}/include/class.mail.php
996 %{_appdir}/include/class.mail_queue.php
997 %{_appdir}/include/class.mime_helper.php
998 %{_appdir}/include/class.misc.php
999 %{_appdir}/include/db_access.php
1000
1001 %dir %attr(730,root,eventum) /var/run/%{name}
1002 %dir %attr(730,root,eventum) /var/cache/%{name}
1003
1004 %files base
1005 %defattr(644,root,root,755)
1006 %attr(751,root,root) %dir %{_sysconfdir}
1007 %dir %{_libdir}
1008 %dir %{_appdir}
1009 # qmail will ignore user, if it's home directory is not owned
1010 %attr(750,eventum,eventum) %dir /var/lib/%{name}
1011 # saved mail copies
1012 %attr(770,root,eventum) %dir /var/lib/%{name}/routed_emails
1013 %attr(770,root,eventum) %dir /var/lib/%{name}/routed_drafts
1014 %attr(770,root,eventum) %dir /var/lib/%{name}/routed_notes
1015
1016 %files setup
1017 %defattr(644,root,root,755)
1018 %{_appdir}/htdocs/setup
1019
1020 %files mail-queue
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_appdir}/process_mail_queue.php
1023 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-queue
1024
1025 %files mail-download
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_appdir}/download_emails.php
1028 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-download
1029
1030 %files reminder
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_appdir}/check_reminders.php
1033 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-reminder
1034
1035 %files monitor
1036 %defattr(644,root,root,755)
1037 %{_appdir}/include/class.monitor.php
1038 %attr(755,root,root) %{_appdir}/monitor.php
1039 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-monitor
1040
1041 %files route-drafts
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_appdir}/route_drafts.php
1044
1045 %files route-emails
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_appdir}/route_emails.php
1048
1049 %files route-notes
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_appdir}/route_notes.php
1052
1053 %if %{with qmail}
1054 %files router-qmail
1055 %defattr(644,root,root,755)
1056 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/.qmail*
1057 %attr(755,root,root) %{_libdir}/router-qmail
1058 %endif
1059
1060 %files router-postfix
1061 %defattr(644,root,root,755)
1062 %attr(755,root,root) %{_libdir}/router-postfix
1063
1064 %files irc
1065 %defattr(644,root,root,755)
1066 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/irc.php
1067 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/eventum-irc
1068 %attr(755,root,root) %{_sbindir}/%{name}-bot
1069 %attr(754,root,root) /etc/rc.d/init.d/%{name}-irc
1070
1071 %files cli
1072 %defattr(644,root,root,755)
1073 %doc eventumrc
1074 %config %verify(not md5 mtime size) %{_sysconfdir}/cli.php
1075 %attr(755,root,root) %{_bindir}/%{name}
1076 %{_appdir}/cli
1077
1078 %files scm
1079 %defattr(644,root,root,755)
1080 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scm.php
1081 %attr(755,root,root) %{_libdir}/process_cvs_commits
1082 %attr(755,root,root) %{_libdir}/process_svn_commits
1083 # legacy
1084 %ghost %{_libdir}/scm
This page took 0.143338 seconds and 4 git commands to generate.