]>
Commit | Line | Data |
---|---|---|
d707aa3e JB |
1 | Summary: OpenFabrics Alliance InfiniBand MAD library |
2 | Summary(pl.UTF-8): Biblioteka OpenFabrics Alliance InfiniBand MAD | |
3 | Name: opensm | |
462ba8bb | 4 | Version: 3.3.11 |
d707aa3e JB |
5 | Release: 1 |
6 | License: BSD or GPL v2 | |
7 | Group: Daemons | |
8 | Source0: http://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz | |
462ba8bb | 9 | # Source0-md5: 80ae77e919111761f022c10ca1405db3 |
87c65edc | 10 | Patch0: %{name}-link.patch |
d707aa3e | 11 | URL: http://www.openfabrics.org/ |
87c65edc JB |
12 | BuildRequires: autoconf >= 2.57 |
13 | BuildRequires: automake | |
d707aa3e JB |
14 | BuildRequires: bison |
15 | BuildRequires: flex | |
16 | BuildRequires: libibumad-devel | |
87c65edc | 17 | BuildRequires: libtool |
d707aa3e JB |
18 | Requires: %{name}-libs = %{version}-%{release} |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
f5539f42 JB |
21 | # these libs refer to symbols in each other |
22 | %define skip_post_check_so libopensm\.so.* libosmvendor\.so.* | |
23 | ||
d707aa3e JB |
24 | %description |
25 | libibmad provides low layer InfiniBand functions for use by the IB | |
26 | diagnostic and management programs. These include MAD, SA, SMP, and | |
27 | other basic IB functions. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | libibmad to biblioteka udostępniająca niskopoziomowe funkcje | |
31 | InfiniBand przeznaczone dla programów diagnostycznych i zarządzających | |
32 | IB. Obejmuje MAD, SA, SMP i inne podstawowe funkcje IB. | |
33 | ||
34 | %package libs | |
35 | Summary: OpenSM (InfiniBand Subnet Manager) libraries | |
36 | Summary(pl.UTF-8): Biblioteki OpenSM (InfiniBand Subnet Manager) | |
37 | Group: Libraries | |
38 | ||
39 | %description libs | |
40 | OpenSM (InfiniBand Subnet Manager) libraries. | |
41 | ||
42 | %description libs -l pl.UTF-8 | |
43 | Biblioteki OpenSM (InfiniBand Subnet Manager). | |
44 | ||
45 | %package devel | |
46 | Summary: Header files for OpenSM libraries | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek OpenSM | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-libs = %{version}-%{release} | |
50 | Requires: libibumad-devel | |
51 | ||
52 | %description devel | |
53 | Header files for OpenSM libraries. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe bibliotek OpenSM. | |
57 | ||
58 | %package static | |
59 | Summary: Static OpenSM libraries | |
60 | Summary(pl.UTF-8): Statyczne biblioteki OpenSM | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | This package contains the static OpenSM libraries. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Ten pakiet zawiera statyczne biblioteki OpenSM. | |
69 | ||
70 | %prep | |
71 | %setup -q | |
87c65edc | 72 | %patch0 -p1 |
d707aa3e JB |
73 | |
74 | %build | |
87c65edc JB |
75 | %{__libtoolize} |
76 | %{__aclocal} -I config | |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
79 | %{__automake} | |
d707aa3e JB |
80 | %configure |
81 | %{__make} | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/opensm,/etc/rc.d} | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | mv -f $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/rc.d | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post -p /sbin/ldconfig | |
96 | %postun -p /sbin/ldconfig | |
97 | ||
98 | %files | |
99 | %defattr(644,root,root,755) | |
100 | %attr(754,root,root) /etc/rc.d/init.d/opensmd | |
101 | %attr(755,root,root) %{_sbindir}/opensm | |
102 | %attr(755,root,root) %{_sbindir}/osmtest | |
462ba8bb | 103 | %{_mandir}/man5/torus-2QoS.conf.5* |
d707aa3e JB |
104 | %{_mandir}/man8/opensm.8* |
105 | %{_mandir}/man8/osmtest.8* | |
462ba8bb | 106 | %{_mandir}/man8/torus-2QoS.8* |
d707aa3e JB |
107 | |
108 | %files libs | |
109 | %defattr(644,root,root,755) | |
110 | %doc AUTHORS COPYING ChangeLog README doc/*.txt | |
111 | %attr(755,root,root) %{_libdir}/libopensm.so.*.*.* | |
112 | %attr(755,root,root) %ghost %{_libdir}/libopensm.so.4 | |
113 | %attr(755,root,root) %{_libdir}/libosmcomp.so.*.*.* | |
114 | %attr(755,root,root) %ghost %{_libdir}/libosmcomp.so.3 | |
115 | %attr(755,root,root) %{_libdir}/libosmvendor.so.*.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/libosmvendor.so.3 | |
117 | %dir %{_sysconfdir}/opensm | |
118 | ||
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libopensm.so | |
122 | %attr(755,root,root) %{_libdir}/libosmcomp.so | |
123 | %attr(755,root,root) %{_libdir}/libosmvendor.so | |
124 | %{_libdir}/libopensm.la | |
125 | %{_libdir}/libosmcomp.la | |
126 | %{_libdir}/libosmvendor.la | |
127 | %{_includedir}/infiniband/complib | |
128 | %{_includedir}/infiniband/iba | |
129 | %{_includedir}/infiniband/opensm | |
130 | %{_includedir}/infiniband/vendor | |
131 | ||
132 | %files static | |
133 | %defattr(644,root,root,755) | |
134 | %{_libdir}/libopensm.a | |
135 | %{_libdir}/libosmcomp.a | |
136 | %{_libdir}/libosmvendor.a |