[scsi-target-utils] add iser subpackage, move to 1.0.21-4
Andy Grover
grover at fedoraproject.org
Thu Nov 3 21:24:17 UTC 2011
commit 740ce726621cdc710ba134c0f87fb8deed99df67
Author: Andy Grover <agrover at redhat.com>
Date: Thu Nov 3 14:24:04 2011 -0700
add iser subpackage, move to 1.0.21-4
Signed-off-by: Andy Grover <agrover at redhat.com>
scsi-target-utils.spec | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/scsi-target-utils.spec b/scsi-target-utils.spec
index 7c43a08..5a95421 100644
--- a/scsi-target-utils.spec
+++ b/scsi-target-utils.spec
@@ -1,6 +1,6 @@
Name: scsi-target-utils
Version: 1.0.21
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: The SCSI target daemon and utility programs
Group: System Environment/Daemons
@@ -30,6 +30,16 @@ Requires: lsof sg3_utils
The SCSI target package contains the daemon and tools to setup a SCSI targets.
Currently, software iSCSI targets are supported.
+%package iser
+Summary: iSER (RDMA) support for SCSI Target
+Group: System Environment/Daemons
+Requires: libibverbs librdmacm
+
+%description iser
+
+The SCSI target iser package adds support for ISCSI
+Extensions for RDMA (ISER) to scsi-target-utils.
+
%prep
%setup -q -n fujita-tgt-1626488
@@ -40,7 +50,7 @@ Currently, software iSCSI targets are supported.
%build
%{__sed} -i -e 's|-g -O2 -Wall|%{optflags}|' Makefile
-%{__make} %{?_smp_mflags} ISCSI_RDMA=1
+%{__make} %{?_smp_mflags} ISCSI_RDMA=1 libdir=%{_libdir}/tgt
%install
@@ -63,7 +73,7 @@ Currently, software iSCSI targets are supported.
%{__install} -p -m 0600 %{SOURCE3} %{buildroot}%{_sysconfdir}/tgt
pushd usr
-%{__make} install DESTDIR=%{buildroot} sbindir=%{_sbindir}
+%{__make} install ISCSI_RDMA=1 DESTDIR=%{buildroot} sbindir=%{_sbindir} libdir=%{_libdir}/tgt
%post
@@ -99,6 +109,9 @@ fi
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/tgtd
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/tgt/targets.conf
+%files iser
+%{_libdir}/tgt/*
+
%changelog
* Wed Nov 2 2011 Andy Grover <agrover at redhat.com> - 1.0.21-3
More information about the scm-commits
mailing list