]>
Commit | Line | Data |
---|---|---|
bc958f7d | 1 | # NOTE: for versions >= 17 see rdma-core.spec |
183a51db JB |
2 | # TODO: PLDify init script |
3 | Summary: Tools for SRP/IB | |
4 | Summary(pl.UTF-8): Narzędzia do SRP/IB | |
5 | Name: srptools | |
ee42c322 | 6 | Version: 1.0.3 |
bc958f7d | 7 | Release: 1.1 |
183a51db JB |
8 | License: BSD or GPL v2 |
9 | Group: Networking/Utilities | |
ee42c322 JB |
10 | Source0: https://www.openfabrics.org/downloads/srptools/%{name}-%{version}.tar.gz |
11 | # Source0-md5: f3a463673dcf52c726eb7df2f7c391de | |
12 | URL: https://www.openfabrics.org/ | |
183a51db JB |
13 | BuildRequires: libstdc++-devel |
14 | BuildRequires: zlib-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | In conjunction with the kernel ib_srp driver, srptools allows you to | |
19 | discover and use SCSI devices via the SCSI RDMA Protocol over | |
20 | InfiniBand. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | W połączeniu ze sterownikiem jądra ib_srp, srptools pozwalają na | |
24 | wykrywanie i używanie urządzeń SCSI poprzez protokół SCSI RDMA po | |
25 | InfiniBand. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | %configure | |
32 | %{__make} | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %{__make} install \ | |
38 | DESTDIR=$RPM_BUILD_ROOT | |
39 | ||
40 | install -d $RPM_BUILD_ROOT/etc/rc.d | |
41 | %{__mv} $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/rc.d | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc COPYING ChangeLog NEWS README | |
49 | %attr(755,root,root) %{_sbindir}/srp_daemon | |
50 | %attr(755,root,root) %{_sbindir}/srp_daemon.sh | |
51 | %attr(755,root,root) %{_sbindir}/ibsrpdm | |
52 | %attr(755,root,root) %{_sbindir}/run_srp_daemon | |
53 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/srp_daemon.conf | |
54 | %attr(754,root,root) /etc/rc.d/init.d/srpd | |
55 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/srp_daemon | |
56 | #%config(noreplace) %verify(not md5 mtime size) /etc/rsyslog.d/srp_daemon.conf | |
57 | %{_mandir}/man1/ibsrpdm.1* | |
58 | %{_mandir}/man1/srp_daemon.1* |