diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-15 20:33:06 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-15 20:33:06 +0530 |
commit | ff8c74670559f153b3f084fd67bba0eb03b07e7c (patch) | |
tree | abafb0df79b5e56406ef39a67ea0d3ab7efbd815 | |
parent | d7775f350c3c96dcf5c2eea7097cd42e980eb4f2 (diff) |
build: update dependency list
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | gluster-block.spec.in | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2285c29..9644f7f 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,17 @@ AC_CHECK_LIB([pthread], [pthread_mutex_init],[PTHREAD="-lpthread"], AC_MSG_ERROR([Posix threads library is required to build gluster-block])) AC_SUBST(PTHREAD) +AC_CHECK_PROG(TCMURUNNER, tcmu-runner, yes, no) +if test "x$TCMURUNNER" = "xno"; then + AC_MSG_ERROR([tcmu-runner not found; try again after installing]) +fi + +# FIXME: version check, need atleast 'targetcli-2.1.fb43' +AC_CHECK_PROG(TARGETCLI, targetcli, yes, no) +if test "x$TARGETCLI" = "xno"; then + AC_MSG_ERROR([targetcli not found; try again after installing]) +fi + # Dirty hacky stuff to make STATEDIR work if test "x$prefix" = xNONE; then test $localstatedir = '${prefix}/var' && localstatedir=$ac_default_prefix/var diff --git a/gluster-block.spec.in b/gluster-block.spec.in index c634d29..352cce8 100644 --- a/gluster-block.spec.in +++ b/gluster-block.spec.in @@ -6,8 +6,12 @@ Vendor: Gluster Community Release: @PACKAGE_RELEASE@ License: GPLv2 or LGPLv3+ Group: System Environment/Base +BuildRequires: tcmu-runner >= 1.0.4 +BuildRequires: targetcli >= 2.1.fb43 BuildRequires: glusterfs-api-devel >= 3.6.0 BuildRequires: help2man >= 1.36 +Requires: tcmu-runner >= 1.0.4 +Requires: targetcli >= 2.1.fb43 Requires: glusterfs-api >= 3.6.0 %if ( 0%{?_with_systemd:1} ) BuildRequires: systemd |