1%define ver @VERSION@ 2 3Name: libibcm 4Version: 1.0.5 5Release: 1%{?dist} 6Summary: Userspace InfiniBand Communication Manager. 7 8Group: System Environment/Libraries 9License: GPL/BSD 10Url: http://www.openfabrics.org/ 11Source: http://www.openfabrics.org/downloads/%{name}-%{version}.tar.gz 12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 13 14%description 15libibcm provides a userspace InfiniBand Communication Managment library. 16 17%package devel 18Summary: Development files for the libibcm library 19Group: System Environment/Libraries 20Requires: %{name} = %{version}-%{release} %{_includedir}/infiniband/verbs.h 21 22%description devel 23Development files for the libibcm library. 24 25%prep 26%setup -q -n %{name}-%{ver} 27 28%build 29%configure 30make %{?_smp_mflags} 31 32%install 33rm -rf $RPM_BUILD_ROOT 34%makeinstall 35# remove unpackaged files from the buildroot 36rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 37 38%clean 39rm -rf $RPM_BUILD_ROOT 40 41%post -p /sbin/ldconfig 42%postun -p /sbin/ldconfig 43 44%files 45%defattr(-,root,root,-) 46%{_libdir}/libibcm*.so.* 47%doc AUTHORS COPYING ChangeLog README 48 49%files devel 50%defattr(-,root,root,-) 51%{_libdir}/lib*.so 52%{_libdir}/*.a 53%{_includedir}/* 54