]> git.pld-linux.org Git - packages/eventum-scm.git/commitdiff
move helpers to libdir
authorElan Ruusamäe <glen@delfi.ee>
Fri, 22 Apr 2016 21:13:16 +0000 (00:13 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 22 Apr 2016 21:13:16 +0000 (00:13 +0300)
eventum-scm.spec
paths.patch [new file with mode: 0644]

index 9e45127201fe18da58d4e7dc335ef6e310a44533..7e3c703997cc74141d88027fa2e55db14f30be1c 100644 (file)
@@ -4,12 +4,13 @@ Summary:      Eventum SCM integration
 Summary(pl.UTF-8):     Integracja SCM dla Eventum
 Name:          eventum-scm
 Version:       3.1.0
-Release:       0.4
+Release:       0.5
 License:       GPL v2+
 Group:         Networking/Utilities
 #Source0:      https://github.com/eventum/scm/archive/v%{version}/%{name}-%{version}.tar.gz
 Source0:       https://github.com/eventum/scm/archive/a44a17d/%{name}-%{version}.tar.gz
 # Source0-md5: 4e93c08549ee6b3749127fe0bdbea40a
+Patch0:                paths.patch
 URL:           https://github.com/eventum/scm
 BuildRequires: /usr/bin/php
 BuildRequires: php(core) >= %{php_min_version}
@@ -27,7 +28,7 @@ Suggests:     subversion
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     /etc/eventum
+%define                _libdir         %{_prefix}/lib
 
 %description
 This feature allows your software development teams to integrate your
@@ -53,11 +54,12 @@ Szczegóły na temat instalacji można przeczytać pod
 %prep
 %setup -qc
 mv scm-*/* .
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sbindir}
-cp -p helpers.php $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}}
+cp -p helpers.php $RPM_BUILD_ROOT%{_libdir}/eventum-scm-helpers.php
 for a in eventum-*-hook.php; do
        f=${a%.php}
        install -p $a $RPM_BUILD_ROOT%{_sbindir}/$f
@@ -71,4 +73,4 @@ rm -rf $RPM_BUILD_ROOT
 %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
+%{_libdir}/eventum-scm-helpers.php
diff --git a/paths.patch b/paths.patch
new file mode 100644 (file)
index 0000000..c13c4a8
--- /dev/null
@@ -0,0 +1,33 @@
+--- eventum-scm-3.1.0.old/eventum-cvs-hook.php 2016-04-23 00:10:10.620986912 +0300
++++ eventum-scm-3.1.0/eventum-cvs-hook.php     2016-04-23 00:06:57.000000000 +0300
+@@ -12,7 +12,7 @@
+  * that were distributed with this source code.
+  */
+-require_once __DIR__ . '/helpers.php';
++require_once '/usr/lib/eventum-scm-helpers.php';
+ $default_options = array(
+     'n' => 'cvs',
+--- eventum-scm-3.1.0.old/eventum-git-hook.php 2016-04-23 00:10:14.560929780 +0300
++++ eventum-scm-3.1.0/eventum-git-hook.php     2016-04-23 00:06:57.000000000 +0300
+@@ -12,7 +12,7 @@
+  * that were distributed with this source code.
+  */
+-require_once __DIR__ . '/helpers.php';
++require_once '/usr/lib/eventum-scm-helpers.php';
+ $default_options = array(
+     // default to $GL_REPO
+--- eventum-scm-3.1.0.old/eventum-svn-hook.php 2016-04-23 00:10:17.934214186 +0300
++++ eventum-scm-3.1.0/eventum-svn-hook.php     2016-04-23 00:06:57.000000000 +0300
+@@ -12,7 +12,7 @@
+  * that were distributed with this source code.
+  */
+-require_once __DIR__ . '/helpers.php';
++require_once '/usr/lib/eventum-scm-helpers.php';
+ $default_options = array(
+     'n' => 'svn',
This page took 0.049203 seconds and 4 git commands to generate.