]> git.pld-linux.org Git - packages/eventum.git/blame - eventum.spec
up to 3.4.2-30-ga83a1da8
[packages/eventum.git] / eventum.spec
CommitLineData
a659c698
JB
1#
2# Conditional build:
7bc9b641 3%bcond_with order # with experimental order patch
cddf3011 4
9d6970de 5%define rel 1
ea627041
ER
6%define subver 30
7%define githash a83a1da8
ed5da172 8%define php_min_version 5.6.0
c96aabf5 9Summary: Eventum Issue / Bug tracking system
9f49cf47 10Summary(pl.UTF-8): Eventum - system śledzenia spraw/błędów
bb01d732 11Name: eventum
adbdb0e8 12Version: 3.4.2
7665f424 13Release: %{?subver:1.%{subver}.%{?githash:g%{githash}.}}%{rel}
0bd66721 14License: GPL v2+
6850abd9 15Group: Applications/WWW
adbdb0e8
ER
16#Source0: https://github.com/eventum/eventum/releases/download/v%{version}/%{name}-%{version}.tar.xz
17Source0: https://github.com/eventum/eventum/releases/download/snapshot/%{name}-%{version}-%{subver}-g%{githash}.tar.xz
ea627041 18# Source0-md5: 3b06621384082cd09260641fbd3fa154
82121306 19Source1: %{name}-apache.conf
cd719538
ER
20Source2: %{name}-mail-queue.cron
21Source3: %{name}-mail-download.cron
22Source4: %{name}-reminder.cron
23Source5: %{name}-monitor.cron
1cce3e61 24Source10: sphinx.crontab
cfcdd0a9
ER
25Source13: %{name}-router-postfix.sh
26Source14: %{name}.logrotate
27Source15: %{name}-lighttpd.conf
d0dabd47
ER
28Source16: http://www.isocra.com/images/updown2.gif
29# Source16-md5: deb6eeb2552ba757d3a949ed10c4107d
cc613bc9 30Source17: %{name}.tmpfiles
4f627938 31Patch2: %{name}-order.patch
7a906e31
ER
32#Patch3: group-users.patch
33#Patch4: https://github.com/glensc/eventum/compare/cf_escape.patch
14ff3418 34# packaging patches that probably never go upstream
ac27ba92 35Patch100: %{name}-paths.patch
cfcdd0a9 36Patch107: %{name}-gettext.patch
3ca19d87 37Patch108: autoload.patch
a6016bab
ER
38# some tests
39Patch200: %{name}-fixed-nav.patch
a3a1480e 40URL: https://wiki.github.com/eventum/eventum/
376f0835 41BuildRequires: gettext-tools
5500a61e 42BuildRequires: rpmbuild(macros) >= 1.654
4068cb73 43BuildRequires: sed >= 4.0
db2ce4e2 44Requires(post): sudo
5132bae6
ER
45Requires(postun): /usr/sbin/groupdel
46Requires(postun): /usr/sbin/userdel
47Requires(pre): /bin/id
48Requires(pre): /usr/bin/getgid
49Requires(pre): /usr/sbin/groupadd
50Requires(pre): /usr/sbin/useradd
0b88d857 51Requires: fonts-TTF-RedHat-liberation
01d8dfff 52Requires: php(core) >= %{php_min_version}
2f331c68 53Requires: php(filter)
2f331c68
ER
54Requires: php(iconv)
55Requires: php(imap)
56Requires: php(json)
57Requires: php(mbstring)
2f331c68 58Requires: php(pcre)
75d6f458 59Requires: php(pdo_mysql)
2f331c68 60Requires: php(session)
5dbd4bf5
ER
61Requires: php-Smarty >= 3.1
62Requires: php-Smarty-plugin-gettext
9d207070 63Requires: php-ZendFramework-Config >= 2.4
fefc61ab 64Requires: php-ZendFramework-Loader >= 2.4
05c9edc6 65Requires: php-ZendFramework-Mail >= 2.4.13-2
fefc61ab 66Requires: php-ZendFramework-Mime >= 2.4
1beb4932 67Requires: php-ZendFramework-ServiceManager >= 2.4
fefc61ab 68Requires: php-ZendFramework-Validator >= 2.4
19d84727 69Requires: php-monolog >= 1.17.2
71b01fde 70Requires: php-pear-Math_Stats
71b01fde 71Requires: php-pear-Net_SMTP
71b01fde
ER
72Requires: php-pear-Net_Socket
73Requires: php-pear-Net_URL
3223fb64 74Requires: php-pear-PEAR-core
71b01fde 75Requires: php-pear-Text_Diff
19d84727 76Requires: php-psr-Log >= 1.0.0-2
0b88d857 77Requires: phplot >= 5.8.0
bdf85dc8 78Requires: webapps
f399f1c0
ER
79Requires: webserver(access)
80Requires: webserver(alias)
897bdb2c 81Requires: webserver(indexfile)
61351540 82Requires: webserver(php) >= 4.2.0
462ee1a6 83Suggests: localedb
383eed8e
ER
84Suggests: php(mcrypt)
85Suggests: php(openssl)
191d9c61 86Suggests: php-pear-Net_POP3
06ddb94b 87Suggests: webserver(setenv)
5132bae6
ER
88Provides: group(eventum)
89Provides: user(eventum)
90Obsoletes: eventum-base < 3.0.3-1.305
4e2cf70d
ER
91Obsoletes: eventum-route-drafts < 3.0.8-1.1
92Obsoletes: eventum-route-emails < 3.0.8-1.1
93Obsoletes: eventum-route-notes < 3.0.8-1.1
bd70ea88 94Conflicts: logrotate < 3.8.0
35fa3cf8 95BuildArch: noarch
bb01d732
ER
96BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
97
1d760108 98%define _libdir %{_prefix}/lib/%{name}
71f56750 99%define _appdir %{_datadir}/%{name}
d1c44829 100%define _smartydir %{php_data_dir}/Smarty
bdf85dc8
ER
101%define _webapps /etc/webapps
102%define _webapp %{name}
8a37ad9d
ER
103%define _webappdir %{_webapps}/%{_webapp}
104%define _sysconfdir /etc/%{name}
bb01d732
ER
105
106%description
107Eventum is a user-friendly and flexible issue tracking system that can
108be used by a support department to track incoming technical support
109requests, or by a software development team to quickly organize tasks
a3a1480e 110and bugs.
bb01d732 111
d8cfa9f0
JR
112%description -l pl.UTF-8
113Eventum to przyjazny dla użytkownika system śledzenia spraw, który
114może być używany przez dział obsługi do śledzenia przychodzących żądań
115obsługi technicznej albo przez zespół tworzący oprogramowanie do
a3a1480e 116szybkiej organizacji zadań i błędów.
4068cb73 117
ab983aaa 118%package setup
4068cb73 119Summary: Eventum setup package
9f49cf47 120Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji Eventum
ab983aaa 121Group: Applications/WWW
5b165428 122Requires: %{name} = %{version}-%{release}
ab983aaa
ER
123
124%description setup
125Install this package to configure initial Eventum installation. You
126should uninstall this package when you're done, as it considered
127insecure to keep the setup files in place.
128
d8cfa9f0
JR
129%description setup -l pl.UTF-8
130Ten pakiet należy zainstalować w celu wstępnej konfiguracji Eventum po
131pierwszej instalacji. Potem należy go odinstalować, jako że
132pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
4068cb73 133
d4a553ea
ER
134%package doc
135Summary: Eventum documentation and Wiki
136Group: Documentation
137
138%description doc
139Eventum documentation and copy of Wiki.
140
0da8e1f2 141%package mail-queue
30689148 142Summary: Eventum mail queue process
9f49cf47 143Summary(pl.UTF-8): Przetwarzanie kolejki poczty Eventum
0da8e1f2 144Group: Applications/WWW
5b165428 145Requires: %{name} = %{version}-%{release}
0da8e1f2
ER
146Requires: crondaemon
147
148%description mail-queue
149Beginning with the first release of Eventum, emails are not directly
150sent out from the various scripts, but rather added to a mail queue
151table that is processed by a cron job. If an email cannot be sent, it
152will be marked as such in the mail queue log, and the cron job script
153will re-try to send it again the next time it runs.
154
155This package contains the cron job.
156
d8cfa9f0
JR
157%description mail-queue -l pl.UTF-8
158Od pierwszego wydania Eventum poczta nie jest wysyłana bezpośrednio z
159różnych skryptów, lecz dodawana do kolejki przetwarzanej z crona.
160Jeśli poczta nie może być wysłana, będzie odpowiednio oznaczona w logu
161kolejki poczty, a skrypt z crona będzie próbował wysłać ją ponownie
162następnym razem.
0181746f 163
30689148 164Ten pakiet zawiera zadanie dla crona.
165
ea084bcb 166%package mail-download
30689148 167Summary: Eventum email download
9f49cf47 168Summary(pl.UTF-8): Ściąganie poczty Eventum
ea084bcb 169Group: Applications/WWW
5b165428 170Requires: %{name} = %{version}-%{release}
ea084bcb
ER
171Requires: crondaemon
172
173%description mail-download
174In order for Eventum's email integration feature to work, you need to
175setup a cron job to run the script every so often.
176
177This package contains the cron job.
178
d8cfa9f0
JR
179%description mail-download -l pl.UTF-8
180Aby integracja poczty elektronicznej w Eventum działała, trzeba
181ustawić zadanie crona, aby uruchamiał odpowiedni skrypt wystarczająco
182często.
0181746f
JB
183
184Ten pakiet zawiera zadanie dla crona.
185
cd719538
ER
186%package reminder
187Summary: Eventum Reminder System
9f49cf47 188Summary(pl.UTF-8): System przypominania dla Eventum
cd719538 189Group: Applications/WWW
5b165428 190Requires: %{name} = %{version}-%{release}
cd719538
ER
191Requires: crondaemon
192
193%description reminder
194The reminder system was designed with the objective as serving as a
195safe net for issues that need attention. Depending on what
196configuration you create, you may have several reminders (or alerts)
197be sent out whenever an issue needs attention, for whatever parameter
198you may deem necessary.
199
200This package contains the cron job.
201
d8cfa9f0
JR
202%description reminder -l pl.UTF-8
203System przypominania został zaprojektowany tak, aby służył jako
204bezpieczna sieć dla spraw wymagających uwagi. W zależności od
205konfiguracji można ustawić różne przypominajki (lub alarmy) wysyłane
206przy każdej sprawie wymagającej uwagi lub przy parametrze, który można
207uważać za potrzebny.
6341f096
JB
208
209Ten pakiet zawiera zadanie dla crona.
210
cd719538
ER
211%package monitor
212Summary: Eventum Heartbeat Monitor
9f49cf47 213Summary(pl.UTF-8): Monitor życia dla Eventum
cd719538 214Group: Applications/WWW
5b165428 215Requires: %{name} = %{version}-%{release}
cd719538 216Requires: crondaemon
2f331c68 217Requires: php(posix)
cd719538
ER
218
219%description monitor
220The heartbeat monitor is a feature designed for the administrator that
221wants to be alerted whenever a common problem in Eventum is detected,
222like the database server not being available anymore, or maybe when
223the recommended permissions for certain configuration files are
224changed.
225
226Please note that before running the heartbeat monitor, you may need to
227customize some of the checks to be appropriate for your own system,
228particularly the permission and file checks on
229Monitor::checkConfiguration().
230
231This package contains the cron job.
232
d8cfa9f0
JR
233%description monitor -l pl.UTF-8
234Monitor życia to funkcjonalność zaprojektowana dla administratora
235chcącego być alarmowanym przy każdym wykryciu popularnego problemu z
236Eventum, jak nie działanie serwera bazy danych albo zmiana uprawnień
237do plików konfiguracyjnych.
6341f096 238
d8cfa9f0
JR
239Należy zauważyć, że przed uruchomieniem tego monitora może być
240konieczne dostosowanie niektórych testów do systemu, w szczególności
241testów uprawnień i plików w Monitor::checkConfiguration().
6341f096
JB
242
243Ten pakiet zawiera zadanie dla crona.
244
a6d2ad69
ER
245%package router-postfix
246Summary: Eventum Mail Routing - Postfix
9f49cf47 247Summary(pl.UTF-8): Przekazywanie poczty Eventum - Postfix
a6d2ad69 248Group: Applications/Mail
5b165428 249Requires: %{name} = %{version}-%{release}
a6d2ad69 250Requires: postfix
8bc4bcd1
ER
251Provides: eventum(router)
252Obsoletes: eventum(router)
a6d2ad69
ER
253
254%description router-postfix
255This package provides way of routing notes and emails back to Eventum
256via Postfix.
257
e1bb3563 258The Postfix configuration instructions you can find from
a3a1480e 259<https://github.com/eventum/eventum/wiki/System-Admin:-Setting-up-email-routing-with-postfix>
e1bb3563 260
d8cfa9f0
JR
261%description router-postfix -l pl.UTF-8
262Ten pakiet udostępnia metodę przekazywania notatek i listów do Eventum
995fa554
JB
263przez Postfiksa.
264
d8cfa9f0 265Opis konfiguracji Postfiksa można znaleźć pod adresem
a3a1480e 266<https://github.com/eventum/eventum/wiki/System-Admin:-Setting-up-email-routing-with-postfix>
a659c698 267
abd490e4
ER
268%package cli
269Summary: Eventum command-line interface
9f49cf47 270Summary(pl.UTF-8): Interfejs linii poleceń dla Eventum
abd490e4 271Group: Applications/WWW
01d8dfff 272Requires: php(core) >= %{php_min_version}
4a74b463 273Requires: php(phar)
abd490e4
ER
274
275%description cli
276The Eventum command-line interface allows you to access most of the
277features of the web interface straight from your command shell.
abd490e4 278
d8cfa9f0
JR
279%description cli -l pl.UTF-8
280Interfejs linii poleceń Eventum pozwala na dostęp do większości
281funkcji interfejsu WWW prosto z linii poleceń powłoki.
958cd5a0 282
1cce3e61
ER
283%package sphinx
284Summary: Eventum Sphinx Search
285Group: Applications/WWW
286Requires: %{name} = %{version}-%{release}
287Requires: crondaemon
288Requires: sphinx
289
290%description sphinx
291Sphinx search integration for Eventum.
292
293This package contains the cron job.
294
bb01d732 295%prep
4b01e826 296%setup -q -n %{name}-%{version}%{?githash:-%{subver}-g%{githash}}
5b165428 297
fa6167ba
ER
298mv docs/examples .
299
9487d524 300# bug fixes / features
4f627938 301%{?with_order:%patch2 -p1}
7a906e31
ER
302#%patch3 -p0
303#%patch4 -p1
57e65e62 304
7a906e31 305%{?with_order:cp -p %{SOURCE16} htdocs/images}
422dcc8e 306
a6016bab 307#%patch200 -p1
ac27ba92 308
1cce3e61
ER
309# produce default sphinx config
310# must be run before paths.patch
7a906e31 311%if 0
1cce3e61
ER
312cat <<'EOF' > config/config.php
313<?php
314define('APP_SQL_DBTYPE', 'mysql');
315define('APP_SQL_DBHOST', 'localhost:/var/lib/mysql/mysql.sock');
316define('APP_SQL_DBPORT', 3306);
317define('APP_SQL_DBNAME', 'eventum');
318define('APP_SQL_DBUSER', 'mysql');
319define('APP_SQL_DBPASS', '');
320define('APP_TABLE_PREFIX', 'eventum_');
321EOF
322php config/sphinx.conf.php > config/sphinx.conf
54b9a2df 323rm config/config.php
7a906e31 324%endif
1cce3e61 325
ac27ba92
ER
326# packaging
327%patch100 -p1
ac27ba92 328%patch107 -p1
3ca19d87 329%patch108 -p1
0b3b58dd 330
54b9a2df 331rm htdocs/.htaccess.dist
dee89c38 332
dee89c38 333rm config/config.dist.php
54b9a2df 334
bcb86d50
ER
335# cleanup vendor. keep only needed libraries.
336# (the rest are packaged with system packages)
337mv vendor vendor.dist
338vendor() {
339 local path dir
340 for path; do
341 dir=$(dirname $path)
342 test -d vendor/$dir || mkdir -p vendor/$dir
343 mv vendor.dist/$path vendor/$path
344 done
345}
346vendor autoload.php
347vendor composer/autoload_{classmap,files,namespaces,real,psr4}.php
348vendor composer/ClassLoader.php
a8005c48 349vendor ircmaxell/{random-lib,security-lib}
60c51158 350vendor defuse/php-encryption
626ebcc8 351vendor willdurand/email-reply-parser
2f4f114e 352vendor theorchard/monolog-cascade
4d5632cc 353vendor malkusch/lock
9b6df4e7 354vendor phpxmlrpc/phpxmlrpc
8be9fbff 355vendor robmorgan/phinx
d6a2a084
ER
356vendor mnapoli/silly
357vendor psr/container
358vendor phlib/flysystem-pdo
359vendor league/flysystem
360vendor php-di/invoker
361vendor container-interop/container-interop
d0a18312
ER
362vendor symfony/config
363vendor symfony/console
364vendor symfony/debug
365vendor symfony/event-dispatcher
366vendor symfony/filesystem
367vendor symfony/http-foundation
368vendor symfony/options-resolver
369vendor symfony/serializer
370vendor symfony/yaml
1d2c2049 371vendor symfony/ldap
c1ff84e6
ER
372vendor paragonie/random_compat
373vendor symfony/polyfill-php70
6933980a
ER
374vendor symfony/polyfill-intl-normalizer
375vendor glen/filename-normalizer
3159fb10
ER
376vendor doctrine/annotations
377vendor doctrine/cache
378vendor doctrine/collections
379vendor doctrine/common
380vendor doctrine/dbal
381vendor doctrine/inflector
382vendor doctrine/instantiator
383vendor doctrine/lexer
384vendor doctrine/orm
072d52cb
ER
385vendor cebe/markdown
386vendor enrise/urihelper
c3fd3767 387
5b165428 388# remove backups from patching as we use globs to package files to buildroot
73c437a6 389find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
085e39c0 390
465c3ab7 391%build
ae3e48e6 392%{__make} -C localization
465c3ab7 393
bb01d732
ER
394%install
395rm -rf $RPM_BUILD_ROOT
cfc3bce6 396install -d \
6e3be5a3 397 $RPM_BUILD_ROOT{%{_webappdir}/{custom_field,templates,workflow},%{_sysconfdir},%{_bindir},%{_sbindir},%{_libdir}} \
2b135b34 398 $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,logrotate.d,sysconfig} \
c1e74aa1 399 $RPM_BUILD_ROOT/var/{run,cache,lib}/%{name} \
685fc383 400 $RPM_BUILD_ROOT/var/log/{archive/,}%{name} \
ac6bab4c 401 $RPM_BUILD_ROOT/var/lib/%{name}/{routed_{emails,drafts,notes},storage} \
73de38a1 402 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
cfc3bce6 403
9a547279 404%{__make} install-eventum install-cli install-localization \
ae3e48e6 405 sysconfdir=%{_webappdir} \
7a906e31 406 localedir=%{_localedir} \
ae3e48e6 407 DESTDIR=$RPM_BUILD_ROOT
da8d6134 408
dd5b687f 409ln -s %{_webappdir} $RPM_BUILD_ROOT%{_appdir}/config
37f06e5c 410
bcb86d50 411cp -a vendor $RPM_BUILD_ROOT%{_appdir}
3ca19d87 412
29e8ea7c
ER
413# unsupported locale
414%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ht
415
fa6167ba
ER
416install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
417cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
418
ae3e48e6 419%{?with_order:cp -a htdocs/ajax $RPM_BUILD_ROOT%{_appdir}/htdocs}
9cdc5027 420
f399f1c0 421touch $RPM_BUILD_ROOT%{_webappdir}/htpasswd
1b5aae0f 422cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
87ca28ca 423cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
1b5aae0f 424cp -p %{SOURCE15} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
1cce3e61
ER
425
426install -d $RPM_BUILD_ROOT/etc/sphinx
7a906e31 427#cp -p config/sphinx.conf $RPM_BUILD_ROOT/etc/sphinx/%{name}.conf
858c6f2a 428cp -p config/sphinx.conf.php $RPM_BUILD_ROOT%{_webappdir}
ae3e48e6 429
1b5aae0f
ER
430cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-queue
431cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-download
432cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/%{name}-reminder
433cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/%{name}-monitor
1cce3e61 434cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/cron.d/%{name}-sphinx
ae3e48e6 435
1b5aae0f 436cp -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
2b135b34 437
410d72c7 438# postfix router
858c6f2a 439install -p %{SOURCE13} $RPM_BUILD_ROOT%{_libdir}/router-postfix
a6d2ad69 440
92bc2f5d 441cp -p %{SOURCE17} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
cc613bc9 442
600d96a0 443%find_lang %{name}
c1e74aa1 444
bb01d732
ER
445%clean
446rm -rf $RPM_BUILD_ROOT
447
01b84746 448%pre
5132bae6
ER
449%groupadd -g 146 %{name}
450%useradd -u 146 -d /var/lib/%{name} -g %{name} -c "Eventum User" %{name}
01b84746
ER
451%addusertogroup http %{name}
452
82121306 453%post
686306de
ER
454# create empty ghost files
455# these permissions ensure the logs are write only
456for a in \
457 errors.log login_attempts.log \
2df0528f 458 eventum.log \
7b26fd71 459 auth.log cli.log \
686306de
ER
460; do
461 test -f /var/log/%{name}/$a && continue
462 install -m 0620 -o root -g http /dev/null /var/log/%{name}/$a
08196fe2
ER
463done
464
00358bba
ER
465# run database update if configured
466test -s %{_webappdir}/config.php && \
db2ce4e2 467sudo -H -u http -- %{_appdir}/bin/upgrade.php || :
847270fe 468
da8d6134
ER
469# nuke Smarty templates cache after upgrade
470rm -f /var/cache/eventum/*.php
471
4a751c1a
ER
472# Restart webserver on upgrade to get .mo translations reloaded.
473# actually php engines "php-fcgi" and "php-fpm" needed only, apache is restarted anyway via webapp trigger.
114241d7
ER
474%php_webserver_restart
475
82121306
ER
476%preun
477if [ "$1" = "0" ]; then
dfe0f6d6
ER
478 # nuke cache
479 rm -f /var/cache/eventum/*.php 2>/dev/null || :
480fi
cfc3bce6 481
5132bae6 482%postun
01b84746 483if [ "$1" = "0" ]; then
a6d2ad69 484 %userremove %{name}
1f52d1fe 485 %groupremove %{name}
a6d2ad69
ER
486fi
487
94bd779f 488%post setup
dee89c38
ER
489chmod 660 %{_webappdir}/{config,private_key,secret_key}.php
490chown root:http %{_webappdir}/{config,private_key,secret_key}.php
94bd779f
ER
491
492%postun setup
b4fe195b 493if [ "$1" = "0" ] && [ -f %{_webappdir}/config.php ]; then
dee89c38
ER
494 chmod 640 %{_webappdir}/{config,private_key,secret_key}.php
495 chown root:http %{_webappdir}/{config,private_key,secret_key}.php
94bd779f
ER
496fi
497
09f58a75 498%triggerin -- apache1 < 1.3.37-3, apache1-base
bdf85dc8 499%webapp_register apache %{_webapp}
1d760108 500
09f58a75 501%triggerun -- apache1 < 1.3.37-3, apache1-base
bdf85dc8 502%webapp_unregister apache %{_webapp}
1d760108 503
87ca28ca 504%triggerin -- apache < 2.2.0, apache-base
bdf85dc8 505%webapp_register httpd %{_webapp}
1d760108 506
87ca28ca 507%triggerun -- apache < 2.2.0, apache-base
bdf85dc8 508%webapp_unregister httpd %{_webapp}
1d760108 509
f399f1c0
ER
510%triggerin -- lighttpd
511%webapp_register lighttpd %{_webapp}
512
513%triggerun -- lighttpd
514%webapp_unregister lighttpd %{_webapp}
515
24cfc386
ER
516%triggerpostun -- %{name} < 3.0.0-0.2
517for f in /etc/cron.d/eventum-*; do
518 # crontabs moved to bin
0ffd10e7 519 %{__sed} -i -e '
24cfc386
ER
520 s,/usr/share/eventum/crons/process_mail_queue.php,%{_appdir}/bin/process_mail_queue.php,
521 s,/usr/share/eventum/crons/download_emails.php,%{_appdir}/bin/download_emails.php,
522 s,/usr/share/eventum/crons/check_reminders.php,%{_appdir}/bin/check_reminders.php,
523 s,/usr/share/eventum/crons/monitor.php,%{_appdir}/bin/monitor.php,
524 ' $f
0ffd10e7 525done
f1269a43 526
600d96a0 527%files -f %{name}.lang
bb01d732 528%defattr(644,root,root,755)
371b276a 529%attr(771,root,http) %dir %{_webappdir}
f7d1e520 530%attr(751,root,http) %dir %{_webappdir}/crm
e9a24d52 531%attr(751,root,http) %dir %{_webappdir}/custom_field
f7d1e520 532%attr(751,root,http) %dir %{_webappdir}/partner
e9a24d52
ER
533%attr(751,root,http) %dir %{_webappdir}/templates
534%attr(751,root,http) %dir %{_webappdir}/workflow
8a37ad9d
ER
535%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
536%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
f399f1c0 537%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
e570944f
ER
538%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/config.php
539%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/private_key.php
dee89c38 540%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/secret_key.php
e570944f 541%attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/setup.php
f399f1c0 542%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/htpasswd
d2e501e8 543
7e9ea0b3 544%dir %attr(731,root,http) /var/log/%{name}
e570944f 545%attr(620,root,http) %ghost /var/log/%{name}/*
3c6aa7a9 546%dir %attr(750,root,root) /var/log/archive/%{name}
8fd047ac 547%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
35f9d6a3 548
5132bae6 549%dir %{_appdir}
37f06e5c
ER
550%{_appdir}/config
551
7a906e31 552%dir %{_appdir}/bin
acff2f42 553%attr(755,root,root) %{_appdir}/bin/extension.php
bd0576dd 554%attr(755,root,root) %{_appdir}/bin/ldapsync.php
7a906e31 555%attr(755,root,root) %{_appdir}/bin/process_all_emails.php
6453eaf6 556%attr(755,root,root) %{_appdir}/bin/upgrade.php
7a906e31 557
4b01e826 558%{_appdir}/autoload.php
1beb4932 559%{_appdir}/globals.php
ae3e48e6 560%{_appdir}/init.php
1beb4932 561%{_appdir}/phinx.php
cfc3bce6
ER
562%dir %{_appdir}/htdocs
563%{_appdir}/htdocs/*.php
da8d6134 564%{_appdir}/htdocs/*.ico
7bc9b641 565%{_appdir}/htdocs/ajax
cfc3bce6
ER
566%{_appdir}/htdocs/css
567%{_appdir}/htdocs/customer
568%{_appdir}/htdocs/images
569%{_appdir}/htdocs/js
570%{_appdir}/htdocs/manage
571%{_appdir}/htdocs/reports
572%{_appdir}/htdocs/rpc
7a906e31 573%{_appdir}/htdocs/components
9748a8c3 574%{_appdir}/templates
847270fe 575
8be9fbff
ER
576%dir %{_appdir}/db
577%dir %{_appdir}/db/migrations
578%{_appdir}/db/migrations/*.php
847270fe 579
8772b0d6 580%{_appdir}/res
e8b7cc70 581%{_appdir}/src
8772b0d6 582%{_appdir}/vendor
ae3e48e6
ER
583%dir %{_appdir}/lib
584%{_appdir}/lib/eventum
36395687
ER
585%exclude %{_appdir}/src/Console/Command/MailDownloadCommand.php
586%exclude %{_appdir}/src/Console/Command/MailQueueProcessCommand.php
587%exclude %{_appdir}/src/Console/Command/MailQueueTruncateCommand.php
588%exclude %{_appdir}/src/Console/Command/MonitorCommand.php
589%exclude %{_appdir}/src/Console/Command/ReminderCheckCommand.php
00e339ff 590
5132bae6
ER
591%dir %{_libdir}
592
73de38a1 593%{systemdtmpfilesdir}/%{name}.conf
5132bae6
ER
594
595%dir /var/lib/%{name}
e570944f
ER
596%dir %attr(730,root,http) /var/run/%{name}
597%dir %attr(730,root,http) /var/cache/%{name}
ab983aaa 598
89522a33 599# saved mail copies
e570944f
ER
600%attr(770,root,http) %dir /var/lib/%{name}/routed_emails
601%attr(770,root,http) %dir /var/lib/%{name}/routed_drafts
602%attr(770,root,http) %dir /var/lib/%{name}/routed_notes
ac6bab4c
ER
603# attachment storage
604%attr(770,root,http) %dir /var/lib/%{name}/storage
d2e501e8 605
ab983aaa
ER
606%files setup
607%defattr(644,root,root,755)
cfc3bce6 608%{_appdir}/htdocs/setup
0da8e1f2 609
d4a553ea 610%files doc
06ddb94b 611%defattr(644,root,root,755)
d4a553ea
ER
612%doc docs/*
613%{_examplesdir}/%{name}-%{version}
614
0da8e1f2
ER
615%files mail-queue
616%defattr(644,root,root,755)
36395687
ER
617%{_appdir}/src/Console/Command/MailQueueProcessCommand.php
618%{_appdir}/src/Console/Command/MailQueueTruncateCommand.php
7a906e31 619%attr(755,root,root) %{_appdir}/bin/process_mail_queue.php
f56655e1 620%attr(755,root,root) %{_appdir}/bin/truncate_mail_queue.php
ea084bcb
ER
621%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-queue
622
623%files mail-download
624%defattr(644,root,root,755)
36395687 625%{_appdir}/src/Console/Command/MailDownloadCommand.php
7a906e31 626%attr(755,root,root) %{_appdir}/bin/download_emails.php
ea084bcb 627%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-download
5cb2e61d 628
cd719538
ER
629%files reminder
630%defattr(644,root,root,755)
36395687 631%{_appdir}/src/Console/Command/ReminderCheckCommand.php
7a906e31 632%attr(755,root,root) %{_appdir}/bin/check_reminders.php
cd719538
ER
633%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-reminder
634
635%files monitor
636%defattr(644,root,root,755)
36395687 637%{_appdir}/src/Console/Command/MonitorCommand.php
7a906e31 638%attr(755,root,root) %{_appdir}/bin/monitor.php
cd719538
ER
639%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-monitor
640
a6d2ad69
ER
641%files router-postfix
642%defattr(644,root,root,755)
410d72c7 643%attr(755,root,root) %{_libdir}/router-postfix
a6d2ad69 644
abd490e4
ER
645%files cli
646%defattr(644,root,root,755)
ae3e48e6 647%doc cli/eventumrc
4a74b463 648%attr(755,root,root) %{_bindir}/%{name}
abd490e4 649
1cce3e61
ER
650%files sphinx
651%defattr(644,root,root,755)
652%{_webappdir}/sphinx.conf.php
7a906e31 653#%attr(750,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/sphinx/%{name}.conf
1cce3e61 654%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-sphinx
This page took 0.312798 seconds and 4 git commands to generate.