1 Summary: Clientside library to implement the iSCSI protocol
2 Summary(pl.UTF-8): Biblioteka kliencka implementująca protokół iSCSI
6 License: LGPL v2.1+ (library), GPL v2+ (tools)
8 #Source0Download: https://github.com/sahlberg/libiscsi/releases
9 Source0: https://github.com/sahlberg/libiscsi/archive/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: fe0c0c7b677f3b6fbe535e758838ccf2
11 Patch0: %{name}-link.patch
12 URL: https://github.com/sahlberg/libiscsi
13 BuildRequires: autoconf >= 2.50
14 BuildRequires: automake
15 BuildRequires: libgcrypt-devel
16 BuildRequires: libibverbs-devel
17 BuildRequires: librdmacm-devel
18 BuildRequires: libtool >= 2:2
19 BuildRequires: popt-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 # libiscsi conflicts with libiscsi from open-iscsi
23 %define pkglibdir %{_libdir}/iscsi
26 Libiscsi is a clientside library to implement the iSCSI protocol that
27 can be used to access resource of an iSCSI Target.
29 The library is fully async with regards to iSCSC commands and SCSI
30 tasks, but a sync layer is also provided for ease of use for simpler
33 %description -l pl.UTF-8
34 Libiscsi to biblioteka kliencka implementująca protokół iSCSI. Można
35 jej używać do dostępu do zasobów na celu iSCSI (iSCSI Target).
37 Biblioteka jest w pełni asynchroniczna względem poleceń iSCSI i zadań
38 SCSI, ale dostępna jest także warstwa synchroniczna ułatwiająca użycie
39 w prostszych zastosowaniach.
42 Summary: Header files for iSCSI library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki iSCSI
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
49 Header files for iSCSI library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki iSCSI.
55 Summary: Static iSCSI library
56 Summary(pl.UTF-8): Statyczna biblioteka iSCSI
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
64 %description static -l pl.UTF-8
65 Statyczna biblioteka iSCSI.
68 Summary: A handful of useful iSCSI utilities
69 Summary(pl.UTF-8): Zestaw przydatnych narzędzi iSCSI
71 Group: Applications/System
72 Requires: %{name} = %{version}-%{release}
75 A handful of useful iSCSI utilities, such as logging in to and
76 enumerating all targets on a portal and all devices of a target.
78 %description tools -l pl.UTF-8
79 Zestaw przydatnych narzędzi iSCSI, takich jak logowanie czy listowanie
80 wszystkich celów oraz urządzeń.
93 --libdir=%{pkglibdir} \
98 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT \
102 pkgconfigdir=%{_pkgconfigdir}
104 %{__rm} $RPM_BUILD_ROOT%{pkglibdir}/libiscsi.la
107 rm -rf $RPM_BUILD_ROOT
109 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
113 %defattr(644,root,root,755)
114 # COPYING specifies some details, doesn't contain LGPL/GPL text
115 %doc COPYING README TODO
117 %attr(755,root,root) %{pkglibdir}/libiscsi.so.*.*.*
118 %attr(755,root,root) %{pkglibdir}/libiscsi.so.9
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{pkglibdir}/libiscsi.so
124 %{_pkgconfigdir}/libiscsi.pc
127 %defattr(644,root,root,755)
128 %{pkglibdir}/libiscsi.a
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_bindir}/iscsi-inq
133 %attr(755,root,root) %{_bindir}/iscsi-ls
134 %attr(755,root,root) %{_bindir}/iscsi-perf
135 %attr(755,root,root) %{_bindir}/iscsi-readcapacity16
136 %attr(755,root,root) %{_bindir}/iscsi-swp
137 %attr(755,root,root) %{_bindir}/iscsi-test-cu
138 %attr(755,root,root) %{_bindir}/ld_iscsi.so
139 %{_mandir}/man1/iscsi-inq.1*
140 %{_mandir}/man1/iscsi-ls.1*
141 %{_mandir}/man1/iscsi-swp.1*
142 %{_mandir}/man1/iscsi-test-cu.1*