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