%define rel 1
#define subver 37
#define githash 2276dac77
-%define php_min_version 7.2.5
+%define php_min_version 7.3.0
Summary: Eventum Issue / Bug tracking system
Summary(pl.UTF-8): Eventum - system śledzenia spraw/błędów
Name: eventum
-Version: 3.9.3
+Version: 3.10.12
Release: %{?subver:1.%{subver}.%{?githash:g%{githash}.}}%{rel}
License: GPL v2+
Group: Applications/WWW
Source0: https://github.com/eventum/eventum/releases/download/v%{version}/%{name}-%{version}.tar.xz
-# Source0-md5: 46ed9b3c3b6c07e3d5db5b01ed43684b
+# Source0-md5: 0f2c9e99c7e0e913f3d1a471486da2eb
#Source0: https://github.com/eventum/eventum/releases/download/snapshot/%{name}-%{version}-%{subver}-g%{githash}.tar.xz
Source1: %{name}-apache.conf
Source2: %{name}-mail-queue.cron
Source4: %{name}-reminder.cron
Source5: %{name}-monitor.cron
Source10: sphinx.crontab
-Source13: %{name}-router-postfix.sh
Source14: %{name}.logrotate
Source15: %{name}-lighttpd.conf
Source16: http://www.isocra.com/images/updown2.gif
Requires: webserver(indexfile)
Requires: webserver(php) >= 4.2.0
Suggests: localedb
-Suggests: php(mcrypt)
Suggests: php(openssl)
Suggests: webserver(setenv)
Provides: group(eventum)
Ten pakiet zawiera zadanie dla crona.
-%package router-postfix
-Summary: Eventum Mail Routing - Postfix
-Summary(pl.UTF-8): Przekazywanie poczty Eventum - Postfix
-Group: Applications/Mail
-Requires: %{name} = %{version}-%{release}
-Requires: postfix
-Provides: eventum(router)
-Obsoletes: eventum(router)
-
-%description router-postfix
-This package provides way of routing notes and emails back to Eventum
-via Postfix.
-
-The Postfix configuration instructions you can find from
-<https://github.com/eventum/eventum/blob/v%{version}/docs/wiki/System-Admin/Setting-up-email-routing-with-postfix.md>
-
-%description router-postfix -l pl.UTF-8
-Ten pakiet udostępnia metodę przekazywania notatek i listów do Eventum
-przez Postfiksa.
-
-Opis konfiguracji Postfiksa można znaleźć pod adresem
-<https://github.com/eventum/eventum/blob/v%{version}/docs/wiki/System-Admin/Setting-up-email-routing-with-postfix.md>
-
%package sphinx
Summary: Eventum Sphinx Search
Group: Applications/WWW
install -d \
$RPM_BUILD_ROOT{%{_webappdir}/{custom_field,templates,workflow},%{_sysconfdir},%{_bindir},%{_sbindir},%{_libdir}} \
$RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,logrotate.d,sysconfig} \
- $RPM_BUILD_ROOT/var/{run,lib}/%{name} \
+ $RPM_BUILD_ROOT/var/{run,lib,spool}/%{name} \
$RPM_BUILD_ROOT/var/log/{archive/,}%{name} \
$RPM_BUILD_ROOT/var/lib/%{name}/{routed_{emails,drafts,notes},storage} \
$RPM_BUILD_ROOT/var/cache/%{name}/doctrine/proxies \
localedir=%{_localedir} \
DESTDIR=$RPM_BUILD_ROOT
-ln -s %{_webappdir} $RPM_BUILD_ROOT%{_appdir}/config
+ln -s --relative $RPM_BUILD_ROOT{%{_webappdir},%{_appdir}/config}
cp -a vendor $RPM_BUILD_ROOT%{_appdir}
cp -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
-# postfix router
-install -p %{SOURCE13} $RPM_BUILD_ROOT%{_libdir}/router-postfix
-
cp -p %{SOURCE17} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
%find_lang %{name}
%{_appdir}/config
%dir %{_appdir}/bin
+%attr(755,root,root) %{_appdir}/bin/check_reminders.php
%attr(755,root,root) %{_appdir}/bin/console.php
+%attr(755,root,root) %{_appdir}/bin/download_emails.php
%attr(755,root,root) %{_appdir}/bin/export-issues.php
%attr(755,root,root) %{_appdir}/bin/extension.php
%attr(755,root,root) %{_appdir}/bin/ldapsync.php
%attr(755,root,root) %{_appdir}/bin/migrate_storage_adapter.php
+%attr(755,root,root) %{_appdir}/bin/monitor.php
%attr(755,root,root) %{_appdir}/bin/process_all_emails.php
+%attr(755,root,root) %{_appdir}/bin/process_mail_queue.php
+%attr(755,root,root) %{_appdir}/bin/truncate_mail_queue.php
%attr(755,root,root) %{_appdir}/bin/upgrade.php
%{_appdir}/autoload.php
%{_appdir}/vendor
%dir %{_appdir}/lib
%{_appdir}/lib/eventum
-%exclude %{_appdir}/src/Console/Command/MailDownloadCommand.php
-%exclude %{_appdir}/src/Console/Command/MailQueueProcessCommand.php
-%exclude %{_appdir}/src/Console/Command/MailQueueTruncateCommand.php
-%exclude %{_appdir}/src/Console/Command/MonitorCommand.php
-%exclude %{_appdir}/src/Console/Command/ReminderCheckCommand.php
%dir %{_libdir}
%dir /var/lib/%{name}
%dir %attr(730,root,http) /var/run/%{name}
+%dir %attr(730,root,http) /var/spool/%{name}
%dir %attr(730,root,http) /var/cache/%{name}
%dir %attr(730,root,http) /var/cache/%{name}/doctrine
%dir %attr(730,root,http) /var/cache/%{name}/doctrine/proxies
%files mail-queue
%defattr(644,root,root,755)
-%{_appdir}/src/Console/Command/MailQueueProcessCommand.php
-%{_appdir}/src/Console/Command/MailQueueTruncateCommand.php
-%attr(755,root,root) %{_appdir}/bin/process_mail_queue.php
-%attr(755,root,root) %{_appdir}/bin/truncate_mail_queue.php
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-queue
%files mail-download
%defattr(644,root,root,755)
-%{_appdir}/src/Console/Command/MailDownloadCommand.php
-%attr(755,root,root) %{_appdir}/bin/download_emails.php
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-download
%files reminder
%defattr(644,root,root,755)
-%{_appdir}/src/Console/Command/ReminderCheckCommand.php
-%attr(755,root,root) %{_appdir}/bin/check_reminders.php
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-reminder
%files monitor
%defattr(644,root,root,755)
-%{_appdir}/src/Console/Command/MonitorCommand.php
-%attr(755,root,root) %{_appdir}/bin/monitor.php
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-monitor
-%files router-postfix
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/router-postfix
-
%files sphinx
%defattr(644,root,root,755)
%{_webappdir}/sphinx.conf.php