]> git.pld-linux.org Git - packages/libiscsi.git/blob - libiscsi.spec
- move library to private pkglibdir (conflicts with other libiscsi, as shipped by...
[packages/libiscsi.git] / libiscsi.spec
1 Summary:        Clientside library to implement the iSCSI protocol
2 Summary(pl.UTF-8):      Biblioteka kliencka implementująca protokół iSCSI
3 Name:           libiscsi
4 Version:        1.19.0
5 Release:        1
6 License:        LGPL v2.1+ (library), GPL v2+ (tools)
7 Group:          Libraries
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)
21
22 # libiscsi conflicts with libiscsi from open-iscsi
23 %define         pkglibdir       %{_libdir}/iscsi
24
25 %description
26 Libiscsi is a clientside library to implement the iSCSI protocol that
27 can be used to access resource of an iSCSI Target.
28
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
31 applications.
32
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).
36
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.
40
41 %package devel
42 Summary:        Header files for iSCSI library
43 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki iSCSI
44 License:        LGPL v2.1+
45 Group:          Development/Libraries
46 Requires:       %{name} = %{version}-%{release}
47
48 %description devel
49 Header files for iSCSI library.
50
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki iSCSI.
53
54 %package static
55 Summary:        Static iSCSI library
56 Summary(pl.UTF-8):      Statyczna biblioteka iSCSI
57 License:        LGPL v2.1+
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static iSCSI library.
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka iSCSI.
66
67 %package tools
68 Summary:        A handful of useful iSCSI utilities
69 Summary(pl.UTF-8):      Zestaw przydatnych narzędzi iSCSI
70 License:        GPL v2+
71 Group:          Applications/System
72 Requires:       %{name} = %{version}-%{release}
73
74 %description tools
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.
77
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ń.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %{__libtoolize}
88 %{__aclocal}
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         --libdir=%{pkglibdir} \
94         --disable-werror
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT \
102         pkgconfigdir=%{_pkgconfigdir}
103
104 %{__rm} $RPM_BUILD_ROOT%{pkglibdir}/libiscsi.la
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 # COPYING specifies some details, doesn't contain LGPL/GPL text
115 %doc COPYING README TODO
116 %dir %{pkglibdir}
117 %attr(755,root,root) %{pkglibdir}/libiscsi.so.*.*.*
118 %attr(755,root,root) %{pkglibdir}/libiscsi.so.9
119
120 %files devel
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{pkglibdir}/libiscsi.so
123 %{_includedir}/iscsi
124 %{_pkgconfigdir}/libiscsi.pc
125
126 %files static
127 %defattr(644,root,root,755)
128 %{pkglibdir}/libiscsi.a
129
130 %files tools
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*
This page took 0.078389 seconds and 3 git commands to generate.