1%define ver @VERSION@ 2 3Name: librdmacm 4Version: 1.0.11 5Release: 1%{?dist} 6Summary: Userspace RDMA Connection Manager 7 8Group: System Environment/Libraries 9License: GPLv2 or BSD 10Url: http://www.openfabrics.org/ 11Source: http://www.openfabrics.org/downloads/rdmacm/%{name}-%{version}.tar.gz 12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 13 14BuildRequires: libibverbs-devel >= 1.1-1 15 16%description 17librdmacm provides a userspace RDMA Communication Managment API. 18 19%package devel 20Summary: Development files for the librdmacm library 21Group: System Environment/Libraries 22Requires: %{name} = %{version}-%{release} %{_includedir}/infiniband/verbs.h 23 24%description devel 25Development files for the librdmacm library. 26 27%package utils 28Summary: Examples for the librdmacm library 29Group: System Environment/Libraries 30Requires: %{name} = %{version}-%{release} 31 32%description utils 33Example test programs for the librdmacm library. 34 35%prep 36%setup -q -n %{name}-%{ver} 37 38%build 39%configure 40make %{?_smp_mflags} 41 42%install 43rm -rf $RPM_BUILD_ROOT 44%makeinstall 45# remove unpackaged files from the buildroot 46rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 47 48%clean 49rm -rf $RPM_BUILD_ROOT 50 51%post -p /sbin/ldconfig 52%postun -p /sbin/ldconfig 53 54%files 55%defattr(-,root,root,-) 56%{_libdir}/librdmacm*.so.* 57%doc AUTHORS COPYING README 58 59%files devel 60%defattr(-,root,root) 61%{_libdir}/lib*.so 62%{_libdir}/*.a 63%{_includedir}/* 64%{_mandir}/man3/* 65%{_mandir}/man7/* 66 67%files utils 68%defattr(-,root,root,-) 69%{_bindir}/* 70%{_mandir}/man1/* 71 72%changelog 73 74* Fri Feb 15 2008 Roland Dreier <rdreier@cisco.com> - 1.0.6-1 75- Initial Fedora spec file 76