// save name of this script
$PROGRAM = basename(realpath(array_shift($argv)), '.php');
+--- eventum-3.0.0-pre1/scm/eventum-git-hook.php~ 2014-11-30 13:48:18.000000000 +0200
++++ eventum-3.0.0-pre1/scm/eventum-git-hook.php 2015-04-08 16:37:51.434314140 +0300
+@@ -34,9 +34,7 @@
+ // TODO: use $GL_REPO
+ $scm_name = 'git';
+
+-//
+-// DO NOT CHANGE ANYTHING AFTER THIS LINE
+-//
++require_once '/etc/eventum/scm.php';
+
+ // save name of this script
+ $PROGRAM = basename(realpath(array_shift($argv)), '.php');
%bcond_with order # with experimental order patch
%define subver pre1
-%define rel 0.12
+%define rel 0.14
%define php_min_version 5.3.3
%include /usr/lib/rpm/macros.php
Summary: Eventum Issue / Bug tracking system
Group: Applications/WWW
Requires: php(core) >= %{php_min_version}
Requires: php(pcre)
+Requires: php(spl)
+Suggests: cvs
+Suggests: git-core
Suggests: php(openssl)
+Suggests: subversion
%description scm
This feature allows your software development teams to integrate your
DESTDIR=$RPM_BUILD_ROOT
cp -p scm/helpers.php $RPM_BUILD_ROOT%{_sbindir}
+install -p scm/eventum-git-hook.php $RPM_BUILD_ROOT%{_sbindir}/eventum-git-hook
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%attr(751,root,root) %dir %{_sysconfdir}
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scm.php
%attr(755,root,root) %{_sbindir}/eventum-cvs-hook
+%attr(755,root,root) %{_sbindir}/eventum-git-hook
%attr(755,root,root) %{_sbindir}/eventum-svn-hook
%attr(755,root,root) %{_sbindir}/helpers.php