2 %define RELEASE @RELEASE@
3 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5 Summary: OpenFabrics Alliance InfiniBand management common 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 Requires(post): /sbin/ldconfig
15 Requires(postun): /sbin/ldconfig
16 BuildRequires: libtool
19 libibcommon provides common utility functions for the OFA diagnostic and
23 Summary: Development files for the libibcommon library
24 Group: System Environment/Libraries
25 Requires: %{name} = %{version}-%{release}
26 Requires(post): /sbin/ldconfig
27 Requires(postun): /sbin/ldconfig
30 Development files for the libibcommon library.
33 Summary: Static library files for the libibcommon library
34 Group: System Environment/Libraries
35 Requires: %{name} = %{version}-%{release}
38 Static library files for the libibcommon library.
48 make DESTDIR=${RPM_BUILD_ROOT} install
49 # remove unpackaged files from the buildroot
50 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
53 rm -rf $RPM_BUILD_ROOT
55 %post -p /sbin/ldconfig
56 %postun -p /sbin/ldconfig
57 %post devel -p /sbin/ldconfig
58 %postun devel -p /sbin/ldconfig
62 %{_libdir}/libibcommon*.so.*
63 %doc AUTHORS COPYING ChangeLog
67 %{_libdir}/libibcommon.so
68 %{_includedir}/infiniband/*.h
72 %{_libdir}/libibcommon.a