Files
libiscsi/packaging/RPM/libiscsi.spec.in
2013-04-21 10:25:30 -07:00

166 lines
5.0 KiB
RPMSpec

Name: libiscsi
Summary: iSCSI client library
Version: 1.9.0
Release: 1GITHASH%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: https://github.com/sahlberg/libiscsi
Source: libiscsi-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%description
libiscsi is a library for attaching to iSCSI resources across
a network.
#######################################################################
%prep
%setup -q
# setup the init script and sysconfig file
%setup -T -D -n libiscsi-%{version} -q
%build
CC="gcc"
export CC
## always run autogen.sh
./autogen.sh
%configure
make %{?_smp_mflags}
%install
# Clean up in case there is trash left from a previous build
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install %{?_smp_mflags}
rm $RPM_BUILD_ROOT/%{_libdir}/libiscsi.a
rm $RPM_BUILD_ROOT/%{_libdir}/libiscsi.la
# Remove "*.old" files
find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING LICENCE-LGPL-2.1.txt README TODO
%{_libdir}/libiscsi.so.*
%package utils
Summary: iSCSI Client Utilities
Group: Applications/System
%description utils
The libiscsi-utils package provides a set of assorted utilities to connect
to iSCSI servers without having to set up the Linux iSCSI initiator.
%files utils
%doc COPYING LICENCE-GPL-2.txt LICENCE-LGPL-2.1.txt README TODO
%{_bindir}/ld_iscsi.so
%{_bindir}/iscsi-ls
%{_bindir}/iscsi-inq
%{_bindir}/iscsi-readcapacity16
%{_mandir}/man1/iscsi-inq.1.gz
%{_mandir}/man1/iscsi-ls.1.gz
%package devel
Summary: iSCSI client development libraries
Group: Development/Libraries
Requires: libiscsi = %{version}-%{release}
%description devel
The libiscsi-devel package includes the header files for libiscsi.
%files devel
%defattr(-,root,root)
%doc COPYING LICENCE-LGPL-2.1.txt README TODO
%{_includedir}/iscsi/iscsi.h
%{_includedir}/iscsi/scsi-lowlevel.h
%{_libdir}/libiscsi.so
%{_libdir}/pkgconfig/libiscsi.pc
%changelog
* Sun Feb 24 2013 : 1.9.0
- Add new CUnit based test tool: iscsi-test-cu to replace iscsi-test
- Add tests for persistent reservation
- Autotools updates
- Add pkgconfig
* Sat Jan 5 2013 : 1.8.0
- Add new debugging/logging subsystem.
- Collapse related structures into one and reduce amount of calls to malloc()/free()
- Add more functions to ld-iscsi so that we can write to luns too.
- Start adding unmarshalling of CDBs
- Add support for using iovectors for both reading and writing. When used this eliminates any data copy in libiscsi.
- Fix a deadlock between CMDSN and DATA-OUT PDUs.
- Redo how we handle FirstBurstLength/MaxRecvDataSegmentLength/ImmediateData/InitialR2T.
- Add a new nice API for handling sending NOPs from the application.
- Add tests for PersistentReservations.
* Tue Nov 6 2012 : 1.7.0
- Lots of additional tests.
- ld_iscsi updates and bugfixes.
- Fix a protocol bug where we might send > FirstBurstLength amount of data
as unsolicited data.
- Tcp keepalive improvements.
- Debugging framework.
- Add support for redirection.
- Fix reconnect bug where we would incorrectly re-queue DATA-OUT PDUs after reconnecting.
- Add a new iscsi-readcapacity16 command.
- Squelch a huge number of compiler warnings.
* Mon Sep 3 2012 : 1.6.0
- Lots of test updates.
- Fix for iscsi-ls for removable media/medium not present
- Allow login to LUNs with no medium loaded
- Update SG3-UTILS patch
- Support > 255 LUNs
- Fix DATASN handling
- Add proper MAXCMDSN handling
- Various fixes to be able to interoperate with LIO
- Fix SEGV bug in the CONNECT code.
- Add libiscsi.syms to only export public symbols from the library
- Change all default iqn names so they are valid iqn names.
* Mon Jul 9 2012 : 1.5.0
- Make sure we can handle racy eventsystems which might call us for
POLLIN eventhough there is no longer any data to read from the socket.
- Only set up tcp keepalives on systems that support them.
- Only export symbols we really want to make public
- FreeBSD and Illumos does not define SOL_TCP
- Lots of updates to the test tool
- Fix a bug related to header-digest that could make the login fail
on targets that require header digest.
* Thu May 3 2012 : 1.4.0
- Add WRITESAME10/16 and tests for them
- Add READ/WRITE12/16 and tests for them
- Add PREFETCH10/16 and tests for them
- Add automatic reconnect. If being logged in to a target
and the tcp session is torn down, then try to reconnect
and re-drive the i/o in flight.
* Mon Apr 23 2012 : 1.3.0
- Add READCAPACITY16 support
- Add VPD pages for thin-provisioning
- Add support for UNMAP command for thin provisioning
- Add tests for RC16 and UNMAP
* Wed Mar 7 2012 : 1.2.0
- rename library back to libiscsi and release it as 1.2.0
* Sun Dec 25 2011 : 1.1.0
- Fix TaskManagement AbortTask/AbortTaskSet to send to correct LUN
* Fri Oct 28 2011 Paolo Bonzini <pbonzini@redhat.com> - 1.0.0-2
- Fixed rpmlint problems
* Sat Dec 4 2010 Ronnie Sahlberg <ronniesahlberg@gmail.com> - 1.0.0-1
- Initial version