]> git.pld-linux.org Git - packages/libiscsi.git/blob - libiscsi.spec
9c369f1b00726db9c1a2ba6225c67255b4ad5724
[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.1.0
5 Release:        1
6 License:        LGPL v2.1+ (library), GPL v2+ (tools)
7 Group:          Libraries
8 Source0:        https://github.com/downloads/sahlberg/libiscsi/%{name}-%{version}.tar.gz
9 # Source0-md5:  53d0fc75c4d0e8db9344aa2565421930
10 URL:            https://github.com/sahlberg/libiscsi
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 Libiscsi is a clientside library to implement the iSCSI protocol
15 that can be used to access resource of an iSCSI Target.
16
17 The library is fully async with regards to iSCSC commands and SCSI
18 tasks, but a sync layer is also provided for ease of use for simpler
19 applications.
20
21 %description -l pl.UTF-8
22 Libiscsi to biblioteka kliencka implementująca protokół iSCSI. Można
23 jej używać do dostępu do zasobów na celu iSCSI (iSCSI Target).
24
25 Biblioteka jest w pełni asynchroniczna względem poleceń iSCSI i zadań
26 SCSI, ale dostępna jest także warstwa synchroniczna ułatwiająca użycie
27 w prostszych zastosowaniach.
28
29 %package devel
30 Summary:        Header files for %{name} library
31 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki %{name}
32 License:        LGPL v2.1+
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 Header files for %{name} library.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki %{name}.
41
42 %package static
43 Summary:        Static %{name} library
44 Summary(pl.UTF-8):      Statyczna biblioteka %{name}
45 License:        LGPL v2.1+
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static %{name} library.
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka %{name}.
54
55 %package tools
56 Summary:        A handful of useful iSCSI utilities
57 Summary(pl.UTF-8):      Zestaw przydatnych narzędzi iSCSI
58 License:        GPL v2+
59 Group:          Applications/System
60 Requires:       %{name} = %{version}-%{release}
61
62 %description tools
63 A handful of useful iSCSI utilities, such as logging in to and
64 enumerating all targets on a portal and all devices of a target.
65
66 %description tools -l pl.UTF-8
67 Zestaw przydatnych narzędzi iSCSI, takich jak logowanie czy
68 listowanie wszystkich celów oraz urządzeń.
69
70 %prep
71 %setup -q
72
73 %build
74 %configure
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc README TODO
92 %attr(755,root,root) %{_libdir}/libiscsi.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libiscsi.so.1
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libiscsi.so
98 %{_libdir}/libiscsi.la
99 %{_includedir}/iscsi
100
101 %files static
102 %defattr(644,root,root,755)
103 %{_libdir}/libiscsi.a
104
105 %files tools
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/iscsi-inq
108 %attr(755,root,root) %{_bindir}/iscsi-ls
109 %attr(755,root,root) %{_bindir}/ld_iscsi.so
This page took 0.052803 seconds and 2 git commands to generate.