[packages/eventum-scm: 3/5] move helpers to libdir
glen
glen at pld-linux.org
Thu Apr 28 19:34:22 CEST 2016
commit 059577b2cddfee9363471d5a138f2a88b2ae5e76
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Apr 23 00:13:16 2016 +0300
move helpers to libdir
eventum-scm.spec | 12 +++++++-----
paths.patch | 33 +++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 5 deletions(-)
---
diff --git a/eventum-scm.spec b/eventum-scm.spec
index 9e45127..7e3c703 100644
--- a/eventum-scm.spec
+++ b/eventum-scm.spec
@@ -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
index 0000000..c13c4a8
--- /dev/null
+++ b/paths.patch
@@ -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',
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eventum-scm.git/commitdiff/c9bfd5280e8ed5924ece0d3a27dffd0adb81661a
More information about the pld-cvs-commit
mailing list