1219820Sjeff 2219820Sjeff%define RELEASE @RELEASE@ 3219820Sjeff%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} 4219820Sjeff 5219820SjeffSummary: OpenFabrics Alliance InfiniBand umad (user MAD) library 6219820SjeffName: libibumad 7219820SjeffVersion: @VERSION@ 8219820SjeffRelease: %rel%{?dist} 9219820SjeffLicense: GPLv2 or BSD 10219820SjeffGroup: System Environment/Libraries 11219820SjeffBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 12219820SjeffSource: http://www.openfabrics.org/downloads/management/@TARBALL@ 13219820SjeffUrl: http://openfabrics.org 14219820SjeffRequires(post): /sbin/ldconfig 15219820SjeffRequires(postun): /sbin/ldconfig 16219820SjeffBuildRequires: libibcommon-devel, libtool 17219820Sjeff 18219820Sjeff%description 19219820Sjefflibibumad provides the user MAD library functions which sit on top of 20219820Sjeffthe user MAD modules in the kernel. These are used by the IB diagnostic 21219820Sjeffand management tools, including OpenSM. 22219820Sjeff 23219820Sjeff%package devel 24219820SjeffSummary: Development files for the libibumad library 25219820SjeffGroup: System Environment/Libraries 26219820SjeffRequires: %{name} = %{version}-%{release} libibcommon-devel 27219820SjeffRequires(post): /sbin/ldconfig 28219820SjeffRequires(postun): /sbin/ldconfig 29219820Sjeff 30219820Sjeff%description devel 31219820SjeffDevelopment files for the libibumad library. 32219820Sjeff 33219820Sjeff%package static 34219820SjeffSummary: Static version of the libibumad library 35219820SjeffGroup: System Environment/Libraries 36219820SjeffRequires: %{name} = %{version}-%{release} 37219820Sjeff 38219820Sjeff%description static 39219820SjeffStatic version of the libibumad library. 40219820Sjeff 41219820Sjeff%prep 42219820Sjeff%setup -q 43219820Sjeff 44219820Sjeff%build 45219820Sjeff%configure 46219820Sjeffmake %{?_smp_mflags} 47219820Sjeff 48219820Sjeff%install 49219820Sjeffmake DESTDIR=${RPM_BUILD_ROOT} install 50219820Sjeff# remove unpackaged files from the buildroot 51219820Sjeffrm -f $RPM_BUILD_ROOT%{_libdir}/*.la 52219820Sjeff 53219820Sjeff%clean 54219820Sjeffrm -rf $RPM_BUILD_ROOT 55219820Sjeff 56219820Sjeff%post -p /sbin/ldconfig 57219820Sjeff%postun -p /sbin/ldconfig 58219820Sjeff%post devel -p /sbin/ldconfig 59219820Sjeff%postun devel -p /sbin/ldconfig 60219820Sjeff 61219820Sjeff%files 62219820Sjeff%defattr(-,root,root) 63219820Sjeff%{_libdir}/libibumad*.so.* 64219820Sjeff%{_mandir}/man3/* 65219820Sjeff%doc AUTHORS COPYING ChangeLog 66219820Sjeff 67219820Sjeff%files devel 68219820Sjeff%defattr(-,root,root) 69219820Sjeff%{_libdir}/libibumad.so 70219820Sjeff%{_includedir}/infiniband/*.h 71219820Sjeff 72219820Sjeff%files static 73219820Sjeff%defattr(-,root,root) 74219820Sjeff%{_libdir}/libibumad.a 75