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 - 1.0.21-3