]>
Commit | Line | Data |
---|---|---|
40b2e70d JB |
1 | Summary: OpenSM - InfiniBand Subnet Manager and Administrator |
2 | Summary(pl.UTF-8): OpenSM - zarządca i administrator podsieci InfiniBand | |
d707aa3e | 3 | Name: opensm |
39809054 | 4 | Version: 3.3.16 |
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 | |
39809054 | 9 | # Source0-md5: 32b16efbaba69d478f8c05df42ce0462 |
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 | 24 | %description |
40b2e70d JB |
25 | OpenSM provides an implementation for an InfiniBand Subnet Manager and |
26 | Administrator. Such a software entity is required to run for in order | |
27 | to initialize the InfiniBand hardware (at least one per each | |
28 | InfiniBand subnet). | |
d707aa3e JB |
29 | |
30 | %description -l pl.UTF-8 | |
40b2e70d JB |
31 | OpenSM zapewnia implementację zarządcy i administratora podsieci |
32 | InfiniBand (InfiniBand Subnet Manager). Takie oprogramowanie musi być | |
33 | uruchomione w celu zainicjowania sprzętu InfiniBand (przynajmniej | |
34 | jedna instancja w każdej podsieci InfiniBand). | |
d707aa3e JB |
35 | |
36 | %package libs | |
37 | Summary: OpenSM (InfiniBand Subnet Manager) libraries | |
38 | Summary(pl.UTF-8): Biblioteki OpenSM (InfiniBand Subnet Manager) | |
39 | Group: Libraries | |
40 | ||
41 | %description libs | |
42 | OpenSM (InfiniBand Subnet Manager) libraries. | |
43 | ||
44 | %description libs -l pl.UTF-8 | |
45 | Biblioteki OpenSM (InfiniBand Subnet Manager). | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for OpenSM libraries | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek OpenSM | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-libs = %{version}-%{release} | |
52 | Requires: libibumad-devel | |
53 | ||
54 | %description devel | |
55 | Header files for OpenSM libraries. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe bibliotek OpenSM. | |
59 | ||
60 | %package static | |
61 | Summary: Static OpenSM libraries | |
62 | Summary(pl.UTF-8): Statyczne biblioteki OpenSM | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | This package contains the static OpenSM libraries. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Ten pakiet zawiera statyczne biblioteki OpenSM. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
87c65edc | 74 | %patch0 -p1 |
d707aa3e JB |
75 | |
76 | %build | |
87c65edc JB |
77 | %{__libtoolize} |
78 | %{__aclocal} -I config | |
79 | %{__autoconf} | |
80 | %{__autoheader} | |
81 | %{__automake} | |
d707aa3e JB |
82 | %configure |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/opensm,/etc/rc.d} | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
92 | mv -f $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/rc.d | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %attr(754,root,root) /etc/rc.d/init.d/opensmd | |
103 | %attr(755,root,root) %{_sbindir}/opensm | |
104 | %attr(755,root,root) %{_sbindir}/osmtest | |
462ba8bb | 105 | %{_mandir}/man5/torus-2QoS.conf.5* |
d707aa3e JB |
106 | %{_mandir}/man8/opensm.8* |
107 | %{_mandir}/man8/osmtest.8* | |
462ba8bb | 108 | %{_mandir}/man8/torus-2QoS.8* |
d707aa3e JB |
109 | |
110 | %files libs | |
111 | %defattr(644,root,root,755) | |
112 | %doc AUTHORS COPYING ChangeLog README doc/*.txt | |
113 | %attr(755,root,root) %{_libdir}/libopensm.so.*.*.* | |
fa164cb7 | 114 | %attr(755,root,root) %ghost %{_libdir}/libopensm.so.5 |
d707aa3e JB |
115 | %attr(755,root,root) %{_libdir}/libosmcomp.so.*.*.* |
116 | %attr(755,root,root) %ghost %{_libdir}/libosmcomp.so.3 | |
117 | %attr(755,root,root) %{_libdir}/libosmvendor.so.*.*.* | |
118 | %attr(755,root,root) %ghost %{_libdir}/libosmvendor.so.3 | |
119 | %dir %{_sysconfdir}/opensm | |
120 | ||
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
123 | %attr(755,root,root) %{_libdir}/libopensm.so | |
124 | %attr(755,root,root) %{_libdir}/libosmcomp.so | |
125 | %attr(755,root,root) %{_libdir}/libosmvendor.so | |
126 | %{_libdir}/libopensm.la | |
127 | %{_libdir}/libosmcomp.la | |
128 | %{_libdir}/libosmvendor.la | |
129 | %{_includedir}/infiniband/complib | |
130 | %{_includedir}/infiniband/iba | |
131 | %{_includedir}/infiniband/opensm | |
132 | %{_includedir}/infiniband/vendor | |
133 | ||
134 | %files static | |
135 | %defattr(644,root,root,755) | |
136 | %{_libdir}/libopensm.a | |
137 | %{_libdir}/libosmcomp.a | |
138 | %{_libdir}/libosmvendor.a |