]>
Commit | Line | Data |
---|---|---|
ae3b493c | 1 | # TODO: PLDify rdma-ndd init script |
c63759de JB |
2 | Summary: InfiniBand diagnostic tools |
3 | Summary(pl.UTF-8): Narzędzia diagnostyczne InfiniBand | |
4 | Name: infiniband-diags | |
07cd4a06 | 5 | Version: 1.6.7 |
28d31e0d | 6 | Release: 2 |
c63759de JB |
7 | License: BSD or GPL v2 |
8 | Group: Networking/Utilities | |
ae3b493c | 9 | Source0: https://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz |
07cd4a06 | 10 | # Source0-md5: e100bb49f4227a70e0831152b2e4d61e |
ae3b493c | 11 | URL: https://www.openfabrics.org/ |
07cd4a06 | 12 | BuildRequires: docutils |
6e7af96a | 13 | BuildRequires: glib2-devel >= 2.0 |
b6ff7f8e | 14 | BuildRequires: libibmad-devel >= 1.3.9 |
c63759de JB |
15 | BuildRequires: libibumad-devel |
16 | BuildRequires: opensm-devel | |
6e7af96a | 17 | BuildRequires: pkgconfig |
07cd4a06 JB |
18 | BuildRequires: systemd-devel |
19 | BuildRequires: udev-devel >= 1:218 | |
c63759de JB |
20 | Requires: %{name}-libs = %{version}-%{release} |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This package provides InfiniBand diagnostic programs and scripts | |
25 | needed to diagnose an IB subnet. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Ten pakiet zawiera programy i skrypty diagnostyczne InfiniBand | |
29 | potrzebne do diagnostyki podsieci IB. | |
30 | ||
31 | %package libs | |
32 | Summary: InfiniBand diagnostic library | |
33 | Summary(pl.UTF-8): Biblioteka diagnostyczna InfiniBand | |
34 | Group: Libraries | |
b6ff7f8e | 35 | Requires: libibmad >= 1.3.9 |
c63759de JB |
36 | |
37 | %description libs | |
38 | InfiniBand diagnostic library. | |
39 | ||
40 | %description libs -l pl.UTF-8 | |
41 | Biblioteka diagnostyczna InfiniBand. | |
42 | ||
43 | %package devel | |
44 | Summary: Header files for libibnetdisc library | |
45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libibnetdisc | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-libs = %{version}-%{release} | |
6e7af96a | 48 | Requires: glib2-devel >= 2.0 |
b6ff7f8e | 49 | Requires: libibmad-devel >= 1.3.9 |
c63759de JB |
50 | Requires: libibumad-devel |
51 | Requires: opensm-devel | |
52 | ||
53 | %description devel | |
54 | Header files for libibnetdisc library. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe biblioteki libibnetdisc. | |
58 | ||
59 | %package static | |
60 | Summary: Static libibnetdisc library | |
61 | Summary(pl.UTF-8): Statyczna biblioteka libibnetdisc | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | Static libibnetdisc library. | |
67 | ||
68 | %description static -l pl.UTF-8 | |
69 | Statyczna biblioteka libibnetdisc. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | %configure \ | |
76 | --with-perl-installdir=%{perl_vendorlib} | |
77 | %{__make} | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
4a847c6b | 81 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/infiniband-diags |
c63759de JB |
82 | |
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
07cd4a06 | 86 | install -D etc/rdma-ndd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/rdma-ndd |
ae3b493c | 87 | |
c63759de JB |
88 | %clean |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post libs -p /sbin/ldconfig | |
92 | %postun libs -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc COPYING ChangeLog README | |
97 | %attr(755,root,root) %{_sbindir}/check_lft_balance.pl | |
6e7af96a | 98 | %attr(755,root,root) %{_sbindir}/dump_fts |
c63759de JB |
99 | %attr(755,root,root) %{_sbindir}/dump_lfts.sh |
100 | %attr(755,root,root) %{_sbindir}/dump_mfts.sh | |
101 | %attr(755,root,root) %{_sbindir}/ibaddr | |
102 | %attr(755,root,root) %{_sbindir}/ibcacheedit | |
928bf1e5 JB |
103 | %attr(755,root,root) %{_sbindir}/ibccconfig |
104 | %attr(755,root,root) %{_sbindir}/ibccquery | |
c63759de JB |
105 | %attr(755,root,root) %{_sbindir}/ibfindnodesusing.pl |
106 | %attr(755,root,root) %{_sbindir}/ibhosts | |
107 | %attr(755,root,root) %{_sbindir}/ibidsverify.pl | |
108 | %attr(755,root,root) %{_sbindir}/iblinkinfo | |
c63759de JB |
109 | %attr(755,root,root) %{_sbindir}/ibnetdiscover |
110 | %attr(755,root,root) %{_sbindir}/ibnodes | |
111 | %attr(755,root,root) %{_sbindir}/ibping | |
112 | %attr(755,root,root) %{_sbindir}/ibportstate | |
c63759de | 113 | %attr(755,root,root) %{_sbindir}/ibqueryerrors |
c63759de JB |
114 | %attr(755,root,root) %{_sbindir}/ibroute |
115 | %attr(755,root,root) %{_sbindir}/ibrouters | |
116 | %attr(755,root,root) %{_sbindir}/ibstat | |
117 | %attr(755,root,root) %{_sbindir}/ibstatus | |
118 | %attr(755,root,root) %{_sbindir}/ibswitches | |
c63759de JB |
119 | %attr(755,root,root) %{_sbindir}/ibsysstat |
120 | %attr(755,root,root) %{_sbindir}/ibtracert | |
121 | %attr(755,root,root) %{_sbindir}/perfquery | |
ae3b493c | 122 | %attr(755,root,root) %{_sbindir}/rdma-ndd |
c63759de | 123 | %attr(755,root,root) %{_sbindir}/saquery |
c63759de JB |
124 | %attr(755,root,root) %{_sbindir}/sminfo |
125 | %attr(755,root,root) %{_sbindir}/smpdump | |
126 | %attr(755,root,root) %{_sbindir}/smpquery | |
127 | %attr(755,root,root) %{_sbindir}/vendstat | |
4a847c6b JB |
128 | %dir %{_sysconfdir}/infiniband-diags |
129 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/infiniband-diags/error_thresholds | |
e135a2d6 | 130 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/infiniband-diags/ibdiag.conf |
ae3b493c | 131 | %attr(754,root,root) /etc/rc.d/init.d/rdma-ndd |
07cd4a06 | 132 | %{systemdunitdir}/rdma-ndd.service |
c63759de JB |
133 | %{perl_vendorlib}/IBswcountlimits.pm |
134 | %{_mandir}/man8/check_lft_balance.8* | |
6e7af96a | 135 | %{_mandir}/man8/dump_fts.8* |
c63759de JB |
136 | %{_mandir}/man8/dump_lfts.8* |
137 | %{_mandir}/man8/dump_mfts.8* | |
138 | %{_mandir}/man8/ibaddr.8* | |
139 | %{_mandir}/man8/ibcacheedit.8* | |
928bf1e5 JB |
140 | %{_mandir}/man8/ibccconfig.8* |
141 | %{_mandir}/man8/ibccquery.8* | |
c63759de JB |
142 | %{_mandir}/man8/ibfindnodesusing.8* |
143 | %{_mandir}/man8/ibhosts.8* | |
144 | %{_mandir}/man8/ibidsverify.8* | |
145 | %{_mandir}/man8/iblinkinfo.8* | |
146 | %{_mandir}/man8/ibnetdiscover.8* | |
147 | %{_mandir}/man8/ibnodes.8* | |
148 | %{_mandir}/man8/ibping.8* | |
149 | %{_mandir}/man8/ibportstate.8* | |
c63759de JB |
150 | %{_mandir}/man8/ibqueryerrors.8* |
151 | %{_mandir}/man8/ibroute.8* | |
152 | %{_mandir}/man8/ibrouters.8* | |
153 | %{_mandir}/man8/ibstat.8* | |
154 | %{_mandir}/man8/ibstatus.8* | |
155 | %{_mandir}/man8/ibswitches.8* | |
c63759de JB |
156 | %{_mandir}/man8/ibsysstat.8* |
157 | %{_mandir}/man8/ibtracert.8* | |
4a847c6b | 158 | %{_mandir}/man8/infiniband-diags.8* |
c63759de | 159 | %{_mandir}/man8/perfquery.8* |
ae3b493c | 160 | %{_mandir}/man8/rdma-ndd.8* |
c63759de JB |
161 | %{_mandir}/man8/saquery.8* |
162 | %{_mandir}/man8/sminfo.8* | |
163 | %{_mandir}/man8/smpdump.8* | |
164 | %{_mandir}/man8/smpquery.8* | |
165 | %{_mandir}/man8/vendstat.8* | |
166 | ||
167 | %files libs | |
168 | %defattr(644,root,root,755) | |
169 | %attr(755,root,root) %{_libdir}/libibnetdisc.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libibnetdisc.so.5 | |
171 | ||
172 | %files devel | |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{_libdir}/libibnetdisc.so | |
175 | %{_libdir}/libibnetdisc.la | |
176 | %{_includedir}/infiniband/ibnetdisc.h | |
4a847c6b | 177 | %{_includedir}/infiniband/ibnetdisc_osd.h |
c63759de JB |
178 | %{_mandir}/man3/ibnd_*.3* |
179 | ||
180 | %files static | |
181 | %defattr(644,root,root,755) | |
182 | %{_libdir}/libibnetdisc.a |