137 lines
3.7 KiB
RPMSpec
137 lines
3.7 KiB
RPMSpec
Name: libiscsi
|
|
Summary: iSCSI client library
|
|
Version: 1.6.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
|
|
BuildRequires: popt-devel
|
|
|
|
%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
|
|
|
|
%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
|
|
|
|
%changelog
|
|
* 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
|