# Conditional build:
%bcond_with order # with experimental order patch
-%define rel 4
-%define subver 428
-%define githash c34ef48d
+%define rel 8
+%define subver 436
+%define githash 2c1520b6
%define php_min_version 5.6.0
Summary: Eventum Issue / Bug tracking system
Summary(pl.UTF-8): Eventum - system śledzenia spraw/błędów
Group: Applications/WWW
#Source0: https://github.com/eventum/eventum/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source0: https://github.com/eventum/eventum/releases/download/snapshot/%{name}-%{version}-%{subver}-g%{githash}.tar.gz
-# Source0-md5: b503982fcbeb70c7af54c76a11171378
+# Source0-md5: 16faa7d710b71bb9d362568bbab7a664
Source1: %{name}-apache.conf
Source2: %{name}-mail-queue.cron
Source3: %{name}-mail-download.cron
BuildRequires: gettext-tools
BuildRequires: rpmbuild(macros) >= 1.654
BuildRequires: sed >= 4.0
+Requires(post): sudo
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
Requires(pre): /bin/id
# run database update if configured
test -s %{_webappdir}/config.php && \
-runuser -u http -- %{_appdir}/bin/upgrade.php || :
+sudo -H -u http -- %{_appdir}/bin/upgrade.php || :
# nuke Smarty templates cache after upgrade
rm -f /var/cache/eventum/*.php