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
16 BuildRequires: libgcrypt-devel
17 BuildRequires: libibverbs-devel
18 BuildRequires: librdmacm-devel
19 BuildRequires: libtool >= 2:2
20 BuildRequires: popt-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Libiscsi is a clientside library to implement the iSCSI protocol that
25 can be used to access resource of an iSCSI Target.
27 The library is fully async with regards to iSCSC commands and SCSI
28 tasks, but a sync layer is also provided for ease of use for simpler
31 %description -l pl.UTF-8
32 Libiscsi to biblioteka kliencka implementująca protokół iSCSI. Można
33 jej używać do dostępu do zasobów na celu iSCSI (iSCSI Target).
35 Biblioteka jest w pełni asynchroniczna względem poleceń iSCSI i zadań
36 SCSI, ale dostępna jest także warstwa synchroniczna ułatwiająca użycie
37 w prostszych zastosowaniach.
40 Summary: Header files for iSCSI library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki iSCSI
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files for iSCSI library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki iSCSI.
53 Summary: Static iSCSI library
54 Summary(pl.UTF-8): Statyczna biblioteka iSCSI
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
62 %description static -l pl.UTF-8
63 Statyczna biblioteka iSCSI.
66 Summary: A handful of useful iSCSI utilities
67 Summary(pl.UTF-8): Zestaw przydatnych narzędzi iSCSI
69 Group: Applications/System
70 Requires: %{name} = %{version}-%{release}
73 A handful of useful iSCSI utilities, such as logging in to and
74 enumerating all targets on a portal and all devices of a target.
76 %description tools -l pl.UTF-8
77 Zestaw przydatnych narzędzi iSCSI, takich jak logowanie czy listowanie
78 wszystkich celów oraz urządzeń.
91 CFLAGS="%{rpmcflags} -fcommon" \
98 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
103 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libiscsi.la
106 rm -rf $RPM_BUILD_ROOT
108 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
112 %defattr(644,root,root,755)
113 # COPYING specifies some details, doesn't contain LGPL/GPL text
114 %doc COPYING README TODO
115 %attr(755,root,root) %{_libdir}/libiscsi.so.*.*.*
116 %attr(755,root,root) %ghost %{_libdir}/libiscsi.so.9
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libiscsi.so
122 %{_pkgconfigdir}/libiscsi.pc
125 %defattr(644,root,root,755)
126 %{_libdir}/libiscsi.a
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_bindir}/iscsi-inq
131 %attr(755,root,root) %{_bindir}/iscsi-ls
132 %attr(755,root,root) %{_bindir}/iscsi-perf
133 %attr(755,root,root) %{_bindir}/iscsi-readcapacity16
134 %attr(755,root,root) %{_bindir}/iscsi-swp
135 %attr(755,root,root) %{_bindir}/iscsi-test-cu
136 %attr(755,root,root) %{_bindir}/ld_iscsi.so
137 %{_mandir}/man1/iscsi-inq.1*
138 %{_mandir}/man1/iscsi-ls.1*
139 %{_mandir}/man1/iscsi-swp.1*
140 %{_mandir}/man1/iscsi-test-cu.1*