]> git.pld-linux.org Git - packages/eventum.git/commitdiff
install git hook
authorElan Ruusamäe <glen@delfi.ee>
Wed, 8 Apr 2015 13:45:23 +0000 (16:45 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 8 Apr 2015 13:45:23 +0000 (16:45 +0300)
eventum-cvs-config.patch
eventum.spec

index 610409cf1e43d2c52da112a61769dc00791b7a2f..4cdd567c2ac21af207e0206c3a1ae697cb1dd53c 100644 (file)
  
  // 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');
index b821d64aeb0cc407b99a0a26dbc12dedbf64e435..20217ec01511ab0b24fb69a78940e00f109e6151 100644 (file)
@@ -6,7 +6,7 @@
 %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
@@ -412,7 +412,11 @@ Summary(pl.UTF-8): Integracja SCM dla Eventum
 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
@@ -515,6 +519,7 @@ install -d \
        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}
@@ -772,6 +777,7 @@ done
 %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
 
This page took 0.06081 seconds and 4 git commands to generate.