]>
Commit | Line | Data |
---|---|---|
2f802042 | 1 | # NOTE: for versions > 2.1.0 see rdma-core.spec |
c63759de JB |
2 | Summary: InfiniBand diagnostic tools |
3 | Summary(pl.UTF-8): Narzędzia diagnostyczne InfiniBand | |
4 | Name: infiniband-diags | |
b7d156a4 | 5 | Version: 2.1.0 |
2f802042 | 6 | Release: 2.1 |
c63759de JB |
7 | License: BSD or GPL v2 |
8 | Group: Networking/Utilities | |
b7d156a4 JB |
9 | #Source0Download: https://github.com/linux-rdma/infiniband-diags/releases |
10 | Source0: https://github.com/linux-rdma/infiniband-diags/releases/download/%{version}/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 134a1ddf31df7bc05ff81636f4e35779 | |
12 | Patch0: %{name}-link.patch | |
ae3b493c | 13 | URL: https://www.openfabrics.org/ |
b7d156a4 JB |
14 | BuildRequires: autoconf >= 2.57 |
15 | BuildRequires: automake | |
07cd4a06 | 16 | BuildRequires: docutils |
6e7af96a | 17 | BuildRequires: glib2-devel >= 2.0 |
c63759de | 18 | BuildRequires: libibumad-devel |
b7d156a4 | 19 | BuildRequires: libtool |
c63759de | 20 | BuildRequires: opensm-devel |
6e7af96a | 21 | BuildRequires: pkgconfig |
07cd4a06 JB |
22 | BuildRequires: systemd-devel |
23 | BuildRequires: udev-devel >= 1:218 | |
c63759de JB |
24 | Requires: %{name}-libs = %{version}-%{release} |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This package provides InfiniBand diagnostic programs and scripts | |
29 | needed to diagnose an IB subnet. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Ten pakiet zawiera programy i skrypty diagnostyczne InfiniBand | |
33 | potrzebne do diagnostyki podsieci IB. | |
34 | ||
35 | %package libs | |
36 | Summary: InfiniBand diagnostic library | |
37 | Summary(pl.UTF-8): Biblioteka diagnostyczna InfiniBand | |
38 | Group: Libraries | |
b7d156a4 | 39 | Requires: libibmad = %{version}-%{release} |
c63759de JB |
40 | |
41 | %description libs | |
42 | InfiniBand diagnostic library. | |
43 | ||
44 | %description libs -l pl.UTF-8 | |
45 | Biblioteka diagnostyczna InfiniBand. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for libibnetdisc library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libibnetdisc | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-libs = %{version}-%{release} | |
6e7af96a | 52 | Requires: glib2-devel >= 2.0 |
b7d156a4 | 53 | Requires: libibmad-devel >= %{version}-%{release} |
c63759de JB |
54 | Requires: libibumad-devel |
55 | Requires: opensm-devel | |
56 | ||
57 | %description devel | |
58 | Header files for libibnetdisc library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki libibnetdisc. | |
62 | ||
63 | %package static | |
64 | Summary: Static libibnetdisc library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka libibnetdisc | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static libibnetdisc library. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka libibnetdisc. | |
74 | ||
b7d156a4 JB |
75 | %package -n libibmad |
76 | Summary: OpenFabrics Alliance InfiniBand MAD library | |
77 | Summary(pl.UTF-8): Biblioteka OpenFabrics Alliance InfiniBand MAD | |
78 | Group: Libraries | |
79 | ||
80 | %description -n libibmad | |
81 | libibmad provides low layer InfiniBand functions for use by the IB | |
82 | diagnostic and management programs. These include MAD, SA, SMP, and | |
83 | other basic IB functions. | |
84 | ||
85 | %description -n libibmad -l pl.UTF-8 | |
86 | libibmad to biblioteka udostępniająca niskopoziomowe funkcje | |
87 | InfiniBand przeznaczone dla programów diagnostycznych i zarządzających | |
88 | IB. Obejmuje MAD, SA, SMP i inne podstawowe funkcje IB. | |
89 | ||
90 | %package -n libibmad-devel | |
91 | Summary: Header files for libibmad library | |
92 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libibmad | |
93 | Group: Development/Libraries | |
94 | Requires: libibmad = %{version}-%{release} | |
95 | Requires: libibumad-devel | |
96 | ||
97 | %description -n libibmad-devel | |
98 | Header files for libibmad library. | |
99 | ||
100 | %description -n libibmad-devel -l pl.UTF-8 | |
101 | Pliki nagłówkowe biblioteki libibmad. | |
102 | ||
103 | %package -n libibmad-static | |
104 | Summary: Static libibmad library | |
105 | Summary(pl.UTF-8): Statyczna biblioteka libibmad | |
106 | Group: Development/Libraries | |
107 | Requires: libibmad-devel = %{version}-%{release} | |
108 | ||
109 | %description -n libibmad-static | |
110 | This package contains the static libibmad library. | |
111 | ||
112 | %description -n libibmad-static -l pl.UTF-8 | |
113 | Ten pakiet zawiera statyczną bibliotekę libibmad. | |
114 | ||
c63759de JB |
115 | %prep |
116 | %setup -q | |
b7d156a4 | 117 | %patch0 -p1 |
c63759de JB |
118 | |
119 | %build | |
b7d156a4 JB |
120 | %{__libtoolize} |
121 | %{__aclocal} -I config | |
122 | %{__autoconf} | |
123 | %{__autoheader} | |
124 | %{__automake} | |
c63759de JB |
125 | %configure \ |
126 | --with-perl-installdir=%{perl_vendorlib} | |
127 | %{__make} | |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
4a847c6b | 131 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/infiniband-diags |
c63759de JB |
132 | |
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
136 | %clean | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %post libs -p /sbin/ldconfig | |
140 | %postun libs -p /sbin/ldconfig | |
141 | ||
b7d156a4 JB |
142 | %post -n libibmad -p /sbin/ldconfig |
143 | %postun -n libibmad -p /sbin/ldconfig | |
144 | ||
c63759de JB |
145 | %files |
146 | %defattr(644,root,root,755) | |
b7d156a4 | 147 | %doc AUTHORS COPYING ChangeLog README |
c63759de | 148 | %attr(755,root,root) %{_sbindir}/check_lft_balance.pl |
6e7af96a | 149 | %attr(755,root,root) %{_sbindir}/dump_fts |
c63759de JB |
150 | %attr(755,root,root) %{_sbindir}/dump_lfts.sh |
151 | %attr(755,root,root) %{_sbindir}/dump_mfts.sh | |
152 | %attr(755,root,root) %{_sbindir}/ibaddr | |
153 | %attr(755,root,root) %{_sbindir}/ibcacheedit | |
928bf1e5 JB |
154 | %attr(755,root,root) %{_sbindir}/ibccconfig |
155 | %attr(755,root,root) %{_sbindir}/ibccquery | |
c63759de JB |
156 | %attr(755,root,root) %{_sbindir}/ibfindnodesusing.pl |
157 | %attr(755,root,root) %{_sbindir}/ibhosts | |
158 | %attr(755,root,root) %{_sbindir}/ibidsverify.pl | |
159 | %attr(755,root,root) %{_sbindir}/iblinkinfo | |
c63759de JB |
160 | %attr(755,root,root) %{_sbindir}/ibnetdiscover |
161 | %attr(755,root,root) %{_sbindir}/ibnodes | |
162 | %attr(755,root,root) %{_sbindir}/ibping | |
163 | %attr(755,root,root) %{_sbindir}/ibportstate | |
c63759de | 164 | %attr(755,root,root) %{_sbindir}/ibqueryerrors |
c63759de JB |
165 | %attr(755,root,root) %{_sbindir}/ibroute |
166 | %attr(755,root,root) %{_sbindir}/ibrouters | |
167 | %attr(755,root,root) %{_sbindir}/ibstat | |
168 | %attr(755,root,root) %{_sbindir}/ibstatus | |
169 | %attr(755,root,root) %{_sbindir}/ibswitches | |
c63759de JB |
170 | %attr(755,root,root) %{_sbindir}/ibsysstat |
171 | %attr(755,root,root) %{_sbindir}/ibtracert | |
172 | %attr(755,root,root) %{_sbindir}/perfquery | |
173 | %attr(755,root,root) %{_sbindir}/saquery | |
c63759de JB |
174 | %attr(755,root,root) %{_sbindir}/sminfo |
175 | %attr(755,root,root) %{_sbindir}/smpdump | |
176 | %attr(755,root,root) %{_sbindir}/smpquery | |
177 | %attr(755,root,root) %{_sbindir}/vendstat | |
4a847c6b JB |
178 | %dir %{_sysconfdir}/infiniband-diags |
179 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/infiniband-diags/error_thresholds | |
e135a2d6 | 180 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/infiniband-diags/ibdiag.conf |
c63759de JB |
181 | %{perl_vendorlib}/IBswcountlimits.pm |
182 | %{_mandir}/man8/check_lft_balance.8* | |
6e7af96a | 183 | %{_mandir}/man8/dump_fts.8* |
c63759de JB |
184 | %{_mandir}/man8/dump_lfts.8* |
185 | %{_mandir}/man8/dump_mfts.8* | |
186 | %{_mandir}/man8/ibaddr.8* | |
187 | %{_mandir}/man8/ibcacheedit.8* | |
928bf1e5 JB |
188 | %{_mandir}/man8/ibccconfig.8* |
189 | %{_mandir}/man8/ibccquery.8* | |
c63759de JB |
190 | %{_mandir}/man8/ibfindnodesusing.8* |
191 | %{_mandir}/man8/ibhosts.8* | |
192 | %{_mandir}/man8/ibidsverify.8* | |
193 | %{_mandir}/man8/iblinkinfo.8* | |
194 | %{_mandir}/man8/ibnetdiscover.8* | |
195 | %{_mandir}/man8/ibnodes.8* | |
196 | %{_mandir}/man8/ibping.8* | |
197 | %{_mandir}/man8/ibportstate.8* | |
c63759de JB |
198 | %{_mandir}/man8/ibqueryerrors.8* |
199 | %{_mandir}/man8/ibroute.8* | |
200 | %{_mandir}/man8/ibrouters.8* | |
201 | %{_mandir}/man8/ibstat.8* | |
202 | %{_mandir}/man8/ibstatus.8* | |
203 | %{_mandir}/man8/ibswitches.8* | |
c63759de JB |
204 | %{_mandir}/man8/ibsysstat.8* |
205 | %{_mandir}/man8/ibtracert.8* | |
4a847c6b | 206 | %{_mandir}/man8/infiniband-diags.8* |
c63759de JB |
207 | %{_mandir}/man8/perfquery.8* |
208 | %{_mandir}/man8/saquery.8* | |
209 | %{_mandir}/man8/sminfo.8* | |
210 | %{_mandir}/man8/smpdump.8* | |
211 | %{_mandir}/man8/smpquery.8* | |
212 | %{_mandir}/man8/vendstat.8* | |
213 | ||
214 | %files libs | |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_libdir}/libibnetdisc.so.*.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libibnetdisc.so.5 | |
218 | ||
219 | %files devel | |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_libdir}/libibnetdisc.so | |
222 | %{_libdir}/libibnetdisc.la | |
223 | %{_includedir}/infiniband/ibnetdisc.h | |
4a847c6b | 224 | %{_includedir}/infiniband/ibnetdisc_osd.h |
c63759de JB |
225 | %{_mandir}/man3/ibnd_*.3* |
226 | ||
227 | %files static | |
228 | %defattr(644,root,root,755) | |
229 | %{_libdir}/libibnetdisc.a | |
b7d156a4 JB |
230 | |
231 | %files -n libibmad | |
232 | %defattr(644,root,root,755) | |
233 | %doc libibmad/{ChangeLog,README} | |
234 | %attr(755,root,root) %{_libdir}/libibmad.so.*.*.* | |
235 | %attr(755,root,root) %ghost %{_libdir}/libibmad.so.5 | |
236 | ||
237 | %files -n libibmad-devel | |
238 | %defattr(644,root,root,755) | |
239 | %attr(755,root,root) %{_libdir}/libibmad.so | |
240 | %{_libdir}/libibmad.la | |
241 | %{_includedir}/infiniband/mad.h | |
242 | %{_includedir}/infiniband/mad_osd.h | |
243 | ||
244 | %files -n libibmad-static | |
245 | %defattr(644,root,root,755) | |
246 | %{_libdir}/libibmad.a |