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