|
|
a9f19d |
Name: libiscsi
|
|
|
a9f19d |
Summary: iSCSI client library
|
|
|
a9f19d |
Version: 1.18.0
|
|
|
a9f19d |
Release: 7%{?dist}
|
|
|
a9f19d |
License: LGPLv2+
|
|
|
a9f19d |
URL: https://github.com/sahlberg/%{name}
|
|
|
a9f19d |
|
|
|
a9f19d |
Source: https://github.com/sahlberg/%{name}/archive/%{version}.tar.gz
|
|
|
a9f19d |
Patch1: disable-ld_iscsi.patch
|
|
|
a9f19d |
Patch2: fix-gcc7-warnings.patch
|
|
|
a9f19d |
Patch3: fix-32bit-build.patch
|
|
|
a9f19d |
Patch4: container_of.patch
|
|
|
a9f19d |
# For bz#1634541 - Fix important coverity issues (libiscsi)
|
|
|
a9f19d |
Patch5: libiscsi-iser_rcv_completion-unify-error-handling.patch
|
|
|
a9f19d |
# For bz#1634541 - Fix important coverity issues (libiscsi)
|
|
|
a9f19d |
Patch6: libiscsi-iser-fix-posting-of-receive-descriptors.patch
|
|
|
a9f19d |
# For bz#1634541 - Fix important coverity issues (libiscsi)
|
|
|
a9f19d |
Patch7: libiscsi-sync-remove-unnecessary-checks.patch
|
|
|
a9f19d |
# For bz#1634541 - Fix important coverity issues (libiscsi)
|
|
|
a9f19d |
Patch8: libiscsi-do-not-warn-for-strncpy.patch
|
|
|
a9f19d |
# For bz#1634541 - Fix important coverity issues (libiscsi)
|
|
|
a9f19d |
Patch9: libiscsi-avoid-fallthrough.patch
|
|
|
a9f19d |
# For bz#1634541 - Fix important coverity issues (libiscsi)
|
|
|
a9f19d |
Patch10: libiscsi-avoid-truncation-when-logging-message-that-includes-.patch
|
|
|
a9f19d |
# For bz#1597942 - Qemu-kvm fails to connect to iscsi LUN by IPV6 address
|
|
|
a9f19d |
Patch11: libiscsi-fix-connection-to-LUN-with-IPv6-address.patch
|
|
|
a9f19d |
|
|
|
a9f19d |
BuildRequires: autoconf
|
|
|
a9f19d |
BuildRequires: automake
|
|
|
a9f19d |
BuildRequires: libtool
|
|
|
a9f19d |
BuildRequires: popt-devel
|
|
|
a9f19d |
BuildRequires: CUnit-devel
|
|
|
a9f19d |
BuildRequires: libgcrypt-devel
|
|
|
a9f19d |
BuildRequires: rdma-core-devel
|
|
|
a9f19d |
|
|
|
a9f19d |
%description
|
|
|
a9f19d |
libiscsi is a library for attaching to iSCSI resources across
|
|
|
a9f19d |
a network.
|
|
|
a9f19d |
|
|
|
a9f19d |
|
|
|
a9f19d |
#######################################################################
|
|
|
a9f19d |
|
|
|
a9f19d |
# Conflict with iscsi-initiator-utils.
|
|
|
a9f19d |
|
|
|
a9f19d |
%global libiscsi_includedir %{_includedir}/iscsi
|
|
|
a9f19d |
%global libiscsi_libdir %{_libdir}/iscsi
|
|
|
a9f19d |
|
|
|
a9f19d |
%prep
|
|
|
a9f19d |
%setup -q
|
|
|
a9f19d |
%autopatch -p1
|
|
|
a9f19d |
|
|
|
a9f19d |
%build
|
|
|
a9f19d |
sh autogen.sh
|
|
|
a9f19d |
%configure --libdir=%{libiscsi_libdir}
|
|
|
a9f19d |
make %{?_smp_mflags}
|
|
|
a9f19d |
|
|
|
a9f19d |
%install
|
|
|
a9f19d |
make DESTDIR=$RPM_BUILD_ROOT install pkgconfigdir=%{_libdir}/pkgconfig %{?_smp_mflags}
|
|
|
a9f19d |
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
|
|
a9f19d |
echo %{libiscsi_libdir} > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
a9f19d |
rm $RPM_BUILD_ROOT/%{libiscsi_libdir}/libiscsi.a
|
|
|
a9f19d |
rm $RPM_BUILD_ROOT/%{libiscsi_libdir}/libiscsi.la
|
|
|
a9f19d |
|
|
|
a9f19d |
# Remove "*.old" files
|
|
|
a9f19d |
find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
|
|
|
a9f19d |
|
|
|
a9f19d |
%post -p /sbin/ldconfig
|
|
|
a9f19d |
|
|
|
a9f19d |
%postun -p /sbin/ldconfig
|
|
|
a9f19d |
|
|
|
a9f19d |
%files
|
|
|
a9f19d |
%license COPYING LICENCE-LGPL-2.1.txt
|
|
|
a9f19d |
%doc README TODO
|
|
|
a9f19d |
%dir %{libiscsi_libdir}
|
|
|
a9f19d |
%{libiscsi_libdir}/libiscsi.so.*
|
|
|
a9f19d |
%config /etc/ld.so.conf.d/*
|
|
|
a9f19d |
|
|
|
a9f19d |
%package utils
|
|
|
a9f19d |
Summary: iSCSI Client Utilities
|
|
|
a9f19d |
License: GPLv2+
|
|
|
a9f19d |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a9f19d |
|
|
|
a9f19d |
%description utils
|
|
|
a9f19d |
The libiscsi-utils package provides a set of assorted utilities to connect
|
|
|
a9f19d |
to iSCSI servers without having to set up the Linux iSCSI initiator.
|
|
|
a9f19d |
|
|
|
a9f19d |
%files utils
|
|
|
a9f19d |
%license LICENCE-GPL-2.txt
|
|
|
a9f19d |
%{_bindir}/iscsi-ls
|
|
|
a9f19d |
%{_bindir}/iscsi-inq
|
|
|
a9f19d |
%{_bindir}/iscsi-readcapacity16
|
|
|
a9f19d |
%{_bindir}/iscsi-swp
|
|
|
a9f19d |
%{_bindir}/iscsi-perf
|
|
|
a9f19d |
%{_bindir}/iscsi-test-cu
|
|
|
a9f19d |
%{_mandir}/man1/iscsi-ls.1.gz
|
|
|
a9f19d |
%{_mandir}/man1/iscsi-inq.1.gz
|
|
|
a9f19d |
%{_mandir}/man1/iscsi-swp.1.gz
|
|
|
a9f19d |
%{_mandir}/man1/iscsi-test-cu.1.gz
|
|
|
a9f19d |
|
|
|
a9f19d |
%package devel
|
|
|
a9f19d |
Summary: iSCSI client development libraries
|
|
|
a9f19d |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a9f19d |
|
|
|
a9f19d |
%description devel
|
|
|
a9f19d |
The libiscsi-devel package includes the header files for libiscsi.
|
|
|
a9f19d |
|
|
|
a9f19d |
%files devel
|
|
|
a9f19d |
%dir %{libiscsi_includedir}
|
|
|
a9f19d |
%{libiscsi_includedir}/iscsi.h
|
|
|
a9f19d |
%{libiscsi_includedir}/scsi-lowlevel.h
|
|
|
a9f19d |
%{libiscsi_libdir}/libiscsi.so
|
|
|
a9f19d |
%{_libdir}/pkgconfig/libiscsi.pc
|
|
|
a9f19d |
|
|
|
a9f19d |
%changelog
|
|
|
a9f19d |
* Thu Apr 11 2019 Danilo Cesar Lemes de Paula <ddepaula@redhat.com> - 1.18.0-7.el8
|
|
|
a9f19d |
- libiscsi-redhat-Remove-disable-werror-from-spec-file.patch [bz#1581025]
|
|
|
a9f19d |
- Resolves: bz#1581025
|
|
|
a9f19d |
(Remove --disable-werror from spec file)
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri Dec 14 2018 Danilo Cesar Lemes de Paula <ddepaula@redhat.com> -
|
|
|
a9f19d |
- libiscsi-fix-connection-to-LUN-with-IPv6-address.patch [bz#1597942]
|
|
|
a9f19d |
- Resolves: bz#1597942
|
|
|
a9f19d |
(Qemu-kvm fails to connect to iscsi LUN by IPV6 address)
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri Oct 12 2018 Danilo Cesar Lemes de Paula <ddepaula@redhat.com> - 1.18.0-5.el8
|
|
|
a9f19d |
- libiscsi-iser_rcv_completion-unify-error-handling.patch [bz#1634541]
|
|
|
a9f19d |
- libiscsi-iser-fix-posting-of-receive-descriptors.patch [bz#1634541]
|
|
|
a9f19d |
- libiscsi-sync-remove-unnecessary-checks.patch [bz#1634541]
|
|
|
a9f19d |
- libiscsi-do-not-warn-for-strncpy.patch [bz#1634541]
|
|
|
a9f19d |
- libiscsi-avoid-fallthrough.patch [bz#1634541]
|
|
|
a9f19d |
- libiscsi-avoid-truncation-when-logging-message-that-includes-.patch [bz#1634541]
|
|
|
a9f19d |
- Resolves: bz#1634541
|
|
|
a9f19d |
(Fix important coverity issues (libiscsi))
|
|
|
a9f19d |
|
|
|
a9f19d |
|
|
|
a9f19d |
* Mon May 21 2018 Danilo Cesar Lemes de Paula <ddepaula@redhat.com> - 1.18.0-4.el8
|
|
|
a9f19d |
- Fixed a build issue with the latest rdma-core
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri Mar 23 2018 Cole Robinson <crobinso@redhat.com> - 1.18.0-2
|
|
|
a9f19d |
- Fix rdma deps and don't restrict archs
|
|
|
a9f19d |
- Add --disable-werror to fix gcc8 build (bz #1556044)
|
|
|
a9f19d |
- Spec file cleanups (bz #1483290)
|
|
|
a9f19d |
|
|
|
a9f19d |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-2
|
|
|
a9f19d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a9f19d |
|
|
|
a9f19d |
* Tue Oct 03 2017 Paolo Bonzini <pbonzini@redhat.com> - 1.18.0-1
|
|
|
a9f19d |
- Rebased to version 1.18.0
|
|
|
a9f19d |
- Added patch to fix gcc7 warnings
|
|
|
a9f19d |
|
|
|
a9f19d |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-5
|
|
|
a9f19d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
a9f19d |
|
|
|
a9f19d |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-4
|
|
|
a9f19d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-3
|
|
|
a9f19d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a9f19d |
|
|
|
a9f19d |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
|
|
a9f19d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri Jun 26 2015 Neal Gompa <ngompa13@gmail.com> - 1.15.0-1
|
|
|
a9f19d |
- Rebased to version 1.15.0
|
|
|
a9f19d |
- Removed patch 20 as it has been upstreamed
|
|
|
a9f19d |
- Disabled patch 12 as need for revised one is in question
|
|
|
a9f19d |
- Updated patch 13 to current tree
|
|
|
a9f19d |
- New tool iscsi-perf
|
|
|
a9f19d |
|
|
|
a9f19d |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.0-3
|
|
|
a9f19d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a9f19d |
|
|
|
a9f19d |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.0-2
|
|
|
a9f19d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
a9f19d |
|
|
|
a9f19d |
* Thu Jun 12 2014 Paolo Bonzini <pbonzini@redhat.com> - 1.11.0-1
|
|
|
a9f19d |
- Rebased to version 1.11.0
|
|
|
a9f19d |
- Most patches removed
|
|
|
a9f19d |
- New tool iscsi-swp + manpages
|
|
|
a9f19d |
|
|
|
a9f19d |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-6
|
|
|
a9f19d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
a9f19d |
|
|
|
a9f19d |
* Wed Apr 23 2014 Tomáš Mráz <tmraz@redhat.com> - 1.9.0-5
|
|
|
a9f19d |
- Rebuild for new libgcrypt
|
|
|
a9f19d |
|
|
|
a9f19d |
* Mon Aug 26 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.9.0-4
|
|
|
a9f19d |
- Cleaned up patches 18/19 to match upstream more closely
|
|
|
a9f19d |
|
|
|
a9f19d |
* Mon Aug 26 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.9.0-3
|
|
|
a9f19d |
- Improved patch 18 to cover write side too
|
|
|
a9f19d |
|
|
|
a9f19d |
* Mon Aug 26 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.9.0-2
|
|
|
a9f19d |
- Add patch 18 to fix QEMU's scsi-generic mode
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri Aug 2 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.9.0-1
|
|
|
a9f19d |
- Rebase to 1.9.0
|
|
|
a9f19d |
- Cherry-pick selected patches from upstream
|
|
|
a9f19d |
|
|
|
a9f19d |
* Mon Jul 1 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.0-6
|
|
|
a9f19d |
- Add patch 5 to silence strict aliasing warnings
|
|
|
a9f19d |
|
|
|
a9f19d |
* Wed Jun 26 2013 Andy Grover <agrover@redhat.com> - 1.7.0-5
|
|
|
a9f19d |
- Add patch 4 to enable installing of iscsi-test binary
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri May 3 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.0-4
|
|
|
a9f19d |
- Add patch 2 for FIPS mode
|
|
|
a9f19d |
- Add patch 3 to avoid segmentation fault on iscsi-tools
|
|
|
a9f19d |
|
|
|
a9f19d |
* Thu Mar 7 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.0-3
|
|
|
a9f19d |
- Correct license for libiscsi-utils, prefer %%global to %%define
|
|
|
a9f19d |
- Add Requires
|
|
|
a9f19d |
- Remove percent-clean section
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri Feb 22 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.0-2
|
|
|
a9f19d |
- Use percent-config for ld.so.conf.d file.
|
|
|
a9f19d |
|
|
|
a9f19d |
* Fri Feb 22 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.0-1
|
|
|
a9f19d |
- Initial version (bug 914752)
|