]> git.pld-linux.org Git - packages/eventum.git/blob - eventum.spec
776ccc125033181369a1b830a76292b5923e4dd5
[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   20060725
15 #define _rc             RC3
16 %define _rel    2.81
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:  e4d877d2a929b375769fe9ee1386b15f
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}-bug-17267.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/eventum-tpl-fixes4.patch
81 Patch35:        http://glen.alkohol.ee/pld/eventum/eventum-tpl-fixes5.patch
82 Patch36:        %{name}-bounce.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 %patch17 -p1
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 %patch36 -p1
545
546 # packaging
547 %patch100 -p1
548 %patch101 -p1
549 %patch102 -p1
550 %patch103 -p1
551 %patch104 -p1
552 %patch105 -p1
553 %patch106 -p1
554 %patch107 -p1
555
556 cat <<'EOF'> mysql-permissions.sql
557 # use this schema if you want to grant permissions manually instead of using setup
558 # this schema is extracted from setup/index.php.
559 GRANT SELECT, UPDATE, DELETE, INSERT, ALTER, DROP, CREATE, INDEX ON eventum.* TO 'eventum'@'localhost' IDENTIFIED BY 'password';
560 EOF
561
562 mv misc/localization/de{_DE,}
563 mv misc/localization/es{_ES,}
564 mv misc/localization/fi{_FI,}
565 mv misc/localization/fr{_FR,}
566 mv misc/localization/it{_IT,}
567 mv misc/localization/nl{_NL,}
568 mv misc/localization/ru{_RU,}
569
570 # oops, the file got truncated - quick fix
571 cp misc/localization/eventum.po misc/localization/de/LC_MESSAGES/eventum.po
572 cp misc/localization/eventum.po misc/localization/es/LC_MESSAGES/eventum.po
573 cp misc/localization/eventum.po misc/localization/fi/LC_MESSAGES/eventum.po
574 cp misc/localization/eventum.po misc/localization/fr/LC_MESSAGES/eventum.po
575 cp misc/localization/eventum.po misc/localization/it/LC_MESSAGES/eventum.po
576 cp misc/localization/eventum.po misc/localization/nl/LC_MESSAGES/eventum.po
577 cp misc/localization/eventum.po misc/localization/ru/LC_MESSAGES/eventum.po
578 cp misc/localization/eventum.po misc/localization/en_US/LC_MESSAGES/eventum.po
579
580 sed -e '1s,#!.*/bin/php -q,#!%{_bindir}/php,' misc/cli/eventum > %{name}-cli
581 sed -e '1i#!%{_bindir}/php' misc/scm/process_cvs_commits.php > process_cvs_commits
582 sed -e '1i#!%{_bindir}/php' misc/scm/process_svn_commits.php > process_svn_commits
583 sed -e '1i#!%{_bindir}/php' misc/irc/bot.php > %{name}-bot
584 mv misc/cli/eventumrc_example eventumrc
585 sed -i -e '1i#!%{_bindir}/php' misc/*.php
586 chmod +x misc/*.php
587 mv include/private_key.php private_key.php.in
588
589 # replace in remaining scripts config.inc.php to system one
590 grep -rl 'include_once(".*config.inc.php")' . | xargs sed -i -e '
591         s,include_once(".*config.inc.php"),include_once("%{_webappdir}/core.php"),
592 '
593
594 grep -rl 'APP_INC_PATH..*"private_key.php"' . | xargs sed -i -e '
595         s,include_once(APP_INC_PATH.*"private_key.php"),include_once("%{_webappdir}/private_key.php"),
596 '
597
598 # remove backups from patching as we use globs to package files to buildroot
599 find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
600
601 %build
602 cd misc/localization
603 for a in */LC_MESSAGES; do
604         msgfmt -o $a/eventum.mo $a/eventum.po
605 done
606
607 %install
608 rm -rf $RPM_BUILD_ROOT
609 install -d \
610         $RPM_BUILD_ROOT{%{_webappdir},%{_sysconfdir},%{_bindir},%{_sbindir},%{_libdir}} \
611         $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,sysconfig} \
612         $RPM_BUILD_ROOT/var/{run,cache,lib}/%{name} \
613         $RPM_BUILD_ROOT/var/log/{archiv/,}%{name} \
614         $RPM_BUILD_ROOT/var/lib/%{name}/routed_{emails,drafts,notes} \
615         $RPM_BUILD_ROOT%{_appdir}/{include,htdocs/misc,upgrade} \
616
617 cp -a *.php css customer images js manage reports rpc setup $RPM_BUILD_ROOT%{_appdir}/htdocs
618 cp -a misc/*.html $RPM_BUILD_ROOT%{_appdir}/htdocs/misc
619 cp -a misc/*.php $RPM_BUILD_ROOT%{_appdir}
620 cp -a templates $RPM_BUILD_ROOT%{_appdir}
621 cp -a include/{customer,custom_field,jpgraph,workflow} $RPM_BUILD_ROOT%{_appdir}/include
622 cp -a include/*.php $RPM_BUILD_ROOT%{_appdir}/include
623 cp -a logs/* $RPM_BUILD_ROOT/var/log/%{name}
624 cp -a misc/upgrade $RPM_BUILD_ROOT%{_appdir}
625
626 cp -a favicon.ico $RPM_BUILD_ROOT%{_appdir}/htdocs/favicon.ico
627 install %{SOURCE12} $RPM_BUILD_ROOT%{_appdir}/htdocs/setup/config.inc.php
628 install %{SOURCE13} $RPM_BUILD_ROOT%{_appdir}/upgrade/upgrade.sh
629
630 # cli
631 install -d $RPM_BUILD_ROOT%{_appdir}/cli
632 cp -a misc/cli/include/class.{misc,command_line}.php $RPM_BUILD_ROOT%{_appdir}/cli
633 cp -a misc/cli/config.inc.php $RPM_BUILD_ROOT%{_sysconfdir}/cli.php
634 install %{name}-cli $RPM_BUILD_ROOT%{_bindir}/%{name}
635 install %{name}-bot $RPM_BUILD_ROOT%{_sbindir}
636
637 # scm
638 install process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/process_cvs_commits
639 install process_svn_commits $RPM_BUILD_ROOT%{_libdir}/process_svn_commits
640 ln -s process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/scm
641 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/scm.php
642
643 # private key
644 cp -a private_key.php.in $RPM_BUILD_ROOT%{_webappdir}/private_key.php
645 touch $RPM_BUILD_ROOT%{_webappdir}/htpasswd
646
647 install %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
648 install %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
649 install %{SOURCE16} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
650 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-queue
651 install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-download
652 install %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/%{name}-reminder
653 install %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/%{name}-monitor
654 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/irc.php
655 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/eventum-irc
656 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/eventum-irc
657
658 sed -e '
659 s,%%{APP_VERSION}%%,%{version}%{?_snap:-%{_snap}}%{?_rc:-%{_rc}},
660 s,%%{PHP_PEAR_DIR}%%,%{php_pear_dir},
661 s,%%{APP_PATH}%%,%{_appdir},
662 s,%%{SMARTY_DIR}%%,%{_smartydir},
663 s,%%{SYSCONFDIR}%%,%{_webappdir},
664 ' %{SOURCE10} > $RPM_BUILD_ROOT%{_webappdir}/core.php
665
666 # config
667 > $RPM_BUILD_ROOT%{_webappdir}/setup.php
668 mv $RPM_BUILD_ROOT{%{_appdir}/htdocs/config.inc,%{_webappdir}/config}.php
669
670 install -d $RPM_BUILD_ROOT%{_smartyplugindir}
671 # These plugins are not in Smarty package (Smarty-2.6.2-3)
672 cp -a \
673         include/Smarty/plugins/function.{calendar,get_{display_style,innerhtml,textarea_size}}.php \
674         include/Smarty/plugins/modifier.highlight_quoted.php \
675         $RPM_BUILD_ROOT%{_smartyplugindir}
676
677 # qmail router
678 %if %{with qmail}
679 d=$RPM_BUILD_ROOT/var/lib/%{name}
680 echo 'root' > $d/.qmail
681 echo 'root' > $d/.qmail-default
682 echo '| %{_libdir}/router-qmail drafts' > $d/.qmail-draft-default
683 echo '| %{_libdir}/router-qmail emails 1' > $d/.qmail-issue-default
684 echo '| %{_libdir}/router-qmail notes' > $d/.qmail-note-default
685 install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/router-qmail
686 %endif
687 # postfix router
688 install %{SOURCE14} $RPM_BUILD_ROOT%{_libdir}/router-postfix
689
690 install -D %{SOURCE15} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
691 # locale
692 cd misc/localization
693 for a in */LC_MESSAGES; do
694         install -d $RPM_BUILD_ROOT%{_datadir}/locale/$a
695         cp -a $a/%{name}.mo $RPM_BUILD_ROOT%{_datadir}/locale/$a
696 done
697 cd -
698
699 #%find_lang %{name}
700
701 %clean
702 rm -rf $RPM_BUILD_ROOT
703
704 %pre
705 %addusertogroup http %{name}
706
707 %post
708 # check if the package is configured.
709 if grep -q 'header("Location: setup/")' %{_webappdir}/config.php; then
710 if [ -f %{_appdir}/htdocs/setup/index.php ]; then
711 %banner %{name} -e <<EOF
712
713 You haven't yet configured Eventum!
714 Please open in browser <http://localhost/eventum/>
715 If you need access from elsewhere, you need to edit
716 %{_webappdir}/apache.conf and restart apache.
717
718 IMPORTANT: When You have configured Eventum, please uninstall the
719 setup package, so that %{name}-setup is able to secure your Eventum
720 installation.
721
722 EOF
723 #' vim syntax hack
724 else
725 %banner %{name} -e <<EOF
726
727 You haven't yet configured Eventum!
728
729 To setup eventum, please install %{name}-setup and open in browser
730 <http://localhost/eventum/>.
731 If you need access from elsewhere, you need to edit
732 %{_webappdir}/apache.conf and restart apache.
733
734 IMPORTANT: When You have configured Eventum, please uninstall the
735 setup package, so that %{name}-setup is able to secure your Eventum
736 installation.
737
738 EOF
739 #' vim syntax hack
740 fi
741
742 elif grep -q 'DEFAULTPRIVATEKEY' %{_webappdir}/private_key.php; then
743 %banner %{name} -e <<EOF
744
745 You have default private key installed!
746
747 Install %{name}-setup and open up http://yourserver/eventum/setup/
748 -- that will help you setup initial config.
749
750 when have configured Eventum, please uninstall the setup package,
751 so that %{name}-setup is able to secure your Eventum installation.
752
753 EOF
754         elif [ -d %{_appdir}/setup ]; then
755 %banner %{name} -e <<EOF
756
757 If you have have configured Eventum, please uninstall the setup package,
758 so that %{name}-setup is able to secure your Eventum installation.
759
760 EOF
761 fi
762
763 # nuke Smarty templates cache after upgrade
764 rm -f /var/cache/eventum/*.php
765
766 %preun
767 if [ "$1" = "0" ]; then
768         # nuke cache
769         rm -f /var/cache/eventum/*.php 2>/dev/null || :
770 fi
771
772 %pre base
773 %groupadd -P %{name}-base -g 146 %{name}
774 %useradd -P %{name}-base -u 146 -d /var/lib/%{name} -g %{name} -c "Eventum User" %{name}
775
776 %postun base
777 if [ "$1" = "0" ]; then
778         %userremove %{name}
779         %groupremove %{name}
780 fi
781
782 %post router-qmail
783 CF=/etc/qmail/control/virtualdomains
784 if ! grep -q ':%{name}\b' $CF 2>/dev/null; then
785         FQDN=$(awk -F'"' '/define/ && $2 ~ /APP_HOSTNAME/ {print $4}' %{_webappdir}/config.php 2>/dev/null)
786         [ "$FQDN" ] || FQDN=$(hostname -f 2>/dev/null || echo localhost)
787         umask 022
788         echo "#${FQDN}:%{name}" >> $CF
789
790 %banner %{name}-qmail -e <<EOF
791
792 Added "#${FQDN}:%{name}" to $CF,
793 Please verify that it is correct and restart qmail:
794 # service qmail reload
795
796 Consult qmail-send(8) for more information on virtualdomains.
797
798 EOF
799 fi
800
801 %preun router-qmail
802 if [ "$1" = "0" ]; then
803         sed -i -e '/:%{name}\b/d' /etc/qmail/control/virtualdomains
804 fi
805
806 %post setup
807 chmod 660 %{_webappdir}/{config,private_key}.php
808 chown root:eventum %{_webappdir}/{config,private_key}.php
809
810 %postun setup
811 if [ "$1" = "0" ]; then
812         chmod 640 %{_webappdir}/{config,private_key}.php
813         chown root:eventum %{_webappdir}/{config,private_key}.php
814 fi
815
816 %post irc
817 /sbin/chkconfig --add eventum-irc
818 %service eventum-irc restart "Eventum IRC Bot"
819
820 %preun irc
821 if [ "$1" = 0 ]; then
822         %service eventum-irc stop
823         /sbin/chkconfig --del eventum-irc
824 fi
825
826 %triggerin -- apache1
827 %webapp_register apache %{_webapp}
828
829 %triggerun -- apache1
830 %webapp_unregister apache %{_webapp}
831
832 %triggerin -- apache < 2.2.0, apache-base
833 %webapp_register httpd %{_webapp}
834
835 %triggerun -- apache < 2.2.0, apache-base
836 %webapp_unregister httpd %{_webapp}
837
838 %triggerin -- lighttpd
839 %webapp_register lighttpd %{_webapp}
840
841 %triggerun -- lighttpd
842 %webapp_unregister lighttpd %{_webapp}
843
844 # FIXME
845 # only one upgrade trigger is called if you're upgrading over two
846 # versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
847 # use common trigger (the highest version and rpmvercmp from poldek?)
848 %triggerpostun -- eventum < 1.5.1-0.257
849 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5_to_v1.5.1 <<EOF
850 database_changes.php Perform database changes
851 EOF
852
853 %triggerpostun -- eventum < 1.5.2-0.289
854 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.1_to_v1.5.2 <<EOF
855 database_changes.php Perform database changes
856 set_priority_ranks.php Fix the ranking of priority values
857 EOF
858
859 %triggerpostun -- eventum < 1.5.3-0.291
860 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.2_to_v1.5.3 <<EOF
861 database_changes.php Perform database changes
862 EOF
863
864 %triggerpostun -- eventum < 1.5.4-1.12
865 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.3_to_v1.5.4 <<EOF
866 database_changes.php Perform database changes
867 EOF
868
869 %triggerpostun -- eventum < 1.6.0-RC2.6
870 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.5_to_v1.6.0 <<EOF
871 database_changes.php Perform database changes
872 upgrade_saved_searches.php Upgrade existing custom filters (saved searches)
873 EOF
874
875 %triggerpostun -- eventum < 1.6.1-0.2
876 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.6.0_to_v1.6.1 <<EOF
877 database_changes.php Perform database changes
878 EOF
879
880 %triggerpostun -- eventum < 1.7.1-2.48.20060717
881 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.7.1_to_v2.0 <<EOF
882 database_changes.php Perform database changes
883 EOF
884
885 %triggerpostun irc -- eventum-irc < 1.6.1-3.14
886 sed -i -e '
887 s,\$irc_host,$irc_server_hostname,
888 s,\$irc_port,$irc_server_port,
889 s,\$irc_nick,$nickname,
890 s,\$irc_realname,$realname,
891 s,\$irc_username,$username,
892 s,\$irc_password,$password,
893 ' /etc/eventum/irc.php
894
895 %triggerpostun -- eventum < 1.7.0-2.0.48
896 # migrate from apache-config macros
897 if [ -f /etc/%{name}/apache.conf.rpmsave ]; then
898         if [ -d /etc/apache/webapps.d ]; then
899                 cp -f %{_webapps}/%{_webapp}/apache.conf{,.rpmnew}
900                 cp -f /etc/%{name}/apache.conf.rpmsave %{_webapps}/%{_webapp}/apache.conf
901         fi
902
903         if [ -d /etc/httpd/webapps.d ]; then
904                 cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
905                 cp -f /etc/%{name}/apache.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
906         fi
907 fi
908
909 if [ -L /etc/apache/conf.d/99_%{_webapp}.conf ]; then
910         /usr/sbin/webapp register apache %{_webapp}
911         rm -f /etc/apache/conf.d/99_%{_webapp}.conf
912         %service -q apache reload
913 fi
914 if [ -L /etc/httpd/httpd.conf/99_%{_webapp}.conf ]; then
915         /usr/sbin/webapp register httpd %{_webapp}
916         rm -f /etc/httpd/httpd.conf/99_%{_webapp}.conf
917         %service -q httpd reload
918 fi
919
920 %{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.6.1_to_v1.7.0 <<EOF
921 database_changes.php Perform database changes
922 set_root_message_ids.php Set iss_root_message_id
923 EOF
924
925 # regular configs
926 for i in apache.conf config.php private_key.php setup.php; do
927         if [ -f /etc/eventum/$i.rpmsave ]; then
928                 mv -f %{_webappdir}/$i{,.rpmnew}
929                 mv -f /etc/eventum/$i.rpmsave %{_webappdir}/$i
930         fi
931 done
932
933 %triggerpostun cli -- %{name}-cli < 1.7.0-3.4
934 if [ -f %{_webappdir}/cli.php.rpmsave ]; then
935         mv -f %{_sysconfdir}/cli.php{,.rpmnew}
936         mv -f %{_webappdir}/cli.php.rpmsave %{_sysconfdir}/cli.php
937 fi
938
939 %triggerpostun irc -- %{name}-irc < 1.7.0-3.4
940 if [ -f %{_webappdir}/irc.php.rpmsave ]; then
941         mv -f %{_sysconfdir}/irc.php{,.rpmnew}
942         mv -f %{_webappdir}/irc.php.rpmsave %{_sysconfdir}/irc.php
943 fi
944
945 %triggerpostun scm -- %{name}-scm < 1.7.1-2.70.20060724
946 if [ -f %{_sysconfdir}/cvs.php.rpmsave ]; then
947         mv -f %{_sysconfdir}/scm.php{,.rpmnew}
948         mv -f %{_sysconfdir}/cvs.php.rpmsave %{_sysconfdir}/scm.php
949 fi
950 ln -sf process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/scm
951
952 %files
953 %defattr(644,root,root,755)
954 %doc ChangeLog FAQ INSTALL README UPGRADE CONTRIB
955 %doc docs/* setup/schema.sql mysql-permissions.sql
956 %attr(751,root,root) %dir %{_webappdir}
957 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
958 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
959 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
960 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/config.php
961 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/private_key.php
962 %attr(660,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/setup.php
963 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/htpasswd
964 %attr(640,root,eventum) %config %verify(not mtime) %{_webappdir}/core.php
965
966 %dir %attr(731,root,eventum) /var/log/%{name}
967 %attr(620,root,eventum) %ghost /var/log/%{name}/*
968 %dir %attr(750,root,root) /var/log/archiv/%{name}
969 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
970
971 %dir %{_appdir}/htdocs
972 %{_appdir}/htdocs/*.php
973 %{_appdir}/htdocs/*.ico
974 %{_appdir}/htdocs/css
975 %{_appdir}/htdocs/customer
976 %{_appdir}/htdocs/images
977 %{_appdir}/htdocs/js
978 %{_appdir}/htdocs/manage
979 %{_appdir}/htdocs/reports
980 %{_appdir}/htdocs/rpc
981 %{_appdir}/htdocs/misc
982 %{_appdir}/templates
983 %dir %{_appdir}/upgrade
984 %attr(755,root,root) %{_appdir}/upgrade/upgrade.sh
985 %{_appdir}/upgrade/[!u]*
986 %{_smartyplugindir}
987
988 %dir %{_appdir}/include
989 %{_appdir}/include/customer
990 %{_appdir}/include/custom_field
991 %{_appdir}/include/jpgraph
992 %{_appdir}/include/workflow
993 %{_appdir}/include/class.[!m]*.php
994 %{_appdir}/include/class.mail.php
995 %{_appdir}/include/class.mail_queue.php
996 %{_appdir}/include/class.mime_helper.php
997 %{_appdir}/include/class.misc.php
998 %{_appdir}/include/db_access.php
999
1000 %dir %attr(730,root,eventum) /var/run/%{name}
1001 %dir %attr(730,root,eventum) /var/cache/%{name}
1002
1003 %files base
1004 %defattr(644,root,root,755)
1005 %attr(751,root,root) %dir %{_sysconfdir}
1006 %dir %{_libdir}
1007 %dir %{_appdir}
1008 # qmail will ignore user, if it's home directory is not owned
1009 %attr(750,eventum,eventum) %dir /var/lib/%{name}
1010 # saved mail copies
1011 %attr(770,root,eventum) %dir /var/lib/%{name}/routed_emails
1012 %attr(770,root,eventum) %dir /var/lib/%{name}/routed_drafts
1013 %attr(770,root,eventum) %dir /var/lib/%{name}/routed_notes
1014
1015 %files setup
1016 %defattr(644,root,root,755)
1017 %{_appdir}/htdocs/setup
1018
1019 %files mail-queue
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_appdir}/process_mail_queue.php
1022 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-queue
1023
1024 %files mail-download
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_appdir}/download_emails.php
1027 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-download
1028
1029 %files reminder
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_appdir}/check_reminders.php
1032 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-reminder
1033
1034 %files monitor
1035 %defattr(644,root,root,755)
1036 %{_appdir}/include/class.monitor.php
1037 %attr(755,root,root) %{_appdir}/monitor.php
1038 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-monitor
1039
1040 %files route-drafts
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) %{_appdir}/route_drafts.php
1043
1044 %files route-emails
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_appdir}/route_emails.php
1047
1048 %files route-notes
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_appdir}/route_notes.php
1051
1052 %if %{with qmail}
1053 %files router-qmail
1054 %defattr(644,root,root,755)
1055 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/.qmail*
1056 %attr(755,root,root) %{_libdir}/router-qmail
1057 %endif
1058
1059 %files router-postfix
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_libdir}/router-postfix
1062
1063 %files irc
1064 %defattr(644,root,root,755)
1065 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/irc.php
1066 %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/eventum-irc
1067 %attr(755,root,root) %{_sbindir}/%{name}-bot
1068 %attr(754,root,root) /etc/rc.d/init.d/%{name}-irc
1069
1070 %files cli
1071 %defattr(644,root,root,755)
1072 %doc eventumrc
1073 %config %verify(not md5 mtime size) %{_sysconfdir}/cli.php
1074 %attr(755,root,root) %{_bindir}/%{name}
1075 %{_appdir}/cli
1076
1077 %files scm
1078 %defattr(644,root,root,755)
1079 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scm.php
1080 %attr(755,root,root) %{_libdir}/process_cvs_commits
1081 %attr(755,root,root) %{_libdir}/process_svn_commits
1082 # legacy
1083 %ghost %{_libdir}/scm
This page took 0.105014 seconds and 3 git commands to generate.