]>
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 |
ced788c0 | 4 | Version: 3.3.19 |
e0574b6d | 5 | Release: 1 |
d707aa3e JB |
6 | License: BSD or GPL v2 |
7 | Group: Daemons | |
e0574b6d | 8 | Source0: https://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz |
ced788c0 | 9 | # Source0-md5: b41a64985fc3050b934ce6082cbac1be |
87c65edc | 10 | Patch0: %{name}-link.patch |
ced788c0 | 11 | URL: https://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 |
f3ce5340 | 18 | BuildRequires: rpmbuild(macros) >= 1.228 |
f3ce5340 | 19 | Requires(post,preun): /sbin/chkconfig |
d707aa3e | 20 | Requires: %{name}-libs = %{version}-%{release} |
f3ce5340 | 21 | Requires: rc-scripts |
d707aa3e JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
f5539f42 JB |
24 | # these libs refer to symbols in each other |
25 | %define skip_post_check_so libopensm\.so.* libosmvendor\.so.* | |
26 | ||
d707aa3e | 27 | %description |
40b2e70d JB |
28 | OpenSM provides an implementation for an InfiniBand Subnet Manager and |
29 | Administrator. Such a software entity is required to run for in order | |
30 | to initialize the InfiniBand hardware (at least one per each | |
31 | InfiniBand subnet). | |
d707aa3e JB |
32 | |
33 | %description -l pl.UTF-8 | |
40b2e70d JB |
34 | OpenSM zapewnia implementację zarządcy i administratora podsieci |
35 | InfiniBand (InfiniBand Subnet Manager). Takie oprogramowanie musi być | |
36 | uruchomione w celu zainicjowania sprzętu InfiniBand (przynajmniej | |
37 | jedna instancja w każdej podsieci InfiniBand). | |
d707aa3e JB |
38 | |
39 | %package libs | |
40 | Summary: OpenSM (InfiniBand Subnet Manager) libraries | |
41 | Summary(pl.UTF-8): Biblioteki OpenSM (InfiniBand Subnet Manager) | |
42 | Group: Libraries | |
43 | ||
44 | %description libs | |
45 | OpenSM (InfiniBand Subnet Manager) libraries. | |
46 | ||
47 | %description libs -l pl.UTF-8 | |
48 | Biblioteki OpenSM (InfiniBand Subnet Manager). | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for OpenSM libraries | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek OpenSM | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-libs = %{version}-%{release} | |
55 | Requires: libibumad-devel | |
56 | ||
57 | %description devel | |
58 | Header files for OpenSM libraries. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe bibliotek OpenSM. | |
62 | ||
63 | %package static | |
64 | Summary: Static OpenSM libraries | |
65 | Summary(pl.UTF-8): Statyczne biblioteki OpenSM | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | This package contains the static OpenSM libraries. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Ten pakiet zawiera statyczne biblioteki OpenSM. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
87c65edc | 77 | %patch0 -p1 |
d707aa3e JB |
78 | |
79 | %build | |
87c65edc JB |
80 | %{__libtoolize} |
81 | %{__aclocal} -I config | |
82 | %{__autoconf} | |
83 | %{__autoheader} | |
84 | %{__automake} | |
d707aa3e JB |
85 | %configure |
86 | %{__make} | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/opensm,/etc/rc.d} | |
91 | ||
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
95 | mv -f $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/rc.d | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
f3ce5340 | 100 | %post |
f3ce5340 ER |
101 | /sbin/chkconfig --add opensmd |
102 | %service opensmd restart | |
103 | ||
104 | %preun | |
105 | if [ "$1" = "0" ]; then | |
106 | %service -q opensmd stop | |
107 | /sbin/chkconfig --del opensmd | |
108 | fi | |
109 | ||
ced788c0 JB |
110 | %post libs -p /sbin/ldconfig |
111 | %postun libs -p /sbin/ldconfig | |
d707aa3e JB |
112 | |
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | %attr(754,root,root) /etc/rc.d/init.d/opensmd | |
116 | %attr(755,root,root) %{_sbindir}/opensm | |
117 | %attr(755,root,root) %{_sbindir}/osmtest | |
462ba8bb | 118 | %{_mandir}/man5/torus-2QoS.conf.5* |
d707aa3e JB |
119 | %{_mandir}/man8/opensm.8* |
120 | %{_mandir}/man8/osmtest.8* | |
462ba8bb | 121 | %{_mandir}/man8/torus-2QoS.8* |
d707aa3e JB |
122 | |
123 | %files libs | |
124 | %defattr(644,root,root,755) | |
125 | %doc AUTHORS COPYING ChangeLog README doc/*.txt | |
126 | %attr(755,root,root) %{_libdir}/libopensm.so.*.*.* | |
fa164cb7 | 127 | %attr(755,root,root) %ghost %{_libdir}/libopensm.so.5 |
d707aa3e JB |
128 | %attr(755,root,root) %{_libdir}/libosmcomp.so.*.*.* |
129 | %attr(755,root,root) %ghost %{_libdir}/libosmcomp.so.3 | |
130 | %attr(755,root,root) %{_libdir}/libosmvendor.so.*.*.* | |
e0574b6d | 131 | %attr(755,root,root) %ghost %{_libdir}/libosmvendor.so.4 |
d707aa3e JB |
132 | %dir %{_sysconfdir}/opensm |
133 | ||
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
136 | %attr(755,root,root) %{_libdir}/libopensm.so | |
137 | %attr(755,root,root) %{_libdir}/libosmcomp.so | |
138 | %attr(755,root,root) %{_libdir}/libosmvendor.so | |
139 | %{_libdir}/libopensm.la | |
140 | %{_libdir}/libosmcomp.la | |
141 | %{_libdir}/libosmvendor.la | |
142 | %{_includedir}/infiniband/complib | |
143 | %{_includedir}/infiniband/iba | |
144 | %{_includedir}/infiniband/opensm | |
145 | %{_includedir}/infiniband/vendor | |
146 | ||
147 | %files static | |
148 | %defattr(644,root,root,755) | |
149 | %{_libdir}/libopensm.a | |
150 | %{_libdir}/libosmcomp.a | |
151 | %{_libdir}/libosmvendor.a |