]> git.pld-linux.org Git - packages/libiscsi.git/blob - libiscsi.spec
- iscsi-test-cu BRs CUnit, explicitly build iscsi-test-cu and man pages
[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:  CUnit
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)
22
23 %description
24 Libiscsi is a clientside library to implement the iSCSI protocol that
25 can be used to access resource of an iSCSI Target.
26
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
29 applications.
30
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).
34
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.
38
39 %package devel
40 Summary:        Header files for iSCSI library
41 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki iSCSI
42 License:        LGPL v2.1+
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45
46 %description devel
47 Header files for iSCSI library.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki iSCSI.
51
52 %package static
53 Summary:        Static iSCSI library
54 Summary(pl.UTF-8):      Statyczna biblioteka iSCSI
55 License:        LGPL v2.1+
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static iSCSI library.
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka iSCSI.
64
65 %package tools
66 Summary:        A handful of useful iSCSI utilities
67 Summary(pl.UTF-8):      Zestaw przydatnych narzędzi iSCSI
68 License:        GPL v2+
69 Group:          Applications/System
70 Requires:       %{name} = %{version}-%{release}
71
72 %description tools
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.
75
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ń.
79
80 %prep
81 %setup -q
82 %patch0 -p1
83
84 %build
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91         CFLAGS="%{rpmcflags} -fcommon" \
92         --enable-man-pages \
93         --enable-test-tool \
94         --disable-werror
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libiscsi.la
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post   -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
110
111 %files
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
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libiscsi.so
121 %{_includedir}/iscsi
122 %{_pkgconfigdir}/libiscsi.pc
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libiscsi.a
127
128 %files tools
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*
This page took 0.140901 seconds and 4 git commands to generate.