2 %define RELEASE @RELEASE@
3 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5 Summary: OpenFabrics Alliance InfiniBand MAD library
10 Group: System Environment/Libraries
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 Source: http://www.openfabrics.org/downloads/management/@TARBALL@
13 Url: http://openfabrics.org/
14 BuildRequires: libibumad-devel, libtool
15 Requires(post): /sbin/ldconfig
16 Requires(postun): /sbin/ldconfig
19 libibmad provides low layer IB functions for use by the IB diagnostic
20 and management programs. These include MAD, SA, SMP, and other basic
24 Summary: Development files for the libibmad library
25 Group: System Environment/Libraries
26 Requires: %{name} = %{version}-%{release} libibumad-devel
27 Requires(post): /sbin/ldconfig
28 Requires(postun): /sbin/ldconfig
31 Development files for the libibmad library.
34 Summary: Static version of the libibmad library
35 Group: System Environment/Libraries
36 Requires: %{name} = %{version}-%{release}
39 Static version of the libibmad library
49 make DESTDIR=${RPM_BUILD_ROOT} install
50 # remove unpackaged files from the buildroot
51 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
54 rm -rf $RPM_BUILD_ROOT
56 %post -p /sbin/ldconfig
57 %postun -p /sbin/ldconfig
58 %post devel -p /sbin/ldconfig
59 %postun devel -p /sbin/ldconfig
63 %{_libdir}/libibmad*.so.*
64 %doc AUTHORS COPYING ChangeLog
68 %{_libdir}/libibmad.so
69 %{_includedir}/infiniband/*.h