%define lib_name_orig lib%{name} %define major 1 %define lib_name %mklibname %name%{major} Name: librdmacm Version: 1.0.11 Release: %mkrel 1 Summary: Userspace RDMA Connection Manager Group: Development/Other License: GPL/BSD Url: http://www.openfabrics.org/ Source: http://www.openfabrics.org/downloads/librdmacm/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libibverbs-devel >= 1.1 autoconf %description librdmacm provides a userspace RDMA Communication Managment API. %package -n %{lib_name}-devel Summary: Development files for the librdmacm library Group: Development/Other provides: lib%{name}-devel = %{version}-%{release} provides: %{name}-devel = %{version}-%{release} %description -n %{lib_name}-devel Development files for the librdmacm library. %package utils Summary: Examples for the librdmacm library Group: Development/Other %description utils Example test programs for the librdmacm library. %package -n %{lib_name}-static Summary: Static version of the librdmacm library Group: Development/Other Requires: %{name}-devel = %{version}-%{release} provides: lib%{name}-static = %{version}-%{release} provides: %{name}-static = %{version}-%{release} %description -n %{lib_name}-static Static version of the librdmacm library. %prep %setup -q %build autoreconf %configure %make %install rm -rf $RPM_BUILD_ROOT %makeinstall # remove unpackaged files from the buildroot rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_libdir}/librdmacm*.so.* %doc AUTHORS COPYING ChangeLog README %files -n %{lib_name}-devel %defattr(-,root,root) %{_libdir}/lib*.so %{_includedir}/* %{_mandir}/man3/* %{_mandir}/man7/* %files utils %defattr(-,root,root,-) %{_bindir}/* %{_mandir}/man1/* %files -n %{lib_name}-static %defattr(-,root,root,-) %{_libdir}/*.a %changelog * Wed Jan 27 2010 Antoine Ginies <aginies@mandriva.com> 1.0.11-1mdv2010.1 + Revision: 497200 - fix some pb in spec file (import from fedora one) - import librdmacm