116 lines
2.8 KiB
RPMSpec
116 lines
2.8 KiB
RPMSpec
Name: libiscsi
|
|
Summary: iSCSI client library
|
|
Version: 1.4.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
|
|
* 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
|